Debian Codegraph @

pypy/doc/release-1.0.0.rst

raw
1 ==========================================
2 PyPy 1.0: JIT compilers for free and more
3 ==========================================
4
5 Welcome to the PyPy 1.0 release - a milestone integrating the results
6 of four years of research, engineering, management and sprinting
7 efforts, concluding the 28 months phase of EU co-funding!
8
9 Although still not mature enough for general use, PyPy 1.0 materializes
10 for the first time the full extent of our original vision:
11
12 - A flexible Python interpreter, written in "RPython":
13
14 - Mostly unaware of threading, memory and lower-level target platform
15 aspects.
16 - Showcasing advanced interpreter features and prototypes.
17 - Passing core CPython regression tests, translatable to C, LLVM and .NET.
18
19 - An advanced framework to translate such interpreters and programs:
20
21 - That performs whole type-inference on RPython programs.
22 - Can weave in threading, memory and target platform aspects.
23 - Has low level (C, LLVM) and high level (CLI, Java, JavaScript) backends.
24
25 - A **Just-In-Time Compiler generator** able to **automatically**
26 enhance the low level versions of our Python interpreter, leading to
27 run-time machine code that runs algorithmic examples at speeds typical
28 of JITs!
29
30 Previous releases, particularly the 0.99.0 release from February,
31 already highlighted features of our Python implementation and the
32 abilities of our translation approach but the **new JIT generator**
33 clearly marks a major research result and gives weight to our vision
34 that one can generate efficient interpreter implementations, starting
35 from a description in a high level language.
36
37 We have prepared several entry points to help you get started:
38
39 * The main entry point for JIT documentation and status:
40
41 https://codespeak.net/pypy/dist/pypy/doc/jit.html
42
43 * The main documentation and getting-started PyPy entry point:
44
45 https://codespeak.net/pypy/dist/pypy/doc/index.html
46
47 * Our online "play1" demos showcasing various Python interpreters,
48 features (and a new way to program AJAX applications):
49
50 https://play1.codespeak.net/
51
52 * Our detailed and in-depth Reports about various aspects of the
53 project:
54
55 https://codespeak.net/pypy/dist/pypy/doc/index-report.html
56
57 In the next few months we are going to discuss the goals and form of
58 the next stage of development - now more than ever depending on your
59 feedback and contributions - and we hope you appreciate PyPy 1.0 as an
60 interesting basis for greater things to come, as much as we do
61 ourselves!
62
63 have fun,
64
65 the PyPy release team,
66 Samuele Pedroni, Armin Rigo, Holger Krekel, Michael Hudson,
67 Carl Friedrich Bolz, Antonio Cuni, Anders Chrigstroem, Guido Wesdorp
68 Maciej Fijalkowski, Alexandre Fayolle
69
70 and many others:
71 https://codespeak.net/pypy/dist/pypy/doc/contributor.html
72
73
74 What is PyPy?
75 ================================
76
77 Technically, PyPy is both a Python interpreter implementation and an
78 advanced compiler, or more precisely a framework for implementing dynamic
79 languages and generating virtual machines for them.
80
81 The framework allows for alternative frontends and for alternative
82 backends, currently C, LLVM and .NET. For our main target "C", we can
83 can "mix in" different garbage collectors and threading models,
84 including micro-threads aka "Stackless". The inherent complexity that
85 arises from this ambitious approach is mostly kept away from the Python
86 interpreter implementation, our main frontend.
87
88 PyPy is now also a Just-In-Time compiler generator. The translation
89 framework contains the now-integrated JIT generation technology. This
90 depends only on a few hints added to the interpreter source and should
91 be able to cope with the changes to the interpreter and be generally
92 applicable to other interpreters written using the framework.
93
94 Socially, PyPy is a collaborative effort of many individuals working
95 together in a distributed and sprint-driven way since 2003. PyPy would
96 not have gotten as far as it has without the coding, feedback and
97 general support from numerous people.
98
99 Formally, many of the current developers were involved in executing an
100 EU contract with the goal of exploring and researching new approaches
101 to language and compiler development and software engineering. This
102 contract's duration is about to end this month (March 2007) and we are
103 working and preparing the according final review which is scheduled
104 for May 2007.
105
106 For the future, we are in the process of setting up structures to help
107 maintain conceptual integrity of the project and to discuss and deal
108 with funding opportunities related to further PyPy sprinting and
109 developments. See here for results of the discussion so far:
110
111 https://codespeak.net/pipermail/pypy-dev/2007q1/003577.html
112
113
114 1.0.0 Feature highlights
115 ==============================
116
117
118 Here is a summary list of key features included in PyPy 1.0:
119
120 - The Just-In-Time compiler generator, now capable of generating the
121 first JIT compiler versions of our Python interpreter:
122
123 https://codespeak.net/pypy/dist/pypy/doc/jit.html
124
125 - More Python interpreter optimizations (a CALL_METHOD bytecode, a method
126 cache, rope-based strings), now running benchmarks at around half of
127 CPython's speed (without the JIT):
128
129 https://codespeak.net/pypy/dist/pypy/doc/interpreter-optimizations.html
130
131 - The Python interpreter can be translated to .NET and enables
132 interactions with the CLR libraries:
133
134 https://codespeak.net/pypy/dist/pypy/doc/cli-backend.html
135 https://codespeak.net/pypy/dist/pypy/doc/clr-module.html
136
137 - Aspect Oriented Programming facilities (based on mutating the Abstract
138 Syntax Tree):
139
140 https://codespeak.net/pypy/dist/pypy/doc/aspect_oriented_programming.html
141 https://codespeak.net/pypy/extradoc/eu-report/D10.1_Aspect_Oriented_Programming_in_PyPy-2007-03-22.pdf
142
143 - The JavaScript backend has evolved to a point where it can be used to
144 write AJAX web applications with it. This is still an experimental
145 technique, though. For demo applications which also showcase various
146 generated Python and PROLOG interpreters, see:
147
148 https://play1.codespeak.net/
149
150 - Proxying object spaces and features of our Python interpreter:
151
152 - Tainting: a 270-line proxy object space tracking and boxing
153 sensitive information within an application.
154
155 - Transparent proxies: allow the customization of both application and
156 builtin objects from application level code. Now featuring an
157 initial support module (tputil.py) for working with transparent
158 proxies.
159
160 For a detailed description and discussion of high level backends and
161 Python interpreter features, please see our extensive "D12" report:
162
163 https://codespeak.net/pypy/extradoc/eu-report/D12.1_H-L-Backends_and_Feature_Prototypes-2007-03-22.pdf
164
165
166 Funding partners and organizations
167 =====================================================
168
169 PyPy development and activities happen as an open source project and
170 with the support of a consortium partially funded by a 28 month
171 European Union IST research grant for the period from December 2004 to
172 March 2007. The full partners of that consortium are:
173
174 Heinrich-Heine University (Germany), Open End (Sweden)
175 merlinux GmbH (Germany), tismerysoft GmbH (Germany)
176 Logilab Paris (France), DFKI GmbH (Germany)
177 ChangeMaker (Sweden), Impara (Germany)