RPython
tags :
Programming Language #
The PyPy interpreter itself is written in a restricted subset of Python called RPython (Restricted Python). RPython puts some constraints on the Python language such that a variable’s type can be inferred at compile time.[8]
The PyPy project has developed a toolchain that analyzes RPython code and translates it into a form of bytecode, which can be lowered into C.
RPython just like Python is written in C. Wikipedia
Here’s how PyPy is produced: #
The source code is written in RPython.
The RPython translation toolchain is applied to the code, which basically makes the code more efficient. It also compiles the code down into machine code, which is why Mac, Windows, and Linux users have to download different versions.
A binary executable is produced. This is the Python interpreter that you used to run your small script.