Debian Codegraph @

pypy/doc/release-0.6.rst

raw
1 The PyPy 0.6 release
2 --------------------
3
4 *The PyPy Development Team is happy to announce the first
5 public release of PyPy after two years of spare-time and
6 half a year of EU funded development. The 0.6 release
7 is eminently a preview release.*
8
9 What it is and where to start
10 -----------------------------
11
12 Getting started: getting-started.html
13
14 PyPy Documentation: index.html
15
16 PyPy Homepage: https://pypy.org
17
18 PyPy is a MIT-licensed reimplementation of Python written in
19 Python itself. The long term goals are an implementation that
20 is flexible and easy to experiment with and retarget to
21 different platforms (also non-C ones) and such that high
22 performance can be achieved through high-level implementations
23 of dynamic optimization techniques.
24
25 The interpreter and object model implementations shipped with 0.6 can
26 be run on top of CPython and implement the core language features of
27 Python as of CPython 2.3. PyPy passes around 90% of the Python language
28 regression tests that do not depend deeply on C-extensions. Some of
29 that functionality is still made available by PyPy piggy-backing on
30 the host CPython interpreter. Double interpretation and abstractions
31 in the code-base make it so that PyPy running on CPython is quite slow
32 (around 2000x slower than CPython ), this is expected.
33
34 This release is intended for people that want to look and get a feel
35 into what we are doing, playing with interpreter and perusing the
36 codebase. Possibly to join in the fun and efforts.
37
38 Interesting bits and highlights
39 ---------------------------------
40
41 The release is also a snap-shot of our ongoing efforts towards
42 low-level translation and experimenting with unique features.
43
44 * By default, PyPy is a Python version that works completely with
45 new-style-classes semantics. However, support for old-style classes
46 is still available. Implementations, mostly as user-level code, of
47 their metaclass and instance object are included and can be re-made
48 the default with the ``--oldstyle`` option.
49
50 * In PyPy, bytecode interpretation and object manipulations
51 are well separated between a bytecode interpreter and an
52 *object space* which implements operations on objects.
53 PyPy comes with experimental object spaces augmenting the
54 standard one through delegation:
55
56 * an experimental object space that does extensive tracing of
57 bytecode and object operations;
58
59 * the 'thunk' object space that implements lazy values and a 'become'
60 operation that can exchange object identities.
61
62 These spaces already give a glimpse in the flexibility potential of
63 PyPy. See demo/fibonacci.py and demo/sharedref.py for examples
64 about the 'thunk' object space.
65
66 * The 0.6 release also contains a snapshot of our translation-efforts
67 to lower level languages. For that we have developed an
68 annotator which is capable of inferring type information
69 across our code base. The annotator right now is already
70 capable of successfully type annotating basically *all* of
71 PyPy code-base, and is included with 0.6.
72
73 * From type annotated code, low-level code needs to be generated.
74 Backends for various targets (C, LLVM,...) are included; they are
75 all somehow incomplete and have been and are quite in flux. What is
76 shipped with 0.6 is able to deal with more or less small/medium examples.
77
78
79 Ongoing work and near term goals
80 ---------------------------------
81
82 Generating low-level code is the main area we are hammering on in the
83 next months; our plan is to produce a PyPy version in August/September
84 that does not need to be interpreted by CPython anymore and will
85 thus run considerably faster than the 0.6 preview release.
86
87 PyPy has been a community effort from the start and it would
88 not have got that far without the coding and feedback support
89 from numerous people. Please feel free to give feedback and
90 raise questions.
91
92 contact points: https://pypy.org/contact.html
93
94 contributor list: contributor.html
95
96 have fun,
97
98 Armin Rigo, Samuele Pedroni,
99
100 Holger Krekel, Christian Tismer,
101
102 Carl Friedrich Bolz
103
104
105 PyPy development and activities happen as an open source project
106 and with the support of a consortium funded by a two year EU IST
107 research grant. Here is a list of partners of the EU project:
108
109 Heinrich-Heine University (Germany), AB Strakt (Sweden)
110
111 merlinux GmbH (Germany), tismerysoft GmbH(Germany)
112
113 Logilab Paris (France), DFKI GmbH (Germany)
114
115 ChangeMaker (Sweden)
116