Reference counting garbage collection

Marcin 'Qrczak' Kowalczyk qrczak at knm.org.pl
Sat Aug 25 10:03:46 CEST 2001


Thu, 23 Aug 2001 23:32:04 -0400, Tim Peters <tim.one at home.com> pisze:

>> Would it work for Python to not heap-allocate ints but tag them in
>> the lowest bit, assuming pointers are even?
> 
> No, and for several reasons.  The most obvious one is that Python
> runs on word-addressed machines, where no bits of a pointer are
> abusable.

Making it optional, falling back to current representation in such
case, solves this problem. Any others?

-- 
 __("<  Marcin Kowalczyk * qrczak at knm.org.pl http://qrczak.ids.net.pl/
 \__/
  ^^                      SYGNATURA ZASTĘPCZA
QRCZAK



More information about the Python-list mailing list