~/talk

A walk with CPython

Talkat Swiss Python Summit 2023 · on Thursday, 2023-09-21· [python, compilers-and-language-design]
links:none on file
slides:none on file

Explains exactly what CPython does: source code goes through python -m tokenize into tokens, a PEG parser builds an AST, that becomes a control‑flow graph and a flattened list of bytecode opcodes (LOAD_FAST, CALL_FUNCTION, RETURN_VALUE) which the interpreter executes in a single loop. Shows how to inspect bytecode with python -m dis, describes computed goto dispatch and the PEP 659 specializing adaptive interpreter (≈25% speedup in 3.11), warmup/miss counters, frames and a no‑GIL roadmap.

AI-written summary · about

  1. 0:00Introduction to CPython
  2. 1:29What is CPython
  3. 2:31Talk overview and expectations
  4. 3:53Compiler steps in CPython
  5. 7:08Tokenization and parsing
  6. 9:18Control flow graph explained
  7. 10:22Disassembly and op codes
  8. 11:48Interpreter execution loop
  9. 14:22Understanding op codes
  10. 16:06Computed goto optimization
  11. 17:31Specializing adaptive interpreter
  12. 20:20Frames and memory management
  13. 22:38Program execution walkthrough
  14. 23:00Resources for deeper learning
  15. 24:51Tools to inspect CPython internals
  16. 26:35Python 3.11 performance highlights
  17. 27:58Future of Global Interpreter Lock
  18. 29:00CPython op codes vs JVM bytecode
  19. 30:04Hooking into CPython internals
  20. 31:07Q&A and closing
~/search
type to search 8,222 conferences, 162,397 speakers and 219,688 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
← →
on a talk: 5 seconds back / forward
0–9
on a talk: jump to 0%–90% of the recording
?
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.