Repository navigation
pythonvm-rust
Public
About
An incomplete stackless interpreter of Python bytecode, written in Rust.
Topics
bytecode cpython interpreter python-virtual-machine pythonvm-rust rust stackless
Resources
Readme
GPL-3.0 license
Activity
Stars
83 stars
Watchers
8 watching
Forks
9 forks
Report repository
Branches
Tags
Go to Branches page Go to Tags page
Latest commit
History
71 Commits
View commit history for this file.
Folders and files
Repository files navigation
pythonvm-rust
A Python virtual machine, written in Rust.
Status
This project is inactive. Check out RustPython instead
Features
- prints strings to stdout
- basic exceptions
- for loops
- functions, positional arguments, keyword arguments,
*args, **kwargs
- useable as a library
- a fine-grained sandbox
Goals
- Compatible with CPython 3.6's bytecode, in order to take advantage of FAT Python
- Support CPython's implementation of the standard library
- No crash, even when messing with code objects
- Bytecode optimizations at runtime
- Less bounded by the GIL than CPython
Dependencies
- CPython 3.6 (used as a parser and bytecode compiler).
- Rust
- Cargo
Try it
git clone https://github.com/progval/pythonvm-rust.git
cd pythonvm-rust
python3 -m compileall -b pythonlib examples
cargo run pythonlib/ examples/helloworld.pyc
About
An incomplete stackless interpreter of Python bytecode, written in Rust.
Topics
bytecode cpython interpreter python-virtual-machine pythonvm-rust rust stackless
Resources
Readme
GPL-3.0 license
Activity
Stars
83 stars
Watchers
8 watching
Forks
9 forks
Report repository
Releases
Packages
Used by
Contributors
Languages