May 2018
Intermediate to advanced
380 pages
9h 37m
English
PyPy is an alternative implementation of Python. While normal Python is built using the C language (hence the alternative term: CPython), PyPy is built on the RPython (Restricted Python) language . RPython constrains the Python language; these constraints mean that PyPy can look at the RPython code, translate it into C code, and then compile it to machine code.
The main aspects of PyPy is the just-in-time (JIT) compiler. Specifically, it uses a tracing JIT, which monitors frequently executed loops and compiles them into native machine code. Since programs frequently spend much of their time in loops, compiling those loops to native code maximizes the speed at which they process data.
Using RPython, the JIT compiler receives ...