[Python-3000] long/int unification

Marcin 'Qrczak' Kowalczyk qrczak at knm.org.pl
Sat Aug 26 14:41:57 CEST 2006


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/


More information about the Python-3000 mailing list