Debian Codegraph @

pypy/doc/release-2.5.0.rst

raw
1 ==============================
2 PyPy 2.5.0 - Pincushion Protea
3 ==============================
4
5 We're pleased to announce PyPy 2.5, which contains significant performance
6 enhancements and bug fixes.
7
8 You can download the PyPy 2.5.0 release here:
9
10 https://pypy.org/download.html
11
12 We would like to thank our donors for the continued support of the PyPy
13 project, and for those who donate to our three sub-projects, as well as our
14 volunteers and contributors (10 new committers joined PyPy since the last
15 release).
16 We've shown quite a bit of progress, but we're slowly running out of funds.
17 Please consider donating more, or even better convince your employer to donate,
18 so we can finish those projects! The three sub-projects are:
19
20 * `Py3k`_ (supporting Python 3.x): We have released a Python 3.2.5 compatible version
21 we call PyPy3 2.4.0, and are working toward a Python 3.3 compatible version
22
23 * `STM`_ (software transactional memory): We have released a first working version,
24 and continue to try out new promising paths of achieving a fast multithreaded Python
25
26 * `NumPy`_ which requires installation of our fork of upstream numpy,
27 available `on bitbucket`_
28
29 .. _`Py3k`: https://pypy.org/py3donate.html
30 .. _`STM`: https://pypy.org/tmdonate2.html
31 .. _`NumPy`: https://pypy.org/numpydonate.html
32 .. _`on bitbucket`: https://www.bitbucket.org/pypy/numpy
33
34 What is PyPy?
35 =============
36
37 PyPy is a very compliant Python interpreter, almost a drop-in replacement for
38 CPython 2.7. It's fast (`pypy and cpython 2.7.x`_ performance comparison)
39 due to its integrated tracing JIT compiler.
40
41 This release supports **x86** machines on most common operating systems
42 (Linux 32/64, Mac OS X 64, Windows, and OpenBSD),
43 as well as newer **ARM** hardware (ARMv6 or ARMv7, with VFPv3) running Linux.
44
45 While we support 32 bit python on Windows, work on the native Windows 64
46 bit python is still stalling, we would welcome a volunteer
47 to `handle that`_.
48
49 .. _`pypy and cpython 2.7.x`: https://speed.pypy.org
50 .. _`handle that`: https://doc.pypy.org/windows.html#what-is-missing-for-a-full-64-bit-translation
51
52 Highlights
53 ==========
54
55 * The past months have seen pypy mature and grow, as rpython becomes the goto
56 solution for writing fast dynamic language interpreters. Our separation of
57 rpython and the python interpreter PyPy is now much clearer in the
58 `PyPy documentation`_ and we now have separate `RPython documentation`_.
59
60 * We have improved warmup time as well as jitted code performance: more than 10%
61 compared to pypy-2.4.0, due to internal cleanup and gc nursery improvements.
62 We no longer zero-out memory allocated in the gc nursery by default, work that
63 was started during a GSoC.
64
65 * Passing objects between C and PyPy has been improved. We are now able to pass
66 raw pointers to C (without copying) using **pinning**. This improves I/O;
67 benchmarks that use networking intensively improved by about 50%. File()
68 operations still need some refactoring but are already showing a 20%
69 improvement on our benchmarks. Let us know if you see similar improvements.
70
71 * Our integrated numpy support gained much of the GenericUfunc api in order to
72 support the lapack/blas linalg module of numpy. This dovetails with work in the
73 pypy/numpy repository to support linalg both through the (slower) cpyext capi
74 interface and also via (the faster) pure python cffi interface, using an
75 extended frompyfunc() api. We will soon post a separate blog post specifically
76 about linalg and PyPy.
77
78 * Dictionaries are now ordered by default, see the `blog post`_
79
80 * Our nightly translations use --shared by default, including on OS/X and linux
81
82 * We now more carefully handle errno (and GetLastError, WSAGetLastError) tying
83 the handlers as close as possible to the external function call, in non-jitted
84 as well as jitted code.
85
86 * Issues reported with our previous release were resolved_ after reports from users on
87 our issue tracker at https://bitbucket.org/pypy/pypy/issues or on IRC at
88 #pypy.
89
90 .. _`PyPy documentation`: https://doc.pypy.org
91 .. _`RPython documentation`: https://rpython.readthedocs.org
92 .. _`blog post`: https://morepypy.blogspot.com/2015/01/faster-more-memory-efficient-and-more.html
93 .. _resolved: https://doc.pypy.org/whatsnew-2.5.0.html
94
95 We have further improvements on the way: rpython file handling,
96 finishing numpy linalg compatibility, numpy object dtypes, a better profiler,
97 as well as support for Python stdlib 2.7.9.
98
99 Please try it out and let us know what you think. We especially welcome
100 success stories, we know you are using PyPy, please tell us about it!
101
102 Cheers
103
104 The PyPy Team