| 1 |
pypy-0.9.0: stackless, new extension compiler |
| 2 |
============================================================== |
| 3 |
|
| 4 |
The PyPy development team has been busy working and we've now packaged |
| 5 |
our latest improvements, completed work and new experiments as |
| 6 |
version 0.9.0, our fourth public release. |
| 7 |
|
| 8 |
The highlights of this fourth release of PyPy are: |
| 9 |
|
| 10 |
**implementation of "stackless" features** |
| 11 |
We now support the larger part of the interface of the original |
| 12 |
Stackless Python -- see https://www.stackless.com for more. A |
| 13 |
significant part of this is the pickling and unpickling of a running |
| 14 |
tasklet. |
| 15 |
|
| 16 |
These features, especially the pickling, can be considered to be a |
| 17 |
"technology preview" -- they work, but for example the error handling |
| 18 |
is a little patchy in places. |
| 19 |
|
| 20 |
**ext-compiler** |
| 21 |
The "extension compiler" is a new way of writing a C extension for |
| 22 |
CPython and PyPy at the same time. For more information, see its |
| 23 |
documentation: https://codespeak.net/pypy/dist/pypy/doc/extcompiler.html |
| 24 |
|
| 25 |
**rctypes** |
| 26 |
Most useful in combination with the ext-compiler is the fact that our |
| 27 |
translation framework can translate code that uses the |
| 28 |
standard-in-Python-2.5 ctypes module. See its documentation for more: |
| 29 |
https://codespeak.net/pypy/dist/pypy/doc/rctypes.html |
| 30 |
|
| 31 |
**framework GCs** |
| 32 |
PyPy's interpreter can now be compiled to use a garbage collector |
| 33 |
written in RPython. This added control over PyPy's execution makes the |
| 34 |
implementation of new and interesting features possible, apart from |
| 35 |
being a significant achievement in its own right. |
| 36 |
|
| 37 |
**__del__/weakref/__subclasses__** |
| 38 |
The PyPy interpreter's compatibility with CPython continues improves: |
| 39 |
now we support __del__ methods, the __subclasses__ method on types and |
| 40 |
weak references. We now pass around 95% of CPython's core tests. |
| 41 |
|
| 42 |
**logic space preview** |
| 43 |
This release contains the first version of the logic object space, |
| 44 |
which will add logical variables to Python. See its docs for more: |
| 45 |
https://codespeak.net/pypy/dist/pypy/doc/howto-logicobjspace-0.9.html |
| 46 |
|
| 47 |
**high level backends preview** |
| 48 |
This release contains the first versions of new backends targeting high |
| 49 |
level languages such as Squeak and .NET/CLI and updated versions of the |
| 50 |
JavaScript and Common Lisp backends. They can't compile the PyPy |
| 51 |
interpreter yet, but they're getting there... |
| 52 |
|
| 53 |
**bugfixes, better performance** |
| 54 |
As you would expect, performance continues to improve and bugs continue |
| 55 |
to be fixed. The performance of the translated PyPy interpreter is |
| 56 |
2.5-3x times faster than 0.8 (on richards and pystone), and is now |
| 57 |
stable enough to be able to run CPython's test suite to the end. |
| 58 |
|
| 59 |
**testing refinements** |
| 60 |
py.test, our testing tool, now has preliminary support for doctests. |
| 61 |
We now run all our tests every night, and you can see the summary at: |
| 62 |
https://buildbot.pypy.org/summary |
| 63 |
|
| 64 |
What is PyPy (about)? |
| 65 |
------------------------------------------------ |
| 66 |
|
| 67 |
PyPy is a MIT-licensed research-oriented reimplementation of Python |
| 68 |
written in Python itself, flexible and easy to experiment with. It |
| 69 |
translates itself to lower level languages. Our goals are to target a |
| 70 |
large variety of platforms, small and large, by providing a |
| 71 |
compilation toolsuite that can produce custom Python versions. |
| 72 |
Platform, memory and threading models are to become aspects of the |
| 73 |
translation process - as opposed to encoding low level details into |
| 74 |
the language implementation itself. Eventually, dynamic optimization |
| 75 |
techniques - implemented as another translation aspect - should become |
| 76 |
robust against language changes. |
| 77 |
|
| 78 |
Note that PyPy is mainly a research and development project and does |
| 79 |
not by itself focus on getting a production-ready Python |
| 80 |
implementation although we do hope and expect it to become a viable |
| 81 |
contender in that area sometime next year. |
| 82 |
|
| 83 |
PyPy is partially funded as a research project under the European |
| 84 |
Union's IST programme. |
| 85 |
|
| 86 |
Where to start? |
| 87 |
----------------------------- |
| 88 |
|
| 89 |
Getting started: https://codespeak.net/pypy/dist/pypy/doc/getting-started.html |
| 90 |
|
| 91 |
PyPy Documentation: https://codespeak.net/pypy/dist/pypy/doc/ |
| 92 |
|
| 93 |
PyPy Homepage: https://codespeak.net/pypy/ |
| 94 |
|
| 95 |
The interpreter and object model implementations shipped with the 0.9 |
| 96 |
version can run on their own and implement the core language features |
| 97 |
of Python as of CPython 2.4. However, we still do not recommend using |
| 98 |
PyPy for anything else than for education, playing or research |
| 99 |
purposes. |
| 100 |
|
| 101 |
Ongoing work and near term goals |
| 102 |
--------------------------------- |
| 103 |
|
| 104 |
The Just-in-Time compiler and other performance improvements will be one of |
| 105 |
the main topics of the next few months' work, along with finishing the |
| 106 |
logic object space. |
| 107 |
|
| 108 |
Project Details |
| 109 |
--------------- |
| 110 |
|
| 111 |
PyPy has been developed during approximately 20 coding sprints across |
| 112 |
Europe and the US. It continues to be a very dynamically and |
| 113 |
incrementally evolving project with many of these one-week workshops |
| 114 |
to follow. |
| 115 |
|
| 116 |
PyPy has been a community effort from the start and it would |
| 117 |
not have got that far without the coding and feedback support |
| 118 |
from numerous people. Please feel free to give feedback and |
| 119 |
raise questions. |
| 120 |
|
| 121 |
contact points: https://codespeak.net/pypy/dist/pypy/doc/contact.html |
| 122 |
|
| 123 |
have fun, |
| 124 |
|
| 125 |
the pypy team, (Armin Rigo, Samuele Pedroni, |
| 126 |
Holger Krekel, Christian Tismer, |
| 127 |
Carl Friedrich Bolz, Michael Hudson, |
| 128 |
and many others: https://codespeak.net/pypy/dist/pypy/doc/contributor.html) |
| 129 |
|
| 130 |
PyPy development and activities happen as an open source project |
| 131 |
and with the support of a consortium partially funded by a two |
| 132 |
year European Union IST research grant. The full partners of that |
| 133 |
consortium are: |
| 134 |
|
| 135 |
Heinrich-Heine University (Germany), AB Strakt (Sweden) |
| 136 |
merlinux GmbH (Germany), tismerysoft GmbH (Germany) |
| 137 |
Logilab Paris (France), DFKI GmbH (Germany) |
| 138 |
ChangeMaker (Sweden), Impara (Germany) |