3 ms·
It is a branch of PyPy (a fast and compliant Python 2.7 interpreter) that behaves as if the GIL was still there — statements are always run atomically, so are t
by Tobu 14y ago
It is a branch of PyPy (a fast and compliant Python 2.7 interpreter) that behaves as if the GIL was still there — statements are always run atomically, so are the new with atomic blocks — but will actually run multithreaded programs on multiple cores (as long as contention is low). It will also provide a transaction module (implemented with threads and atomic blocks) so that existing reactors can be ported, allowing coroutine-based programs to run on multiple cores too. This isn't faster at the moment, that will become the focus once this is stable.
Current documentation: https://bitbucket.org/pypy/pypy/raw/stm-thread/pypy/doc/stm.rst https://bitbucket.org/pypy/pypy/raw/stm-thread/pypy/doc/stm....
The plan: http://pypy.org/tmdonate.html http://pypy.org/tmdonate.html