~/talk

What they don't tell you about building a JIT compiler for CPython

Talkat PyCon US 2025 · 2025-05-16..05-18· [python]
links:none on file
slides:none on file

An account of building a JIT for CPython that gives concrete tradeoffs: the project uses specialized bytecode and automatic microops generation, emits machine code via copy and patch, and manages executable pages with mmap / VirtualProtect. Measured gains before the JIT already show ~25% faster in 3.11 vs 3.10, ~8% for 3.14, ~50% aggregate in four years and many benchmarks >100% faster. JIT is experimental, shipping disabled in 3.14 binaries and opt‑in via a JIT environment flag.

AI-written summary · about

  1. 0:00Introduction
  2. 1:25Brandts background
  3. 1:44Faster CPython
  4. 2:29Python 314
  5. 3:26Duck simulator
  6. 9:25Copy and patch
  7. 10:32Region selection
  8. 11:50Methodjit
  9. 18:03Metatracing
  10. 22:02Debugging Profiling
  11. 25:00Native debuggers
~/search
type to search 6,249 conferences, 138,987 speakers and 185,172 talks
~/help
cmdctrl k
search every conference, speaker and series
/
focus the filter search
h
home
c
conferences
s
speakers
e
series
t
light / dark — the status bar button does the same
?
this help
esc
close this, then clear every filter — or just the search, while you are typing in it

Ignored while you are typing. Pages without a filter rail have no search to focus.