[Monetdb-developers] RFC: New Integer Atoms: byte & word

Niels Nes Niels.Nes at cwi.nl
Thu Dec 8 18:05:17 CET 2005


On Thu, Dec 08, 2005 at 03:23:21PM +0100, Stefan Manegold wrote:
> Dear MonetDB developers,
> 
> I'm almost done with the first steps of adding two new integer atoms to
> MonetDB:
> 
> a) a tiny (8-bit) integer.
> 
> b) a machine-word sized integer that grows with the system, i.e., 32-bit on
>    32-bit systems and 64-bit on 64-bit systems.
> 
> (a) is supposed to replace "chr" wherever "chr" is not used as a character type,
> but as a (tiny) 1-byte integer.
> 
> (b) is supposed to be the MIL pendant of the C type "var_t" and can/should
> be used, e.g., for BUN counts of BATs which are limited to 32-bit on 32-bit
> systems, but can grow to 64-bit on 64-bit systems.
> 
> For now, I chose the following names, sticking to the 3-letter "design", and
> picking combinations that do not yet exist in the code base:
> 
> 	a)	"bte"	(read "byte")
> 	b)	"wrd"	(read "word")
> 
> In a first checking (hopefully sometime next week), I will only add these new
> atoms (and add the proper functionality & new signatures where necessary),
> but not change any existing MIL proc/command signatures.
> 
> In a second check-in (maybe also already next week?), I plan to change (at
> least) the signature(s) of "count(BAT[any,any]) : int" & "count(int) : lng"
> to a single "count(BAT[any,any]) : wrd".
> 
> Maybe, I/we should later also consider to replace "chr" by "bte" in the enum
> module.
> 
> 
> Well, so far so good. 
> 
> I would be grateful, if you could comment on these plans.
> 
> Especially, I'd like to hear, whether there are better(?) suggestions for
> the names "bte" & "wrd".
> Further, did I miss any places, where we should/must use "bte" iso. "chr" 
> and/or "wrd" iso. "int"/"lng"?
> 

He weren't you on holiday ;-).

I have no objections on the bte/wrd. For now I also do not see any more
places where chr/int/lng need to be replaced with the new bte/wrd.
Anyway if we find more later, these could be simply fixed.

Niels

> 
> Thank you very much in advance!
> 
> Stefan
> 
> -- 
> | Dr. Stefan Manegold | mailto:Stefan.Manegold at cwi.nl |
> | CWI,  P.O.Box 94079 | http://www.cwi.nl/~manegold/  |
> | 1090 GB Amsterdam   | Tel.: +31 (20) 592-4212       |
> | The Netherlands     | Fax : +31 (20) 592-4312       |
> 
> 
> -------------------------------------------------------
> This SF.net email is sponsored by: Splunk Inc. Do you grep through log files
> for problems?  Stop!  Download the new AJAX search engine that makes
> searching your log files as easy as surfing the  web.  DOWNLOAD SPLUNK!
> http://ads.osdn.com/?ad_id=7637&alloc_id=16865&op=click
> _______________________________________________
> Monetdb-developers mailing list
> Monetdb-developers at lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/monetdb-developers

-- 

Niels Nes, Centre for Mathematics and Computer Science (CWI)
Kruislaan 413, 1098 SJ Amsterdam, The Netherlands
room C0.02,  phone ++31 20 592-4098, fax ++31 20 592-4312
url: http://www.cwi.nl/~niels   e-mail: Niels.Nes at cwi.nl




More information about the developers-list mailing list