A Python interpreter written in Rust
virtualenv venv --python=python3
source venv/bin/activate
pip install bytecode
Given a python file test.py
python compile_code.py test.py > test.bytecode
cd RustPython
cargo run ../test.bytecode
- Native types => Partial
- Control flow => if(v)
- assert => OK
- Structural types (list, tuple, object)
- Strings
- Function calls => Blocked by bytecode serializer
- Modules import
- Generators
- Support all builtin functions
- Runs the pybenchmark benchmark test
- Run famous/popular python modules (which?)
- Compatible with CPython 2.7
rustc 1.15.0-nightly (daf8c1dfc 2016-12-05)