Syntax Hijacking: Genius or Evil?
summary
Builds a small wizardry library (code on GitHub) that literally rebinds indexing and printing, implements fuzzy lookup using Levenshtein distance scaled into a 0–1 score, and adds class-level semantics for sorting (custom suit orders) and a terse graph DSL with arrows plus a context manager for mutable edits. Shows a text-generation “chunk” type with + combining and a smart-chunk optimizer that minimizes an error integral; demos mostly work but reveal edge cases (string add, determinism) and testing needs.
AI-written summary · about
chapters (9)
- 0:00Intro
- 3:27Duck Typing
- 6:14Sorting
- 9:00Books
- 13:48Examples
- 13:58Graph Wizard
- 16:36Text Wizard
- 21:13Error Message
- 24:02Conclusion
related talks
39mKeynotes 'So you want to be a wizard?'
30mThrough the lens of Haskell: exploring new ideas for library design
09mCollaborating with your computer using typed holes!
31mDon't Do This
24mLightning Talks
22mLearning Parseltongue: Wizardry in Python
28mHere be dragons: some elegant and ugly hacks in CPython
24m"A Confession of My Python Sins"
