Debian Codegraph @

pypy/doc/release-1.9.0.rst

raw
1 ====================
2 PyPy 1.9 - Yard Wolf
3 ====================
4
5 We're pleased to announce the 1.9 release of PyPy. This release brings mostly
6 bugfixes, performance improvements, other small improvements and overall
7 progress on the `numpypy`_ effort.
8 It also brings an improved situation on Windows and OS X.
9
10 You can download the PyPy 1.9 release here:
11
12 https://pypy.org/download.html
13
14 .. _`numpypy`: https://pypy.org/numpydonate.html
15
16
17 What is PyPy?
18 =============
19
20 PyPy is a very compliant Python interpreter, almost a drop-in replacement for
21 CPython 2.7. It's fast (`pypy 1.9 and cpython 2.7.2`_ performance comparison)
22 due to its integrated tracing JIT compiler.
23
24 This release supports x86 machines running Linux 32/64, Mac OS X 64 or
25 Windows 32. Windows 64 work is still stalling, we would welcome a volunteer
26 to handle that.
27
28 .. _`pypy 1.9 and cpython 2.7.2`: https://speed.pypy.org
29
30
31 Thanks to our donors
32 ====================
33
34 But first of all, we would like to say thank you to all people who
35 donated some money to one of our four calls:
36
37 * `NumPy in PyPy`_ (got so far $44502 out of $60000, 74%)
38
39 * `Py3k (Python 3)`_ (got so far $43563 out of $105000, 41%)
40
41 * `Software Transactional Memory`_ (got so far $21791 of $50400, 43%)
42
43 * as well as our general PyPy pot.
44
45 Thank you all for proving that it is indeed possible for a small team of
46 programmers to get funded like that, at least for some
47 time. We want to include this thank you in the present release
48 announcement even though most of the work is not finished yet. More
49 precisely, neither Py3k nor STM are ready to make it in an official release
50 yet: people interested in them need to grab and (attempt to) translate
51 PyPy from the corresponding branches (respectively ``py3k`` and
52 ``stm-thread``).
53
54 .. _`NumPy in PyPy`: https://pypy.org/numpydonate.html
55 .. _`Py3k (Python 3)`: https://pypy.org/py3donate.html
56 .. _`Software Transactional Memory`: https://pypy.org/tmdonate.html
57
58 Highlights
59 ==========
60
61 * This release still implements Python 2.7.2.
62
63 * Many bugs were corrected for Windows 32 bit. This includes new
64 functionality to test the validity of file descriptors; and
65 correct handling of the calling conventions for ctypes. (Still not
66 much progress on Win64.) A lot of work on this has been done by Matti Picus
67 and Amaury Forgeot d'Arc.
68
69 * Improvements in ``cpyext``, our emulator for CPython C extension modules.
70 For example PyOpenSSL should now work. We thank various people for help.
71
72 * Sets now have strategies just like dictionaries. This means for example
73 that a set containing only ints will be more compact (and faster).
74
75 * A lot of progress on various aspects of ``numpypy``. See the `numpy-status`_
76 page for the automatic report.
77
78 * It is now possible to create and manipulate C-like structures using the
79 PyPy-only ``_ffi`` module. The advantage over using e.g. ``ctypes`` is that
80 ``_ffi`` is very JIT-friendly, and getting/setting of fields is translated
81 to few assembler instructions by the JIT. However, this is mostly intended
82 as a low-level backend to be used by more user-friendly FFI packages, and
83 the API might change in the future. Use it at your own risk.
84
85 * The non-x86 backends for the JIT are progressing but are still not
86 merged (ARMv7 and PPC64).
87
88 * JIT hooks for inspecting the created assembler code have been improved.
89 See `JIT hooks documentation`_ for details.
90
91 * ``select.kqueue`` has been added (BSD).
92
93 * Handling of keyword arguments has been drastically improved in the best-case
94 scenario: proxy functions which simply forwards ``*args`` and ``**kwargs``
95 to another function now performs much better with the JIT.
96
97 * List comprehension has been improved.
98
99 .. _`numpy-status`: https://buildbot.pypy.org/numpy-status/latest.html
100 .. _`JIT hooks documentation`: https://doc.pypy.org/jit-hooks.html
101
102 JitViewer
103 =========
104
105 There will be a corresponding 1.9 release of JitViewer which is guaranteed
106 to work with PyPy 1.9. See the `JitViewer docs`_ for details.
107
108 .. _`JitViewer docs`: https://bitbucket.org/pypy/jitviewer
109
110 Cheers,
111 The PyPy Team