Debian Codegraph @

pypy/doc/whatsnew-2.2.rst

raw
1 ======================
2 What's new in PyPy 2.2
3 ======================
4
5 .. this is a revision shortly after release-2.1-beta
6 .. startrev: 4eb52818e7c0
7
8 .. branch: sanitise_bytecode_dispatch
9
10 Make PyPy's bytecode dispatcher easy to read, and less reliant on RPython
11 magic. There is no functional change, though the removal of dead code leads
12 to many fewer tests to execute.
13
14 .. branch: fastjson
15
16 Fast json decoder written in RPython, about 3-4x faster than the pure Python
17 decoder which comes with the stdlib
18
19 .. branch: improve-str2charp
20
21 Improve the performance of I/O writing up to 15% by using memcpy instead of
22 copying char-by-char in str2charp and get_nonmovingbuffer
23
24 .. branch: flowoperators
25
26 Simplify rpython/flowspace/ code by using more metaprogramming. Create
27 SpaceOperator class to gather static information about flow graph operations.
28
29 .. branch: package-tk
30
31 Adapt package.py script to compile CFFI tk extension. Add a --without-tk switch
32 to optionally skip it.
33
34 .. branch: distutils-cppldflags
35
36 Copy CPython's implementation of customize_compiler, dont call split on
37 environment variables, honour CFLAGS, CPPFLAGS, LDSHARED and LDFLAGS on Unices.
38
39 .. branch: precise-instantiate
40
41 When an RPython class is instantiated via an indirect call (that is, which
42 class is being instantiated isn't known precisely) allow the optimizer to have
43 more precise information about which functions can be called. Needed for Topaz.
44
45 .. branch: ssl_moving_write_buffer
46
47 .. branch: pythoninspect-fix
48
49 Make PyPy respect PYTHONINSPECT variable set via os.putenv in the same process
50 to start interactive prompt when the script execution finishes. This adds
51 new __pypy__.os.real_getenv call that bypasses Python cache and looksup env
52 in the underlying OS. Translatorshell now works on PyPy.
53
54 .. branch: add-statvfs
55
56 Added os.statvfs and os.fstatvfs
57
58 .. branch: statvfs_tests
59
60 Added some addition tests for statvfs.
61
62 .. branch: ndarray-subtype
63
64 Allow subclassing ndarray, i.e. matrix
65
66 .. branch: ndarray-sort
67
68 Implement ndarray in-place sorting (for numeric types, no non-native byte order)
69
70 .. branch: pypy-pyarray
71
72 Implement much of numpy's c api in cpyext, allows (slow) access to ndarray
73 from c
74
75 .. branch: kill-ootype
76
77 .. branch: fast-slowpath
78
79 Added an abstraction for functions with a fast and slow path in the JIT. This
80 speeds up list.append() and list.pop().
81
82 .. branch: curses_fixes
83
84 .. branch: foldable-getarrayitem-indexerror
85
86 Constant-fold reading out of constant tuples in PyPy.
87
88 .. branch: mro-reorder-numpypy-str
89
90 No longer delegate numpy string methods to space.StringObject, in numpy
91 this works by kind of by accident. Support for merging the refactor-str-types
92 branch
93
94 .. branch: kill-typesystem
95
96 Remove the "type system" abstraction, now that there is only ever one kind of
97 type system used.
98
99 .. branch: kill-gen-store-back-in
100
101 Kills gen_store_back_in_virtualizable - should improve non-inlined calls by
102 a bit
103
104 .. branch: dotviewer-linewidth
105 .. branch: reflex-support
106 .. branch: numpypy-inplace-op
107 .. branch: rewritten-loop-logging
108 .. branch: no-release-gil
109 .. branch: safe-win-mmap
110 .. branch: boolean-indexing-cleanup
111 .. branch: cpyext-best_base
112 .. branch: cpyext-int
113 .. branch: fileops2
114
115 .. branch: nobold-backtrace
116
117 Work on improving UnionError messages and stack trace displays.
118
119 .. branch: improve-errors-again
120
121 More improvements and refactorings of error messages.
122
123 .. branch: improve-errors-again2
124
125 Unbreak tests in rlib.
126
127 .. branch: less-stringly-ops
128
129 Use subclasses of SpaceOperation instead of SpaceOperator objects.
130 Random cleanups in flowspace.
131
132 .. branch: file-support-in-rpython
133
134 make open() and friends rpython
135
136 .. branch: incremental-gc
137
138 Added the new incminimark GC which performs GC in incremental steps
139
140 .. branch: fast_cffi_list_init
141
142 fastpath for cffi.new("long[]")
143
144 .. branch: remove-eval-frame
145
146 remove a pointless abstraction
147
148 .. branch: jit-settrace
149
150 Allow the jit to continue running when sys.settrace() is active, necessary to
151 make coverage.py fast
152
153 .. branch: remove-numpypy
154
155 Remove lib_pypy/numpypy in favor of external numpy fork
156
157 .. branch: jit-counter
158
159 Tweak the jit counters: decay them at minor collection (actually
160 only every 32 minor collection is enough). Should avoid the "memory
161 leaks" observed in long-running processes, actually created by the
162 jit compiling more and more rarely executed paths.
163
164 .. branch: fix-trace-jit
165
166 Fixed the usage of sys.settrace() with the JIT. Also made it so using
167 sys.settrace() doesn't cause the GIL to be released on every single iteration.
168
169 .. branch: rordereddict
170
171 Implement OrderedDict in RPython