Debian Codegraph @

pypy/doc/release-2.4.0.rst

raw
1 =================================================
2 PyPy 2.4 - Snow White
3 =================================================
4
5 We're pleased to announce PyPy 2.4, which contains significant performance
6 enhancements and bug fixes.
7
8 You can download the PyPy 2.4.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.
14 We've shown quite a bit of progress, but we're slowly running out of funds.
15 Please consider donating more, or even better convince your employer to donate,
16 so we can finish those projects! We would like to also point out that in
17 September, `the Python Software Foundation`_ will `match funds`_ for
18 any donations up to $10k! 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.3.1, 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 .. _`the Python Software Foundation`: https://www.python.org/psf/
34 .. _`match funds`: https://morepypy.blogspot.com/2014/09/python-software-foundation-matching.html
35
36 What is PyPy?
37 =============
38
39 PyPy is a very compliant Python interpreter, almost a drop-in replacement for
40 CPython 2.7. It's fast (`pypy 2.4 and cpython 2.7.x`_ performance comparison)
41 due to its integrated tracing JIT compiler.
42
43 This release supports **x86** machines on most common operating systems
44 (Linux 32/64, Mac OS X 64, Windows, and OpenBSD),
45 as well as newer **ARM** hardware (ARMv6 or ARMv7, with VFPv3) running Linux.
46
47 While we support 32 bit python on Windows, work on the native Windows 64
48 bit python is still stalling, we would welcome a volunteer
49 to `handle that`_.
50
51 .. _`pypy 2.4 and cpython 2.7.x`: https://speed.pypy.org
52 .. _`handle that`: https://doc.pypy.org/windows.html#what-is-missing-for-a-full-64-bit-translation
53
54 Highlights
55 ==========
56
57 Benchmarks improved after internal enhancements in string and
58 bytearray handling, and a major rewrite of the GIL handling. This means
59 that external calls are now a lot faster, especially the CFFI ones. It also
60 means better performance in a lot of corner cases with handling strings or
61 bytearrays. The main bugfix is handling of many socket objects in your
62 program which in the long run used to "leak" memory.
63
64 PyPy now uses Python 2.7.8 standard library.
65
66 We fixed a memory leak in IO in the sandbox_ code
67
68 We welcomed more than 12 new contributors, and conducted two Google
69 Summer of Code projects, as well as other student projects not
70 directly related to Summer of Code.
71
72
73 Issues reported with our previous release were fixed after reports from users on
74 our new issue tracker at https://bitbucket.org/pypy/pypy/issues or on IRC at
75 #pypy. Here is a summary of the user-facing changes;
76 for more information see `whats-new`_:
77
78 * Reduced internal copying of bytearray operations
79
80 * Tweak the internal structure of StringBuilder to speed up large string
81 handling, which becomes advantageous on large programs at the cost of slightly
82 slower small *benchmark* type programs.
83
84 * Boost performance of thread-local variables in both unjitted and jitted code,
85 this mostly affects errno handling on linux, which makes external calls
86 faster.
87
88 * Move to a mixed polling and mutex GIL model that make multithreaded jitted
89 code run *much* faster
90
91 * Optimize errno handling in linux (x86 and x86-64 only)
92
93 * Remove ctypes pythonapi and ctypes.PyDLL, which never worked on PyPy
94
95 * Fix performance regression on ufunc(<scalar>, <scalar>) in numpy
96
97 * Classes in the ast module are now distinct from structures used by
98 the compiler, which simplifies and speeds up translation of our
99 source code to the PyPy binary interpreter
100
101 * Upgrade stdlib from 2.7.5 to 2.7.8
102
103 * Win32 now links statically to zlib, expat, bzip, and openssl-1.0.1i.
104 No more missing DLLs
105
106 * Many issues were resolved_ since the 2.3.1 release on June 8
107
108 .. _`whats-new`: https://doc.pypy.org/whatsnew-2.4.0.html
109 .. _resolved: https://bitbucket.org/pypy/pypy/issues?status=resolved
110 .. _sandbox: https://doc.pypy.org/sandbox.html
111
112 We have further improvements on the way: rpython file handling,
113 numpy linalg compatibility, as well
114 as improved GC and many smaller improvements.
115
116 Please try it out and let us know what you think. We especially welcome
117 success stories, we know you are using PyPy, please tell us about it!
118
119 Cheers
120
121 The PyPy Team
122