Debian Codegraph @

pypy/doc/release-5.1.0.rst

raw
1 ========
2 PyPy 5.1
3 ========
4
5 We have released PyPy 5.1, about a month after PyPy 5.0.
6
7 This release includes more improvement to warmup time and memory
8 requirements. We have seen about a 20% memory requirement reduction and up to
9 30% warmup time improvement, more detail in the `blog post`_.
10
11 We also now have `fully support for the IBM s390x`_. Since this support is in
12 `RPython`_, any dynamic language written using RPython, like PyPy, will
13 automagically be supported on that architecture.
14
15 We updated cffi_ to 1.6, and continue to improve support for the wider
16 python ecosystem using the PyPy interpreter.
17
18 You can download the PyPy 5.1 release here:
19
20 https://pypy.org/download.html
21
22 We would like to thank our donors for the continued support of the PyPy
23 project.
24
25 We would also like to thank our contributors and
26 encourage new people to join the project. PyPy has many
27 layers and we need help with all of them: `PyPy`_ and `RPython`_ documentation
28 improvements, tweaking popular `modules`_ to run on pypy, or general `help`_
29 with making RPython's JIT even better.
30
31 .. _`PyPy`: https://doc.pypy.org
32 .. _`RPython`: https://rpython.readthedocs.org
33 .. _`modules`: https://doc.pypy.org/project-ideas.html#make-more-python-modules-pypy-friendly
34 .. _`help`: https://doc.pypy.org/project-ideas.html
35 .. _`numpy`: https://bitbucket.org/pypy/numpy
36 .. _cffi: https://cffi.readthedocs.org
37 .. _`fully support for the IBM s390x`: https://morepypy.blogspot.com/2016/04/pypy-enterprise-edition.html
38 .. _`blog post`: https://morepypy.blogspot.com/2016/04/warmup-improvements-more-efficient.html
39
40 What is PyPy?
41 =============
42
43 PyPy is a very compliant Python interpreter, almost a drop-in replacement for
44 CPython 2.7. It's fast (`PyPy and CPython 2.7.x`_ performance comparison)
45 due to its integrated tracing JIT compiler.
46
47 We also welcome developers of other
48 `dynamic languages`_ to see what RPython can do for them.
49
50 This release supports:
51
52 * **x86** machines on most common operating systems
53 (Linux 32/64, Mac OS X 64, Windows 32, OpenBSD, FreeBSD),
54
55 * newer **ARM** hardware (ARMv6 or ARMv7, with VFPv3) running Linux,
56
57 * big- and little-endian variants of **PPC64** running Linux,
58
59 * **s390x** running Linux
60
61 .. _`PyPy and CPython 2.7.x`: https://speed.pypy.org
62 .. _`dynamic languages`: https://pypyjs.org
63
64 Other Highlights (since 5.0 released in March 2015)
65 =========================================================
66
67 * New features:
68
69 * A new jit backend for the IBM s390x, which was a large effort over the past
70 few months.
71
72 * Add better support for PyUnicodeObject in the C-API compatibility layer
73
74 * Support GNU/kFreeBSD Debian ports in vmprof
75
76 * Add __pypy__._promote
77
78 * Make attrgetter a single type for CPython compatibility
79
80 * Bug Fixes
81
82 * Catch exceptions raised in an exit function
83
84 * Fix a corner case in the JIT
85
86 * Fix edge cases in the cpyext refcounting-compatible semantics
87 (more work on cpyext compatibility is coming in the ``cpyext-ext``
88 branch, but isn't ready yet)
89
90 * Try harder to not emit NEON instructions on ARM processors without NEON
91 support
92
93 * Improve the rpython posix module system interaction function calls
94
95 * Detect a missing class function implementation instead of calling a random
96 function
97
98 * Check that PyTupleObjects do not contain any NULLs at the
99 point of conversion to W_TupleObjects
100
101 * In ctypes, fix _anonymous_ fields of instances
102
103 * Fix JIT issue with unpack() on a Trace which contains half-written operations
104
105 * Fix sandbox startup (a regression in 5.0)
106
107 * Fix possible segfault for classes with mangled mro or __metaclass__
108
109 * Fix isinstance(deque(), Hashable) on the pure python deque
110
111 * Fix an issue with forkpty()
112
113 * Issues reported with our previous release were resolved_ after reports from users on
114 our issue tracker at https://bitbucket.org/pypy/pypy/issues or on IRC at
115 #pypy
116
117 * Numpy_:
118
119 * Implemented numpy.where for a single argument
120
121 * Indexing by a numpy scalar now returns a scalar
122
123 * Fix transpose(arg) when arg is a sequence
124
125 * Refactor include file handling, now all numpy ndarray, ufunc, and umath
126 functions exported from libpypy.so are declared in pypy_numpy.h, which is
127 included only when building our fork of numpy
128
129 * Add broadcast
130
131 * Performance improvements:
132
133 * Improve str.endswith([tuple]) and str.startswith([tuple]) to allow JITting
134
135 * Merge another round of improvements to the warmup performance
136
137 * Cleanup history rewriting in pyjitpl
138
139 * Remove the forced minor collection that occurs when rewriting the
140 assembler at the start of the JIT backend
141
142 * Port the resource module to cffi
143
144 * Internal refactorings:
145
146 * Use a simpler logger to speed up translation
147
148 * Drop vestiges of Python 2.5 support in testing
149
150 * Update rpython functions with ones needed for py3k
151
152 .. _resolved: https://doc.pypy.org/whatsnew-5.0.0.html
153 .. _Numpy: https://bitbucket.org/pypy/numpy
154
155 Please update, and continue to help us make PyPy better.
156
157 Cheers
158
159 The PyPy Team
160