| 1 |
====================================== |
| 2 |
PyPy2.7 and PyPy3.5 v6.0 dual release |
| 3 |
====================================== |
| 4 |
|
| 5 |
The PyPy team is proud to release both PyPy2.7 v6.0 (an interpreter supporting |
| 6 |
Python 2.7 syntax), and a PyPy3.5 v6.0 (an interpreter supporting Python |
| 7 |
3.5 syntax). The two releases are both based on much the same codebase, thus |
| 8 |
the dual release. |
| 9 |
|
| 10 |
This release is a feature release following our previous 5.10 incremental |
| 11 |
release in late December 2017. Our C-API compatibility layer ``cpyext`` is |
| 12 |
now much faster (see the `blog post`_) as well as more complete. We have made |
| 13 |
many other improvements in speed and CPython compatibility. Since the changes |
| 14 |
affect the included python development header files, all c-extension modules must |
| 15 |
be recompiled for this version. |
| 16 |
|
| 17 |
Until we can work with downstream providers to distribute builds with PyPy, we |
| 18 |
have made packages for some common packages `available as wheels`_. You may |
| 19 |
compile yourself using ``pip install --no-build-isolation <package>``, the |
| 20 |
``no-build-isolation`` is currently needed for pip v10. |
| 21 |
|
| 22 |
First-time python users are often stumped by silly typos and omissions when |
| 23 |
getting started writing code. We have improved our parser to emit more friendly |
| 24 |
`syntax errors`_, making PyPy not only faster but more friendly. |
| 25 |
|
| 26 |
The GC now has `hooks`_ to gain more insights into its performance |
| 27 |
|
| 28 |
The Matplotlib TkAgg backend now works with PyPy, as do pygame and pygobject_. |
| 29 |
|
| 30 |
We updated the `cffi`_ module included in PyPy to version 1.11.5, and the |
| 31 |
`cppyy`_ backend to 0.6.0. Please use these to wrap your C and C++ code, |
| 32 |
respectively, for a JIT friendly experience. |
| 33 |
|
| 34 |
As always, this release is 100% compatible with the previous one and fixed |
| 35 |
several issues and bugs raised by the growing community of PyPy users. |
| 36 |
We strongly recommend updating. |
| 37 |
|
| 38 |
The Windows PyPy3.5 release is still considered beta-quality. There are open |
| 39 |
issues with unicode handling especially around system calls and c-extensions. |
| 40 |
|
| 41 |
The utf8 branch that changes internal representation of unicode to utf8 did not |
| 42 |
make it into the release, so there is still more goodness coming. We also |
| 43 |
began working on a Python3.6 implementation, help is welcome. |
| 44 |
|
| 45 |
You can download the v6.0 releases here: |
| 46 |
|
| 47 |
https://pypy.org/download.html |
| 48 |
|
| 49 |
We would like to thank our donors for the continued support of the PyPy |
| 50 |
project. If PyPy is not quite good enough for your needs, we are available for |
| 51 |
direct consulting work. |
| 52 |
|
| 53 |
We would also like to thank our contributors and encourage new people to join |
| 54 |
the project. PyPy has many layers and we need help with all of them: `PyPy`_ |
| 55 |
and `RPython`_ documentation improvements, tweaking popular `modules`_ to run |
| 56 |
on pypy, or general `help`_ with making RPython's JIT even better. |
| 57 |
|
| 58 |
.. _`PyPy`: index.html |
| 59 |
.. _`RPython`: https://rpython.readthedocs.org |
| 60 |
.. _`modules`: project-ideas.html#make-more-python-modules-pypy-friendly |
| 61 |
.. _`help`: project-ideas.html |
| 62 |
.. _`blog post`: https://morepypy.blogspot.it/2017/10/cape-of-good-hope-for-pypy-hello-from.html |
| 63 |
.. _pygobject: https://lazka.github.io/posts/2018-04_pypy-pygobject/index.html |
| 64 |
.. _`syntax errors`: https://morepypy.blogspot.com/2018/04/improving-syntaxerror-in-pypy.html |
| 65 |
.. _`hooks`: gc_info.html#gc-hooks |
| 66 |
.. _`cffi`: https://cffi.readthedocs.io |
| 67 |
.. _`cppyy`: https://cppyy.readthedocs.io |
| 68 |
.. _`available as wheels`: https://github.com/antocuni/pypy-wheels |
| 69 |
|
| 70 |
What is PyPy? |
| 71 |
============= |
| 72 |
|
| 73 |
PyPy is a very compliant Python interpreter, almost a drop-in replacement for |
| 74 |
CPython 2.7 and CPython 3.5. It's fast (`PyPy and CPython 2.7.x`_ performance comparison) |
| 75 |
due to its integrated tracing JIT compiler. |
| 76 |
|
| 77 |
We also welcome developers of other `dynamic languages`_ to see what RPython |
| 78 |
can do for them. |
| 79 |
|
| 80 |
The PyPy release supports: |
| 81 |
|
| 82 |
* **x86** machines on most common operating systems |
| 83 |
(Linux 32/64 bits, Mac OS X 64 bits, Windows 32 bits, OpenBSD, FreeBSD) |
| 84 |
|
| 85 |
* newer **ARM** hardware (ARMv6 or ARMv7, with VFPv3) running Linux, |
| 86 |
|
| 87 |
* big- and little-endian variants of **PPC64** running Linux, |
| 88 |
|
| 89 |
* **s390x** running Linux |
| 90 |
|
| 91 |
.. _`PyPy and CPython 2.7.x`: https://speed.pypy.org |
| 92 |
.. _`dynamic languages`: https://rpython.readthedocs.io/en/latest/examples.html |
| 93 |
|
| 94 |
Changelog |
| 95 |
========= |
| 96 |
|
| 97 |
* Speed up C-API method calls, and make most Py*_Check calls C macros |
| 98 |
* Speed up C-API slot method calls |
| 99 |
* Enable TkAgg backend support for matplotlib |
| 100 |
* support ``hastzinfo`` and ``tzinfo`` in the C-API ``PyDateTime*`` structures |
| 101 |
* datetime.h is now more similar to CPython |
| 102 |
* We now support ``PyUnicode_AsUTF{16,32}String``, ``_PyLong_AsByteArray``, |
| 103 |
``_PyLong_AsByteArrayO``, |
| 104 |
* PyPy3.5 on Windows is compiled with the Microsoft Visual Compiler v14, like |
| 105 |
CPython |
| 106 |
* Fix performance of attribute lookup when more than 80 attributes are used |
| 107 |
* Improve performance on passing built-in types to C-API C code |
| 108 |
* Improve the performance of datetime and timedelta by skipping the consistency |
| 109 |
checks of the datetime values (they are correct by construction) |
| 110 |
* Improve handling of ``bigint`` s, including fixing ``int_divmod`` |
| 111 |
* Improve reporting of GC statistics |
| 112 |
* Accept unicode filenames in ``dbm.open()`` |
| 113 |
* Improve RPython support for half-floats |
| 114 |
* Added missing attributes to C-API ``instancemethod`` on pypy3 |
| 115 |
* Store error state in thread-local storage for C-API. |
| 116 |
* Fix JIT bugs exposed in the sre module |
| 117 |
* Improve speed of Python parser, improve ParseError messages and SyntaxError |
| 118 |
* Handle JIT hooks more efficiently |
| 119 |
* Fix a rare GC bug exposed by intensive use of cpyext ``Buffer`` s |
| 120 |
|
| 121 |
We also refactored many parts of the JIT bridge optimizations, as well as cpyext |
| 122 |
internals, and together with new contributors fixed issues, added new |
| 123 |
documentation, and cleaned up the codebase. |