Astral's serc: Codex-built Rust CPython bytecode compiler, byte-identical and 2-4x faster

charliermarsh · x · 2026-11-10

Charlie Marsh (Astral) had Codex build serc, a CPython bytecode compiler written in Rust. It produces byte-for-byte identical output to CPython on the top 10,000 PyPI packages and is 2-4x faster (Airflow 4.1x, Django 3.8x, NumPy 3.3x, Transformers 2.9x). Started as an experiment, but Astral may ship it as an opt-in feature in uv.

Related event: Astral CEO builds Rust-based CPython bytecode compiler with Codex(2 posts)→

Original post →

More from coding & agent

coding & agent channel →