~/talk

Dynamic Code Instrumentation with Hacked Interpreters

Talkat PyData Amsterdam 2018 · 2018-05-25..05-27· [python]
slides:none on file

Shows a working patched CPython that instruments every bytecode push by overriding the push macro, records when specific objects are touched, and emits JSON traces so one can infer where args and *kwargs actually flow. The hacked interpreter builds in ~30–45 minutes, runs examples with 60–100× slowdown, and can produce huge logs (about 4 GB for a 100‑line example*, ~3 MB for five lines). Enables taint tracking and call/arg provenance.

AI-written summary · about

  1. 0:00Introduction
  2. 1:05Need for interpreter hacking
  3. 3:35Star args and kwargs problem
  4. 9:54Why static analysis fails
  5. 17:17Dynamic analysis techniques
  6. 24:01Building hacked interpreter
  7. 30:26Practical applications and trade-offs
  8. 32:34Summary
~/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.