[Python-3000] long/int unification (original) (raw)
Marcin 'Qrczak' Kowalczyk qrczak at knm.org.pl
Sat Aug 26 14:41:57 CEST 2006
- Previous message: [Python-3000] long/int unification
- Next message: [Python-3000] simplifying methods (was: Re: Droping find/rfind?)
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Josiah Carlson <jcarlson at uci.edu> writes:
Also, depending on the objects, one may consider a few other tagged objects, like perhaps None, True, and False
I doubt that it's worth it: they are not dynamically computed anyway, so there is little gain (only avoiding manipulating their refcounts), and the loss is a greater number of special cases when accessing contents of every object.
or even just use 31/63 bits for the tagged integer value, with a 1 in the lowest bit signifying it as a tagged integer.
This is exactly what my compiler of my language does.
-- _("< Marcin Kowalczyk _/ qrczak at knm.org.pl ^^ http://qrnik.knm.org.pl/~qrczak/
- Previous message: [Python-3000] long/int unification
- Next message: [Python-3000] simplifying methods (was: Re: Droping find/rfind?)
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]