~/talk

Building a JIT compiler for CPython

Talkat PyCon US 2024 · 2024-05-15..05-23· [python]
links:none on file
slides:none on file

Prototype JIT for CPython uses copy-and-patch to splice precompiled machine-code templates into executable memory at build time, with generated micro-op translations and small runtime C glue. The pipeline compiles instruction bodies ahead-of-time, patches runtime operands, and removes guards so the experimental JIT in 3.13 overcomes the ~20% slowdown introduced by the micro-op interpreter and currently costs about +10% memory while remaining optional and broadly portable under Faster CPython with micro op traces.

AI-written summary · about

  1. 0:00JIT compiler project intro
  2. 1:07CPython performance background
  3. 3:57Micro-op traces optimization
  4. 10:39Why JIT now
  5. 12:20JIT design goals and constraints
  6. 15:51Copy-and-patch technique
  7. 23:59Implementation complexity and platforms
  8. 26:26Performance results and plans
  9. 28:33Build and try the JIT
~/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.