Talk: The CPython JIT (Chipy 2024)
Published July 11, 2024
On July 11, 2024, I had the pleasure of delivering a talk, The CPython Jit, at The Chicago Python Meetup Group . All of the slides, supporting details, links, repos, and live demos are available here.
Slides
Below are the slides presented along with the talk:
Resources
For more background on JITs and copy-and-patch specifically, see:
- PEP 744 - Jit Compilation: an informational PEP on the thinking behind and basic approach to the copy-and-patch technique.
- The whitepaper: Copy-and-patch compilation: a fast compilation algorithm for high-level languages and bytecode
- Haoran Xu's blogpost: Building a baseline JIT for Lua automatically
- The video of Brandt's Presentation at this year's CPython Core Sprint in Brno. (A similar talk appeared at PyConUS 2024 and will be linked here when available).
- The internals of the pull request itself. While it's been almost four months since it's been merged, and the JIT has evolved quite a bit since then, I'd recommend that PR as a starting place. Things are essentially the same, but somewhat more complex now. Starting from simpler days is probably best.
- My recent blog post on building the CPython JIT.