| 1 |
========================================== |
| 2 |
PyPy 1.1: Compatibility & Consolidation |
| 3 |
========================================== |
| 4 |
|
| 5 |
Welcome to the PyPy 1.1 release - the first release after the end of EU |
| 6 |
funding. This release focuses on making PyPy's Python interpreter more |
| 7 |
compatible with CPython (currently CPython 2.5) and on making the |
| 8 |
interpreter more stable and bug-free. |
| 9 |
|
| 10 |
Download page: |
| 11 |
|
| 12 |
https://codespeak.net/pypy/dist/pypy/doc/download.html |
| 13 |
|
| 14 |
PyPy's Getting Started lives at: |
| 15 |
|
| 16 |
https://codespeak.net/pypy/dist/pypy/doc/getting-started.html |
| 17 |
|
| 18 |
Highlights of This Release |
| 19 |
========================== |
| 20 |
|
| 21 |
- More of CPython's standard library extension modules are supported, |
| 22 |
among them ctypes, sqlite3, csv, and many more. Most of these extension |
| 23 |
modules are fully supported under Windows as well. |
| 24 |
|
| 25 |
https://codespeak.net/pypy/dist/pypy/doc/cpython_differences.html |
| 26 |
https://morepypy.blogspot.com/2008/06/pypy-improvements.html |
| 27 |
|
| 28 |
- Through a large number of tweaks, performance has been improved by |
| 29 |
10%-50% since the 1.0 release. The Python interpreter is now between |
| 30 |
0.8-2x (and in some corner case 3-4x) slower than CPython. A large |
| 31 |
part of these speed-ups come from our new generational garbage |
| 32 |
collectors. |
| 33 |
|
| 34 |
https://codespeak.net/pypy/dist/pypy/doc/garbage_collection.html |
| 35 |
|
| 36 |
- Our Python interpreter now supports distutils as well as |
| 37 |
easy_install for pure-Python modules. |
| 38 |
|
| 39 |
- We have tested PyPy with a number of third-party libraries. PyPy can |
| 40 |
run now: Django, Pylons, BitTorrent, Twisted, SymPy, Pyglet, Nevow, |
| 41 |
Pinax: |
| 42 |
|
| 43 |
https://morepypy.blogspot.com/2008/08/pypy-runs-unmodified-django-10-beta.html |
| 44 |
https://morepypy.blogspot.com/2008/07/pypys-python-runs-pinax-django.html |
| 45 |
https://morepypy.blogspot.com/2008/06/running-nevow-on-top-of-pypy.html |
| 46 |
|
| 47 |
- A buildbot was set up to run the various tests that PyPy is using |
| 48 |
nightly on Windows and Linux machines: |
| 49 |
|
| 50 |
https://codespeak.net:8099/ |
| 51 |
|
| 52 |
- Sandboxing support: It is possible to translate the Python |
| 53 |
interpreter in a special way so that the result is fully sandboxed. |
| 54 |
|
| 55 |
https://codespeak.net/pypy/dist/pypy/doc/sandbox.html |
| 56 |
https://blog.sandbox.lt/en/WSGI%20and%20PyPy%20sandbox |
| 57 |
|
| 58 |
|
| 59 |
Other Changes |
| 60 |
============= |
| 61 |
|
| 62 |
- The ``clr`` module was greatly improved. This module is used to |
| 63 |
interface with .NET libraries when translating the Python |
| 64 |
interpreter to the CLI. |
| 65 |
|
| 66 |
https://codespeak.net/pypy/dist/pypy/doc/clr-module.html |
| 67 |
https://morepypy.blogspot.com/2008/01/pypynet-goes-windows-forms.html |
| 68 |
https://morepypy.blogspot.com/2008/01/improve-net-integration.html |
| 69 |
|
| 70 |
- Stackless improvements: PyPy's ``stackless`` module is now more |
| 71 |
complete. We added channel preferences which change details of the |
| 72 |
scheduling semantics. In addition, the pickling of tasklets has been |
| 73 |
improved to work in more cases. |
| 74 |
|
| 75 |
- Classic classes are enabled by default now. In addition, they have |
| 76 |
been greatly optimized and debugged: |
| 77 |
|
| 78 |
https://morepypy.blogspot.com/2007/12/faster-implementation-of-classic.html |
| 79 |
|
| 80 |
- PyPy's Python interpreter can be translated to Java bytecode now to |
| 81 |
produce a pypy-jvm. At the moment there is no integration with |
| 82 |
Java libraries yet, so this is not really useful. |
| 83 |
|
| 84 |
- We added cross-compilation machinery to our translation toolchain to |
| 85 |
make it possible to cross-compile our Python interpreter to Nokia's |
| 86 |
Maemo platform: |
| 87 |
|
| 88 |
https://codespeak.net/pypy/dist/pypy/doc/maemo.html |
| 89 |
|
| 90 |
- Some effort was spent to make the Python interpreter more |
| 91 |
memory-efficient. This includes the implementation of a mark-compact |
| 92 |
GC which uses less memory than other GCs during collection. |
| 93 |
Additionally there were various optimizations that make Python |
| 94 |
objects smaller, e.g. class instances are often only 50% of the size |
| 95 |
of CPython. |
| 96 |
|
| 97 |
https://morepypy.blogspot.com/2008/10/dsseldorf-sprint-report-days-1-3.html |
| 98 |
|
| 99 |
- The support for the trace hook in the Python interpreter was |
| 100 |
improved to be able to trace the execution of builtin functions and |
| 101 |
methods. With this, we implemented the ``_lsprof`` module, which is |
| 102 |
the core of the ``cProfile`` module. |
| 103 |
|
| 104 |
- A number of rarely used features of PyPy were removed since the previous |
| 105 |
release because they were unmaintained and/or buggy. Those are: The |
| 106 |
LLVM and the JS backends, the aspect-oriented programming features, |
| 107 |
the logic object space, the extension compiler and the first |
| 108 |
incarnation of the JIT generator. The new JIT generator is in active |
| 109 |
development, but not included in the release. |
| 110 |
|
| 111 |
https://codespeak.net/pipermail/pypy-dev/2009q2/005143.html |
| 112 |
https://morepypy.blogspot.com/2009/03/good-news-everyone.html |
| 113 |
https://morepypy.blogspot.com/2009/03/jit-bit-of-look-inside.html |
| 114 |
|
| 115 |
|
| 116 |
What is PyPy? |
| 117 |
============= |
| 118 |
|
| 119 |
Technically, PyPy is both a Python interpreter implementation and an |
| 120 |
advanced compiler, or more precisely a framework for implementing dynamic |
| 121 |
languages and generating virtual machines for them. |
| 122 |
|
| 123 |
The framework allows for alternative frontends and for alternative |
| 124 |
backends, currently C, Java and .NET. For our main target "C", we can |
| 125 |
"mix in" different garbage collectors and threading models, |
| 126 |
including micro-threads aka "Stackless". The inherent complexity that |
| 127 |
arises from this ambitious approach is mostly kept away from the Python |
| 128 |
interpreter implementation, our main frontend. |
| 129 |
|
| 130 |
Socially, PyPy is a collaborative effort of many individuals working |
| 131 |
together in a distributed and sprint-driven way since 2003. PyPy would |
| 132 |
not have gotten as far as it has without the coding, feedback and |
| 133 |
general support from numerous people. |
| 134 |
|
| 135 |
|
| 136 |
|
| 137 |
Have fun, |
| 138 |
|
| 139 |
the PyPy release team, [in alphabetical order] |
| 140 |
|
| 141 |
Amaury Forgeot d'Arc, Anders Hammerquist, Antonio Cuni, Armin Rigo, |
| 142 |
Carl Friedrich Bolz, Christian Tismer, Holger Krekel, |
| 143 |
Maciek Fijalkowski, Samuele Pedroni |
| 144 |
|
| 145 |
and many others: |
| 146 |
https://codespeak.net/pypy/dist/pypy/doc/contributor.html |