| 1 |
=============================== |
| 2 |
PyPy 1.4.1 |
| 3 |
=============================== |
| 4 |
|
| 5 |
We're pleased to announce the 1.4.1 release of PyPy. This |
| 6 |
release consolidates all the bug fixes that occurred since the |
| 7 |
previous release. To everyone that took the trouble to report |
| 8 |
them, we want to say thank you. |
| 9 |
|
| 10 |
https://pypy.org/download.html |
| 11 |
|
| 12 |
What is PyPy |
| 13 |
============ |
| 14 |
|
| 15 |
PyPy is a very compliant Python interpreter, almost a drop-in |
| 16 |
replacement for CPython. Note that it still only emulates Python |
| 17 |
2.5 by default; the ``fast-forward`` branch with Python 2.7 |
| 18 |
support is slowly getting ready but will only be integrated in |
| 19 |
the next release. |
| 20 |
|
| 21 |
In two words, the advantage of trying out PyPy instead of CPython |
| 22 |
(the default implementation of Python) is, for now, the |
| 23 |
performance. Not all programs are faster in PyPy, but we are |
| 24 |
confident that any CPU-intensive task will be much faster, at |
| 25 |
least if it runs for long enough (the JIT has a slow warm-up |
| 26 |
phase, which can take several seconds or even one minute on the |
| 27 |
largest programs). |
| 28 |
|
| 29 |
Note again that we do support compiling and using C extension |
| 30 |
modules from CPython (``pypy setup.py install``). However, this |
| 31 |
is still an alpha feature, and the most complex modules typically |
| 32 |
fail for various reasons; others work (e.g. ``PIL``) but take a |
| 33 |
serious performance hit. Also, for Mac OS X see below. |
| 34 |
|
| 35 |
Please note also that PyPy's performance was optimized almost |
| 36 |
exclusively on Linux. It seems from some reports that on Windows |
| 37 |
as well as Mac OS X (probably for different reasons) the |
| 38 |
performance might be lower. We did not investigate much so far. |
| 39 |
|
| 40 |
|
| 41 |
More highlights |
| 42 |
=============== |
| 43 |
|
| 44 |
* We migrated to Mercurial (thanks to Ronny Pfannschmidt and |
| 45 |
Antonio Cuni) for the effort) and moved to bitbucket. The new |
| 46 |
command to check out a copy of PyPy is:: |
| 47 |
|
| 48 |
hg clone https://bitbucket.org/pypy/pypy |
| 49 |
|
| 50 |
* In long-running processes, the assembler generated by old |
| 51 |
JIT-compilations is now freed. There should be no more leak, |
| 52 |
however long the process runs. |
| 53 |
|
| 54 |
* Improve a lot the performance of the ``binascii`` module, and |
| 55 |
of ``hashlib.md5`` and ``hashlib.sha``. |
| 56 |
|
| 57 |
* Made sys.setrecursionlimit() a no-op. Instead, we rely purely |
| 58 |
on the built-in stack overflow detection mechanism, which also |
| 59 |
gives you a RuntimeError -- just not at some exact recursion |
| 60 |
level. |
| 61 |
|
| 62 |
* Fix argument processing (now e.g. ``pypy -OScpass`` works like |
| 63 |
it does on CPython --- if you have a clue what it does there |
| 64 |
``:-)`` ) |
| 65 |
|
| 66 |
* cpyext on Mac OS X: it still does not seem to work. I get |
| 67 |
systematically a segfault in dlopen(). Contributions welcome. |
| 68 |
|
| 69 |
* Fix two corner cases in the GC (one in minimark, one in |
| 70 |
asmgcc+JIT). This notably prevented "pypy translate.py -Ojit" |
| 71 |
from working on Windows, leading to crashes. |
| 72 |
|
| 73 |
* Fixed a corner case in the JIT's optimizer, leading to "Fatal |
| 74 |
RPython error: AssertionError". |
| 75 |
|
| 76 |
* Added some missing built-in functions into the 'os' module. |
| 77 |
|
| 78 |
* Fix ctypes (it was not propagating keepalive information from |
| 79 |
c_void_p). |
| 80 |
|
| 81 |
|
| 82 |
Cheers, |
| 83 |
|
| 84 |
Armin Rigo, for the rest of the team |