GitHub - progval/pythonvm-rust: An incomplete stackless interpreter of Python bytecode, written in Rust.
Repository navigation
pythonvm-rustPublic
About
An incomplete stackless interpreter of Python bytecode, written in Rust.
Topics
bytecode cpython interpreter python-virtual-machine pythonvm-rust rust stacklessResources
Readme GPL-3.0 license ActivityStars
83 starsWatchers
8 watchingForks
9 forks Report repositoryBranches
Tags
Go to Branches page Go to Tags page
Latest commit
History
71 Commits
View commit history for this file.
Folders and files
| Name | Name | Last commit message | Last commit date |
|---|---|---|---|
| examples | examples | ||
| functional_tests | functional_tests | ||
| pythonlib | pythonlib | ||
| src | src | ||
| tests | tests | ||
| .gitignore | .gitignore | ||
| .travis.yml | .travis.yml | ||
| Cargo.toml | Cargo.toml | ||
| LICENSE | LICENSE | ||
| README.md | README.md | ||
| run_functional_tests.py | run_functional_tests.py | ||
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
Try it
git clone https://github.com/progval/pythonvm-rust.gitcd pythonvm-rustpython3 -m compileall -b pythonlib examplescargo run pythonlib/ examples/helloworld.pyc
About
An incomplete stackless interpreter of Python bytecode, written in Rust.