aboutsummaryrefslogtreecommitdiff
blob: 312bf90ca6b931d02da836c907fe3545d4c69e1d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
=======================================
PyPy 2.3 - Terrestrial Arthropod Trap
=======================================

We're pleased to announce PyPy 2.3, which targets version 2.7.6 of the Python
language. This release updates the stdlib from 2.7.3, jumping directly to 2.7.6.

This release also contains several bugfixes and performance improvements,
many generated by real users finding corner cases our `TDD`_ methods missed. 
`CFFI`_ has made it easier than ever to use existing C code with both cpython
and PyPy, easing the transition for packages like `cryptography`_, `Pillow`_ 
(Python Imaging Library [Fork]), a basic port of `pygame-cffi`_, and others. 

PyPy can now be embedded in a hosting application, for instance inside `uWSGI`_

You can download the PyPy 2.3 release here:

    https://pypy.org/download.html

We would like to thank our donors for the continued support of the PyPy
project, and for those who donate to our three sub-projects.
We showed quite a bit of progress 
but we're slowly running out of funds.
Please consider donating more, or even better convince your employer to donate,
so we can finish those projects!  The three sub-projects are:

* `Py3k`_ (supporting Python 3.x): the release PyPy3 2.2 is imminent.

* `STM`_ (software transactional memory): a preview will be released very soon,
  once we fix a few bugs

* `NumPy`_ which is included in the PyPy 2.3 release. More details below.

.. _`Py3k`: https://pypy.org/py3donate.html
.. _`STM`: https://pypy.org/tmdonate2.html
.. _ `NumPy`: https://pypy.org/numpydonate.html
.. _`TDD`: https://doc.pypy.org/en/latest/how-to-contribute.html
.. _`CFFI`: https://cffi.readthedocs.org
.. _`cryptography`: https://cryptography.io
.. _`Pillow`: https://pypi.python.org/pypi/Pillow/2.4.0
.. _`pygame-cffi`: https://github.com/CTPUG/pygame_cffi
.. _`uWSGI`: https://uwsgi-docs.readthedocs.org/en/latest/PyPy.html

What is PyPy?
=============

PyPy is a very compliant Python interpreter, almost a drop-in replacement for
CPython 2.7. It's fast (`pypy 2.3 and cpython 2.7.x`_ performance comparison;
note that cpython's speed has not changed since 2.7.2)
due to its integrated tracing JIT compiler.

This release supports x86 machines running Linux 32/64, Mac OS X 64, Windows,
and OpenBSD,
as well as newer ARM hardware (ARMv6 or ARMv7, with VFPv3) running Linux. 

While we support 32 bit python on Windows, work on the native Windows 64
bit python is still stalling, we would welcome a volunteer
to `handle that`_.

.. _`pypy 2.3 and cpython 2.7.x`: https://speed.pypy.org
.. _`handle that`: https://doc.pypy.org/en/latest/windows.html#what-is-missing-for-a-full-64-bit-translation

Highlights
==========

Bugfixes 
--------

Many issues were cleaned up after being reported by users to https://bugs.pypy.org or on IRC at #pypy. Note that we consider
performance slowdowns as bugs. Here is a summary of the user-facing changes;
for more information see `whats-new`_:

* The ARM port no longer crashes on unaligned memory access to floats and doubles,
  and singlefloats are supported in the JIT.

* Generators are faster since they now skip unnecessary cleanup

* A first time contributor simplified JIT traces by adding integer bound
  propagation in indexing and logical operations.

* Optimize consecutive dictionary lookups of the same key in a chain

* Our extensive pre-translation test suite now runs nightly on more platforms

* Fix issues with reimporting builtin modules

* Fix an RPython bug with loop-unrolling that appeared in the `HippyVM`_ PHP port

* Support for corner cases on objects with __int__ and __float__ methods

* Fix multithreaded support for gethostbyname_ex and gethostbyaddr

* Fix handling of tp_name for type objects

.. _`HippyVM`: https://www.hippyvm.com
.. _`whats-new`: https://doc.pypy.org/en/latest/whatsnew-2.3.0.html


New Platforms and Features
--------------------------

* Support for OpenBSD 

* Code cleanup: we continue to prune out old and unused code, and to refactor
  large parts of the codebase. We have separated RPython from the PyPy python
  interpreter, and RPython is seeing use in other dynamic language projects.

* Support for precompiled headers in the build process for MSVC

* Tweak support of errno in cpyext (the PyPy implemenation of the capi)


NumPy
-----
NumPy support has been split into a builtin ``_numpy`` module and a
fork of the NumPy code base adapted to PyPy at
``https://bitbucket.org/pypy/numpy``.
You need to install NumPy separately with a virtualenv:

  ``pip install git+https://bitbucket.org/pypy/numpy.git``;

or directly:

  ``git clone https://bitbucket.org/pypy/numpy.git``;
  ``cd numpy``; ``pypy setup.py install``.

* NumPy support has been improved, many failures in indexing, dtypes,
  and scalars were corrected. We are slowly approaching our goal of passing
  the NumPy test suite. We still do not support object or unicode ndarrays.

* Speed of iteration in dot() is now within 1.5x of the NumPy c 
  implementation (without BLAS acceleration). Since the same array
  iterator is used throughout the ``_numpy`` module, speed increases should
  be apparent in all NumPy functionality.

* Most of the core functionality of nditer has been implemented.

* A cffi-based ``numpy.random`` module is available as a branch;
  it will be merged soon after this release.

* Enhancements to the PyPy JIT were made to support virtualizing the raw_store/raw_load 
  memory operations used in NumPy arrays. Further work remains here in virtualizing the 
  alloc_raw_storage when possible. This will allow scalars to have storages but still be 
  virtualized when possible in loops.

Cheers

The PyPy Team