Python Rewritten

pyre is a Python implementation with a PyPy-style meta-tracing JIT, built in Rust on top of MaJIT. The project aims to keep the original architecture recognizable while using a modern Rust toolchain and a no-GIL runtime.

Run pyre in your browser

This runs the WASM build of pyre directly in the page. It is meant for quick experiments and basic examples.

Loading WebAssembly module...
Source
Output
Initializing pyre...

Project goals

pyre is not trying to invent a different kind of Python runtime. The goal is narrower and more practical: take the architecture that made PyPy fast, port it to Rust, and make it easier to build on.

  • Preserve PyPy's meta-tracing design and overall structure.
  • Use Rust for memory safety, tooling, and maintainability.
  • Keep MaJIT reusable as a general tracing JIT framework.
  • Provide a no-GIL runtime foundation for future work.

Repository

The source lives in a single repository. It contains the pyre runtime, the MaJIT tracing JIT framework, documentation, and release metadata in one place.

Install

Use whichever path fits your setup. The project ships through Homebrew, Cargo, and GitHub releases.

Homebrew

Install `pyre` from the tap and run the `pyre` binary directly.

brew install youknowone/tap/pyrex

Cargo

Install the CLI crate from crates.io.

cargo install pyrex

Binary releases

Download a prebuilt binary from the latest GitHub release.

Open releases