~/talk

How to Optimize your Python Program for Slowness

Talkat PyData Seattle 2025 · 2025-11-07..11-09· [python]
linkedin:carlk
slides:none on file

Short Python programs emulate Turing machines and also a stack of nested, dynamically bound loops to reach astronomic runtimes, including a Busy Beaver 5 (47,176,870 steps) emulator and constructions that produce 10 up-arrow up-arrow 15. Implementation details matter: gmpy2-style mutable big ints, a pure-Python emulator, a Rust extension that yields a Rust extension: 124× speedup and an assembly path with ~750× speedup, and a streaming visualizer that compresses rows so the whole pipeline actually runs and halts.

AI-written summary · about

  1. 0:00Optimizing Python for slowness
  2. 1:25Impossibly long programs
  3. 5:24Turing machines in Python
  4. 13:16Dynamically bound loops
  5. 21:49Faster Python techniques
  6. 28:56Visualizing Turing runs
  7. 30:20Q&A
~/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.