Debian Codegraph @

pypy/doc/release-pypy3-2.4.0.rst

raw
1 =================================================
2 PyPy3 2.4 - Snow White
3 =================================================
4
5 We're pleased to announce PyPy3 2.4, which contains significant performance
6 enhancements and bug fixes.
7
8 You can download the PyPy3 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! The three sub-projects are:
17
18 * `Py3k`_ (supporting Python 3.x): This is a Python 3.2.5 compatible
19 version we call PyPy3 2.4, and we are working toward a Python 3.3
20 compatible version
21
22 * `STM`_ (software transactional memory): We have released a first working version,
23 and continue to try out new promising paths of achieving a fast multithreaded Python
24
25 * `NumPy`_ which requires installation of our fork of upstream numpy,
26 available `on bitbucket`_
27
28 .. _`Py3k`: https://pypy.org/py3donate.html
29 .. _`STM`: https://pypy.org/tmdonate2.html
30 .. _`NumPy`: https://pypy.org/numpydonate.html
31 .. _`on bitbucket`: https://www.bitbucket.org/pypy/numpy
32
33 What is PyPy?
34 =============
35
36 PyPy is a very compliant Python interpreter, almost a drop-in replacement for
37 CPython 2.7 or 3.2.5. It's fast (`pypy 2.4 and cpython 2.7.x`_ performance
38 comparison) due to its integrated tracing JIT compiler.
39
40 This release supports **x86** machines on most common operating systems
41 (Linux 32/64, Mac OS X 64, Windows, and OpenBSD),
42 as well as newer **ARM** hardware (ARMv6 or ARMv7, with VFPv3) running Linux.
43
44 While we support 32 bit python on Windows, work on the native Windows 64
45 bit python is still stalling, we would welcome a volunteer
46 to `handle that`_.
47
48 .. _`pypy 2.4 and cpython 2.7.x`: https://speed.pypy.org
49 .. _`handle that`: https://doc.pypy.org/windows.html#what-is-missing-for-a-full-64-bit-translation
50
51 PyPy3 Highlights
52 ================
53
54 Issues reported with our previous release were fixed after reports from users on
55 our new issue tracker at https://bitbucket.org/pypy/pypy/issues or on IRC at
56 #pypy. Here is a summary of the user-facing PyPy3 specific changes:
57
58 * Better Windows compatibility, e.g. the nt module functions _getfinalpathname
59 & _getfileinformation are now supported (the former is required for the
60 popular pathlib library for example)
61
62 * Various fsencode PEP 383 related fixes to the posix module (readlink, uname,
63 ttyname and ctermid) and improved locale handling
64
65 * Switched default binary name os POSIX distributions to 'pypy3' (which
66 symlinks to to 'pypy3.2')
67
68 * Fixed a couple different crashes related to parsing Python 3 source code
69
70 Further Highlights (shared w/ PyPy2)
71 ====================================
72
73 Benchmarks improved after internal enhancements in string and
74 bytearray handling, and a major rewrite of the GIL handling. This means
75 that external calls are now a lot faster, especially the CFFI ones. It also
76 means better performance in a lot of corner cases with handling strings or
77 bytearrays. The main bugfix is handling of many socket objects in your
78 program which in the long run used to "leak" memory.
79
80 We fixed a memory leak in IO in the sandbox_ code
81
82 We welcomed more than 12 new contributors, and conducted two Google
83 Summer of Code projects, as well as other student projects not
84 directly related to Summer of Code.
85
86 * Reduced internal copying of bytearray operations
87
88 * Tweak the internal structure of StringBuilder to speed up large string
89 handling, which becomes advantageous on large programs at the cost of slightly
90 slower small *benchmark* type programs.
91
92 * Boost performance of thread-local variables in both unjitted and jitted code,
93 this mostly affects errno handling on linux, which makes external calls
94 faster.
95
96 * Move to a mixed polling and mutex GIL model that make multithreaded jitted
97 code run *much* faster
98
99 * Optimize errno handling in linux (x86 and x86-64 only)
100
101 * Remove ctypes pythonapi and ctypes.PyDLL, which never worked on PyPy
102
103 * Classes in the ast module are now distinct from structures used by
104 the compiler, which simplifies and speeds up translation of our
105 source code to the PyPy binary interpreter
106
107 * Win32 now links statically to zlib, expat, bzip, and openssl-1.0.1i.
108 No more missing DLLs
109
110 * Many issues were resolved_ since the 2.3.1 release in June
111
112 .. _`whats-new`: https://doc.pypy.org/whatsnew-2.4.0.html
113 .. _resolved: https://bitbucket.org/pypy/pypy/issues?status=resolved
114 .. _sandbox: https://doc.pypy.org/sandbox.html
115
116 We have further improvements on the way: rpython file handling,
117 numpy linalg compatibility, as well
118 as improved GC and many smaller improvements.
119
120 Please try it out and let us know what you think. We especially welcome
121 success stories, we know you are using PyPy, please tell us about it!
122
123 Cheers
124
125 The PyPy Team
126