Skip to content

adpena/molt

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2,954 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Molt

Molt compiles Python into standalone native binaries and WASM with a Rust-owned runtime, deterministic tooling, and explicit compatibility boundaries.

It is not trying to be a hidden CPython launcher. Molt targets a verified, production-minded subset that can keep expanding without giving up control over performance, packaging, or runtime semantics.

Why Molt

  • Standalone output: compiled binaries do not rely on a host Python installation.
  • Rust-first runtime: hot semantics and stdlib behavior are pushed down into runtime primitives and intrinsics instead of Python fallbacks.
  • Deterministic engineering: parity, performance, and security are treated as measurable gates, not vague goals.
  • Cross-target ambition: native and WASM are both first-class targets.

Project Contract

  • CPython >=3.12 parity target for supported Molt semantics.
  • Full product target: full CPython >=3.12 parity for the supported subset without hidden host fallback.
  • Compiled artifacts must work without a host Python installation.
  • By design, Molt does not support unrestricted exec/eval/compile, runtime monkeypatching, or unrestricted reflection in compiled binaries.

What Molt Supports Today

  • Native AOT compilation through the Rust backend.
  • Standalone binary workflows with no runtime dependency on local CPython.
  • A growing Rust-first stdlib lowering program with generated audit surfaces.
  • Differential testing against CPython as a core validation path.
  • WASM build workflows, with cross-target parity still incomplete and actively tracked.

5-Minute Quickstart

For the full setup and troubleshooting path, use docs/getting-started.md.

export PYTHONPATH=src
uv run --python 3.12 python3 -m molt.cli build examples/hello.py
./hello_molt

You can also compare behavior directly against CPython:

export PYTHONPATH=src
uv run --python 3.12 python3 -m molt.cli compare examples/hello.py

Install

Status

Current detailed state lives in docs/spec/STATUS.md. Forward priorities live in ROADMAP.md. The near-term execution slice lives in docs/ROADMAP_90_DAYS.md.

For compatibility and proof detail:

Development

About

High-performance Python subset compiler for native binaries and WASM.

Topics

Resources

License

Contributing

Security policy

Stars

Watchers

Forks

Packages

 
 
 

Contributors