Python and Johnny Cash
summary
Claims quick C‑Python hacks: AST-literals, resurrecting the print statement, lambda‑fusion. Demo builds an LD audit shim (≈10 lines of C glue) that embeds a Python resolver so the dynamic linker calls into Python, letting any program’s open/read be rewritten. Prototype makes cat and other tools git-aware open to read file contents at arbitrary commits and a zip-on-open loader; demos work live and take minutes to prototype.
AI-written summary · about
chapters (15)
- 0:00Python and Johnny Cash
- 1:53Python as subversive language
- 4:27Monkey-patching runtime
- 8:23Modifying stack frames
- 10:08Import hooks and dynamic loading
- 12:14Python vs C runtime
- 13:18Patching C with LD_PRELOAD
- 17:55LD_PRELOAD in Python impossible
- 20:30Embedding Python in LD_AUDIT
- 23:00Interposing syscalls with LD_AUDIT
- 26:56Git-aware file opener
- 32:36Intercepting zip file syscalls
- 33:59Live demo: git-aware reading
- 34:22Why subversive Python
- 35:24Q&A on permissiveness
related talks
25mPython as a Hackable Language for Interactive Data Science
49mYou Used Python for What?!
20m`from __past__ import print_statement`: a Dadaist Rejection of Python 2 vs 3
43mSunday Lightning Talks
36mHacking the Python AST
43m5 Years of Bad Ideas
28mHere be dragons: some elegant and ugly hacks in CPython
43m5 Years of Bad Ideas
