Debian Codegraph @

pypy/doc/whatsnew-5.0.0.rst

raw
1 ======================
2 What's new in PyPy 5.0
3 ======================
4
5 .. this is a revision shortly after release-4.0.1
6 .. startrev: 4b5c840d0da2
7
8 Fixed ``_PyLong_FromByteArray()``, which was buggy.
9
10 Fixed a crash with stacklets (or greenlets) on non-Linux machines
11 which showed up if you forget stacklets without resuming them.
12
13 .. branch: numpy-1.10
14
15 Fix tests to run cleanly with -A and start to fix micronumpy for upstream numpy
16 which is now 1.10.2
17
18 .. branch: osx-flat-namespace
19
20 Fix the cpyext tests on OSX by linking with -flat_namespace
21
22 .. branch: anntype
23
24 Refactor and improve exception analysis in the annotator.
25
26 .. branch: posita/2193-datetime-timedelta-integrals
27
28 Fix issue #2193. ``isinstance(..., int)`` => ``isinstance(..., numbers.Integral)``
29 to allow for alternate ``int``-like implementations (e.g., ``future.types.newint``)
30
31 .. branch: faster-rstruct
32
33 Improve the performance of struct.unpack, which now directly reads inside the
34 string buffer and directly casts the bytes to the appropriate type, when
35 allowed. Unpacking of floats and doubles is about 15 times faster now, while
36 for integer types it's up to ~50% faster for 64bit integers.
37
38 .. branch: wrap-specialisation
39
40 Remove unnecessary special handling of space.wrap().
41
42 .. branch: compress-numbering
43
44 Improve the memory signature of numbering instances in the JIT. This should massively
45 decrease the amount of memory consumed by the JIT, which is significant for most programs.
46
47 .. branch: fix-trace-too-long-heuristic
48
49 Improve the heuristic when disable trace-too-long
50
51 .. branch: fix-setslice-can-resize
52
53 Make rlist's ll_listsetslice() able to resize the target list to help
54 simplify objspace/std/listobject.py. Was issue #2196.
55
56 .. branch: anntype2
57
58 A somewhat random bunch of changes and fixes following up on branch 'anntype'. Highlights:
59
60 - Implement @doubledispatch decorator and use it for intersection() and difference().
61
62 - Turn isinstance into a SpaceOperation
63
64 - Create a few direct tests of the fundamental annotation invariant in test_model.py
65
66 - Remove bookkeeper attribute from DictDef and ListDef.
67
68 .. branch: cffi-static-callback
69
70 .. branch: vecopt-absvalue
71
72 - Enhancement. Removed vector fields from AbstractValue.
73
74 .. branch: memop-simplify2
75
76 Simplification. Backends implement too many loading instructions, only having a slightly different interface.
77 Four new operations (gc_load/gc_load_indexed, gc_store/gc_store_indexed) replace all the
78 commonly known loading operations
79
80 .. branch: more-rposix
81
82 Move wrappers for OS functions from `rpython/rtyper` to `rpython/rlib` and
83 turn them into regular RPython functions. Most RPython-compatible `os.*`
84 functions are now directly accessible as `rpython.rposix.*`.
85
86 .. branch: always-enable-gil
87
88 Simplify a bit the GIL handling in non-jitted code. Fixes issue #2205.
89
90 .. branch: flowspace-cleanups
91
92 Trivial cleanups in flowspace.operation : fix comment & duplicated method
93
94 .. branch: test-AF_NETLINK
95
96 Add a test for pre-existing AF_NETLINK support. Was part of issue #1942.
97
98 .. branch: small-cleanups-misc
99
100 Trivial misc cleanups: typo, whitespace, obsolete comments
101
102 .. branch: cpyext-slotdefs
103 .. branch: fix-missing-canraise
104 .. branch: whatsnew
105
106 .. branch: fix-2211
107
108 Fix the cryptic exception message when attempting to use extended slicing
109 in rpython. Was issue #2211.
110
111 .. branch: ec-keepalive
112
113 Optimize the case where, in a new C-created thread, we keep invoking
114 short-running Python callbacks. (CFFI on CPython has a hack to achieve
115 the same result.) This can also be seen as a bug fix: previously,
116 thread-local objects would be reset between two such calls.
117
118 .. branch: globals-quasiimmut
119
120 Optimize global lookups.
121
122 .. branch: cffi-static-callback-embedding
123
124 Updated to CFFI 1.5, which supports a new way to do embedding.
125 Deprecates https://pypy.readthedocs.org/en/latest/embedding.html.
126
127 .. branch: fix-cpython-ssl-tests-2.7
128
129 Fix SSL tests by importing cpython's patch
130
131
132 .. branch: remove-getfield-pure
133
134 Remove pure variants of ``getfield_gc_*`` operations from the JIT. Relevant
135 optimizations instead consult the field descriptor to determine the purity of
136 the operation. Additionally, pure ``getfield`` operations are now handled
137 entirely by `rpython/jit/metainterp/optimizeopt/heap.py` rather than
138 `rpython/jit/metainterp/optimizeopt/pure.py`, which can result in better codegen
139 for traces containing a large number of pure getfield operations.
140
141 .. branch: exctrans
142
143 Try to ensure that no new functions get annotated during the 'source_c' phase.
144 Refactor sandboxing to operate at a higher level.
145
146 .. branch: cpyext-bootstrap
147
148 .. branch: vmprof-newstack
149
150 Refactor vmprof to work cross-operating-system.
151
152 .. branch: seperate-strucmember_h
153
154 Separate structmember.h from Python.h Also enhance creating api functions
155 to specify which header file they appear in (previously only pypy_decl.h)
156
157 .. branch: llimpl
158
159 Refactor register_external(), remove running_on_llinterp mechanism and
160 apply sandbox transform on externals at the end of annotation.
161
162 .. branch: cffi-embedding-win32
163
164 .. branch: windows-vmprof-support
165
166 vmprof should work on Windows.
167
168
169 .. branch: reorder-map-attributes
170
171 When creating instances and adding attributes in several different orders
172 depending on some condition, the JIT would create too much code. This is now
173 fixed.
174
175 .. branch: cpyext-gc-support-2
176
177 Improve CPython C API support, which means lxml now runs unmodified
178 (after removing pypy hacks, pending pull request)
179
180 .. branch: look-inside-tuple-hash
181
182 Look inside tuple hash, improving mdp benchmark
183
184 .. branch: vlen-resume
185
186 Compress resume data, saving 10-20% of memory consumed by the JIT
187
188 .. branch: issue-2248
189
190 .. branch: ndarray-setitem-filtered
191
192 Fix boolean-array indexing in micronumpy
193
194 .. branch: numpy_partition
195
196 Support ndarray.partition() as an app-level function numpy.core._partition_use,
197 provided as a cffi wrapper to upstream's implementation in the pypy/numpy repo
198