~/talk

Pipe-ifying Python: The how and why of interpreter hacking

Talkat PyCon AU 2025 · 2025-09-12..09-16· [python]
links:none on file
slides:none on file

Adds a concrete pipe operator to CPython by changing token and grammar files, rewriting the parse rule to be recursive, and lowering pipes into normal call nodes so translation and runtime need no new opcodes. The patch is small: +38 −2 lines (generated boilerplate larger). Edits touch grammar/python and Grammar/tokens, plus a short AST transform; unparse via ast.unparse produces plain Python without pipes for compatibility. Demo uses built CPython so examples actually run.

AI-written summary · about

  1. 0:00Motivation and goals
  2. 5:54Interpreter internals 101
  3. 8:25Tokenizing new operators
  4. 10:42Parsing the syntax tree
  5. 13:35Grammar implementation
  6. 18:34Implicit translation
  7. 22:05Live demonstration
  8. 23:04Ecosystem impact and outlook
~/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.