5 ms·
Most of the Python implementations other than CPython use GC rather than reference counting. PyPy does. Iron Python did.[1] There is a version of PyPy without
by Animats 10y ago
Most of the Python implementations other than CPython use GC rather than reference counting. PyPy does. Iron Python did.[1]
There is a version of PyPy without a GIL[2], but it runs much slower on ordinary code and is still under development. The developers are looking for financial support.[3] The approach is to identify large blocks of code as transactions, and run them in parallel. If they try to access the same data, one transaction fails and is backed out. It's like database rollback.
But you have to write your code like this:
from transaction import TransactionQueue
tr = TransactionQueue()
for key, value in bigdict.items():
tr.add(func, key, value)
tr.run()
[1] http://doc.pypy.org/en/latest/cpython_differences.html http://doc.pypy.org/en/latest/cpython_differences.html
[2] http://doc.pypy.org/en/latest/stm.html http://doc.pypy.org/en/latest/stm.html
[3] http://pypy.org/tmdonate2.html http://pypy.org/tmdonate2.html