astral-experiments/serc: An experimental CPython bytecode compiler in Rust

github.com2 min read

Serc is an experimental CPython bytecode compiler written in Rust that produces byte-for-byte identical output to CPython across multiple versions and optimization levels. It compiles significantly faster than CPython's compileall and supports target version selection, recursive directory compilation, and cache management. However, the author notes that Serc remains experimental and may emit incorrect bytecode in some cases. Open article →

More on this topic