Skip to content

wangyu190810/RustPython

 
 

Repository files navigation

RustPython

A Python interpreter written in Rust

Installation

virtualenv venv --python=python3
source venv/bin/activate
pip install bytecode

Run

Given a python file test.py

python compile_code.py test.py > test.bytecode

cd RustPython
cargo run ../test.bytecode 

TODOs

  • Native types => Partial
  • Control flow => if(v)
  • assert => OK
  • Structural types (list, tuple, object)
  • Strings
  • Function calls => Blocked by bytecode serializer
  • Modules import
  • Generators

Goals

  • Support all builtin functions
  • Runs the pybenchmark benchmark test
  • Run famous/popular python modules (which?)
  • Compatible with CPython 2.7

About

A Python interpreter written in Rust

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Rust 84.4%
  • Python 10.8%
  • Shell 4.5%
  • Batchfile 0.3%