| 1 |
============================ |
| 2 |
PyPy 2.0 - Einstein Sandwich |
| 3 |
============================ |
| 4 |
|
| 5 |
We're pleased to announce PyPy 2.0. This is a stable release that brings |
| 6 |
a swath of bugfixes, small performance improvements and compatibility fixes. |
| 7 |
PyPy 2.0 is a big step for us and we hope in the future we'll be able to |
| 8 |
provide stable releases more often. |
| 9 |
|
| 10 |
You can download the PyPy 2.0 release here: |
| 11 |
|
| 12 |
https://pypy.org/download.html |
| 13 |
|
| 14 |
The two biggest changes since PyPy 1.9 are: |
| 15 |
|
| 16 |
* stackless is now supported including greenlets, which means eventlet |
| 17 |
and gevent should work (but read below about gevent) |
| 18 |
|
| 19 |
* PyPy now contains release 0.6 of `cffi`_ as a builtin module, which |
| 20 |
is preferred way of calling C from Python that works well on PyPy |
| 21 |
|
| 22 |
.. _`cffi`: https://cffi.readthedocs.org |
| 23 |
|
| 24 |
If you're using PyPy for anything, it would help us immensely if you fill out |
| 25 |
the following survey: https://bit.ly/pypysurvey This is for the developers |
| 26 |
eyes and we will not make any information public without your agreement. |
| 27 |
|
| 28 |
What is PyPy? |
| 29 |
============= |
| 30 |
|
| 31 |
PyPy is a very compliant Python interpreter, almost a drop-in replacement for |
| 32 |
CPython 2.7. It's fast (`pypy 2.0 and cpython 2.7.3`_ performance comparison) |
| 33 |
due to its integrated tracing JIT compiler. |
| 34 |
|
| 35 |
This release supports x86 machines running Linux 32/64, Mac OS X 64 or |
| 36 |
Windows 32. Windows 64 work is still stalling, we would welcome a volunteer |
| 37 |
to handle that. ARM support is on the way, as you can see from the recently |
| 38 |
released alpha for ARM. |
| 39 |
|
| 40 |
.. _`pypy 2.0 and cpython 2.7.3`: https://speed.pypy.org |
| 41 |
|
| 42 |
Highlights |
| 43 |
========== |
| 44 |
|
| 45 |
* Stackless including greenlets should work. For gevent, you need to check |
| 46 |
out `pypycore`_ and use the `pypy-hacks`_ branch of gevent. |
| 47 |
|
| 48 |
* cffi is now a module included with PyPy. (`cffi`_ also exists for |
| 49 |
CPython; the two versions should be fully compatible.) It is the |
| 50 |
preferred way of calling C from Python that works on PyPy. |
| 51 |
|
| 52 |
* Callbacks from C are now JITted, which means XML parsing is much faster. |
| 53 |
|
| 54 |
* A lot of speed improvements in various language corners, most of them small, |
| 55 |
but speeding up some particular corners a lot. |
| 56 |
|
| 57 |
* The JIT was refactored to emit machine code which manipulates a "frame" |
| 58 |
that lives on the heap rather than on the stack. This is what makes |
| 59 |
Stackless work, and it could bring another future speed-up (not done yet). |
| 60 |
|
| 61 |
* A lot of stability issues fixed. |
| 62 |
|
| 63 |
* Refactoring much of the numpypy array classes, which resulted in removal of |
| 64 |
lazy expression evaluation. On the other hand, we now have more complete |
| 65 |
dtype support and support more array attributes. |
| 66 |
|
| 67 |
.. _`pypycore`: https://github.com/gevent-on-pypy/pypycore/ |
| 68 |
.. _`pypy-hacks`: https://github.com/schmir/gevent/tree/pypy-hacks |
| 69 |
|
| 70 |
Cheers, |
| 71 |
fijal, arigo and the PyPy team |