| 1 |
====================== |
| 2 |
PyPy 1.5: Catching Up |
| 3 |
====================== |
| 4 |
|
| 5 |
We're pleased to announce the 1.5 release of PyPy. This release updates |
| 6 |
PyPy with the features of CPython 2.7.1, including the standard library. Thus |
| 7 |
all the features of `CPython 2.6`_ and `CPython 2.7`_ are now supported. It |
| 8 |
also contains additional performance improvements. You can download it here: |
| 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 replacement for |
| 16 |
CPython 2.7.1. It's fast (`pypy 1.5 and cpython 2.6.2`_ performance comparison) |
| 17 |
due to its integrated tracing JIT compiler. |
| 18 |
|
| 19 |
This release includes the features of CPython 2.6 and 2.7. It also includes a |
| 20 |
large number of small improvements to the tracing JIT compiler. It supports |
| 21 |
Intel machines running Linux 32/64 or Mac OS X. Windows is beta (it roughly |
| 22 |
works but a lot of small issues have not been fixed so far). Windows 64 is |
| 23 |
not yet supported. |
| 24 |
|
| 25 |
Numerous speed achievements are described on `our blog`_. Normalized speed |
| 26 |
charts comparing `pypy 1.5 and pypy 1.4`_ as well as `pypy 1.5 and cpython |
| 27 |
2.6.2`_ are available on our benchmark website. The speed improvement over 1.4 |
| 28 |
seems to be around 25% on average. |
| 29 |
|
| 30 |
More highlights |
| 31 |
=============== |
| 32 |
|
| 33 |
- The largest change in PyPy's tracing JIT is adding support for `loop invariant |
| 34 |
code motion`_, which was mostly done by Håkan Ardö. This feature improves the |
| 35 |
performance of tight loops doing numerical calculations. |
| 36 |
|
| 37 |
- The CPython extension module API has been improved and now supports many more |
| 38 |
extensions. |
| 39 |
|
| 40 |
- These changes make it possible to support `Tkinter and IDLE`_. |
| 41 |
|
| 42 |
- The `cProfile`_ profiler is now working with the JIT. However, it skews the |
| 43 |
performance in unstudied ways. Therefore it is not yet usable to analyze |
| 44 |
subtle performance problems (the same is true for CPython of course). |
| 45 |
|
| 46 |
- There is an `external fork`_ which includes an RPython version of the |
| 47 |
``postgresql``. However, there are no prebuilt binaries for this. |
| 48 |
|
| 49 |
- Our developer documentation was moved to Sphinx and cleaned up. |
| 50 |
(click 'Dev Site' on https://pypy.org/ .) |
| 51 |
|
| 52 |
- and many small things :-) |
| 53 |
|
| 54 |
|
| 55 |
Cheers, |
| 56 |
|
| 57 |
Carl Friedrich Bolz, Laura Creighton, Antonio Cuni, Maciej Fijalkowski, |
| 58 |
Amaury Forgeot d'Arc, Alex Gaynor, Armin Rigo and the PyPy team |
| 59 |
|
| 60 |
|
| 61 |
.. _`CPython 2.6`: https://docs.python.org/dev/whatsnew/2.6.html |
| 62 |
.. _`CPython 2.7`: https://docs.python.org/dev/whatsnew/2.7.html |
| 63 |
|
| 64 |
.. _`our blog`: https://morepypy.blogspot.com |
| 65 |
.. _`pypy 1.5 and pypy 1.4`: https://bit.ly/joPhHo |
| 66 |
.. _`pypy 1.5 and cpython 2.6.2`: https://bit.ly/mbVWwJ |
| 67 |
|
| 68 |
.. _`loop invariant code motion`: https://morepypy.blogspot.com/2011/01/loop-invariant-code-motion.html |
| 69 |
.. _`Tkinter and IDLE`: https://morepypy.blogspot.com/2011/04/using-tkinter-and-idle-with-pypy.html |
| 70 |
.. _`cProfile`: https://docs.python.org/library/profile.html |
| 71 |
.. _`external fork`: https://bitbucket.org/alex_gaynor/pypy-postgresql |