| 1 |
====================================================================== |
| 2 |
pypy-0.99.0: new object spaces, optimizations, configuration ... |
| 3 |
====================================================================== |
| 4 |
|
| 5 |
Welcome to the PyPy 0.99.0 release - a major snapshot |
| 6 |
and milestone of the last 8 months of work and contributions |
| 7 |
since PyPy-0.9.0 came out in June 2006! |
| 8 |
|
| 9 |
Main entry point for getting-started/download and documentation: |
| 10 |
|
| 11 |
https://codespeak.net/pypy/dist/pypy/doc/index.html |
| 12 |
|
| 13 |
Further below you'll find some notes about PyPy, |
| 14 |
the 0.99.0 highlights and our aims for PyPy 1.0. |
| 15 |
|
| 16 |
have fun, |
| 17 |
|
| 18 |
the PyPy team, |
| 19 |
Samuele Pedroni, Carl Friedrich Bolz, Armin Rigo, Michael Hudson, |
| 20 |
Maciej Fijalkowski, Anders Chrigstroem, Holger Krekel, |
| 21 |
Guido Wesdorp |
| 22 |
|
| 23 |
and many others: |
| 24 |
https://codespeak.net/pypy/dist/pypy/doc/contributor.html |
| 25 |
|
| 26 |
|
| 27 |
What is PyPy? |
| 28 |
================================ |
| 29 |
|
| 30 |
Technically, PyPy is both a Python Interpreter implementation |
| 31 |
and an advanced Compiler, actually a framework for implementing |
| 32 |
dynamic languages and generating virtual machines for them. |
| 33 |
The Framework allows for alternative frontends and |
| 34 |
for alternative backends, currently C, LLVM and .NET. |
| 35 |
For our main target "C", we can can "mix in" different Garbage |
| 36 |
Collectors and threading models, including micro-threads aka |
| 37 |
"Stackless". The inherent complexity that arises from this |
| 38 |
ambitious approach is mostly kept away from the Python |
| 39 |
interpreter implementation, our main frontend. |
| 40 |
|
| 41 |
Socially, PyPy is a collaborative effort of many individuals |
| 42 |
working together in a distributed and sprint-driven way since |
| 43 |
2003. PyPy would not have gotten as far without the coding, |
| 44 |
feedback and general support from numerous people. |
| 45 |
|
| 46 |
Formally, many of the current developers are involved in |
| 47 |
executing an EU contract with the goal of exploring and |
| 48 |
researching new approaches to Language/Compiler development and |
| 49 |
software engineering. This contract's duration is about to |
| 50 |
end March 2007 and we are working and preparing the according |
| 51 |
final review which is scheduled for May 2007. |
| 52 |
|
| 53 |
|
| 54 |
Key 0.99.0 Features |
| 55 |
===================== |
| 56 |
|
| 57 |
* new object spaces: |
| 58 |
|
| 59 |
- Tainting: a 270-line proxy object space tracking |
| 60 |
and boxing sensitive information within an application. |
| 61 |
A tainted object is completely barred from crossing |
| 62 |
an I/O barrier, such as writing to files, databases |
| 63 |
or sockets. This allows to significantly reduce the |
| 64 |
effort of e.g. security reviews to the few places where |
| 65 |
objects are "declassified" in order to send information |
| 66 |
across I/O barriers. |
| 67 |
|
| 68 |
- Transparent proxies: allow to customize both application and |
| 69 |
builtin objects from application level code. Works as an addition |
| 70 |
to the Standard Object Space (and is translatable). For details see |
| 71 |
https://codespeak.net/pypy/dist/pypy/doc/proxy.html |
| 72 |
|
| 73 |
* optimizations: |
| 74 |
|
| 75 |
- Experimental new optimized implementations for various built in Python |
| 76 |
types (strings, dicts, lists) |
| 77 |
|
| 78 |
- Optimized builtin lookups to not require any dictionary lookups if the |
| 79 |
builtin is not shadowed by a name in the global dictionary. |
| 80 |
|
| 81 |
- Improved inlining (now also working for higher level |
| 82 |
backends) and malloc removal. |
| 83 |
|
| 84 |
- twice the speed of the 0.9 release, overall 2-3 slower than CPython |
| 85 |
|
| 86 |
* High level backends: |
| 87 |
|
| 88 |
- It is now possible to translate the PyPy interpreter to run on the .NET |
| 89 |
platform, which gives a very compliant (but somewhat slow) Python |
| 90 |
interpreter. |
| 91 |
|
| 92 |
- the JavaScript backend has evolved to a point where it can be used to write |
| 93 |
AJAX web applications with it. This is still an experimental technique, |
| 94 |
though. For demo applications see: |
| 95 |
https://play1.codespeak.net/ |
| 96 |
|
| 97 |
* new configuration system: |
| 98 |
There is a new comprehensive configuration system that allows |
| 99 |
fine-grained configuration of the PyPy standard interpreter and the |
| 100 |
translation process. |
| 101 |
|
| 102 |
* new and improved modules: Since the last release, the signal, mmap, bz2 |
| 103 |
and fcntl standard library modules have been implemented for PyPy. The socket, |
| 104 |
_sre and os modules have been greatly improved. In addition we added a the |
| 105 |
pypymagic module that contains PyPy-specific functionality. |
| 106 |
|
| 107 |
* improved file implementation: Our file implementation was ported to RPython |
| 108 |
and is therefore faster (and not based on libc). |
| 109 |
|
| 110 |
* The stability of stackless features was greatly improved. For more details |
| 111 |
see: https://codespeak.net/pypy/dist/pypy/doc/stackless.html |
| 112 |
|
| 113 |
* RPython library: The release contains our emerging RPython library that tries |
| 114 |
to make programming in RPython more pleasant. It contains an experimental |
| 115 |
parser generator framework. For more details see: |
| 116 |
https://codespeak.net/pypy/dist/pypy/doc/rlib.html |
| 117 |
|
| 118 |
* improved documentation: |
| 119 |
|
| 120 |
- extended documentation about stackless features: |
| 121 |
https://codespeak.net/pypy/dist/pypy/doc/stackless.html |
| 122 |
|
| 123 |
- PyPy video documentation: eight hours of talks, interviews and features: |
| 124 |
https://codespeak.net/pypy/dist/pypy/doc/video-index.html |
| 125 |
|
| 126 |
- technical reports about various aspects of PyPy: |
| 127 |
https://codespeak.net/pypy/dist/pypy/doc/index-report.html |
| 128 |
|
| 129 |
The entry point to all our documentation is: |
| 130 |
https://codespeak.net/pypy/dist/pypy/doc/index.html |
| 131 |
|
| 132 |
|
| 133 |
|
| 134 |
What about 1.0? |
| 135 |
====================== |
| 136 |
|
| 137 |
In the last week leading up to the release, we decided |
| 138 |
to go for tagging the release as 0.99.0, mainly because |
| 139 |
we have some efforts pending to integrate and complete |
| 140 |
research and coding work: |
| 141 |
|
| 142 |
* the JIT Compiler Generator is ready, but not fully integrated |
| 143 |
with the PyPy interpreter. As a result, the JIT does not give |
| 144 |
actual speed improvements yet, so we chose to leave it out of the |
| 145 |
0.99 release: the result doesn't meet yet the speed expectations |
| 146 |
that we set for ourselves - and which some blogs and people |
| 147 |
have chosen as the main criterium for looking at PyPy. |
| 148 |
|
| 149 |
* the extension enabling runtime changes of the Python grammar is not |
| 150 |
yet integrated. This will be used to provide Aspect-Oriented |
| 151 |
Programming extensions and Design by Contract facilities in PyPy. |
| 152 |
|
| 153 |
* the Logic object space, which provides Logic Variables in PyPy, |
| 154 |
needs to undergo a bit more testing. A constraint problem solver |
| 155 |
extension module is ready, and needs to be integrated with the codebase. |
| 156 |
|
| 157 |
PyPy 0.99 is the start for getting to 1.0 end of March 2007, |
| 158 |
which we intend to become a base for a longer (and more relaxed :) |
| 159 |
time to come. |
| 160 |
|
| 161 |
|
| 162 |
|
| 163 |
Funding partners and organizations |
| 164 |
===================================================== |
| 165 |
|
| 166 |
PyPy development and activities happen as an open source project |
| 167 |
and with the support of a consortium partially funded by a 28 months |
| 168 |
European Union IST research grant. The full partners of that |
| 169 |
consortium are: |
| 170 |
|
| 171 |
Heinrich-Heine University (Germany), Open End (Sweden) |
| 172 |
merlinux GmbH (Germany), tismerysoft GmbH (Germany) |
| 173 |
Logilab Paris (France), DFKI GmbH (Germany) |
| 174 |
ChangeMaker (Sweden), Impara (Germany) |
| 175 |
|