« Back to Search  |  Reader Mode  |  Switch to Full Retro Site View Links: Stay in Reader  |  Retro Mode: ON  |  Original »
GitHub · Extracted in 1546 ms

GitHub - progval/pythonvm-rust: An incomplete stackless interpreter of Python bytecode, written in Rust.

Source: https://github.com/ProgVal/pythonvm-rust

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

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

  • CPython 3.6 (used as a parser and bytecode compiler).
  • Rust
  • Cargo

Try it

  1. git clone https://github.com/progval/pythonvm-rust.git
  2. cd pythonvm-rust
  3. python3 -m compileall -b pythonlib examples
  4. 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