Keynote
summary
A small open-source Python build system called contingent (500-line prototype) demonstrates a concrete fix for stale cross-references by treating build nodes as function calls not files, tracking a runtime call graph and rebuilding only affected outputs. It uses a task decorator to observe dependencies, a memoization cache to avoid duplicate work, and can run as a daemon (inotify) to rebuild on save. The tool is used to build a blog and eliminates full rm -r rebuilds while keeping outputs correct.
AI-written summary · about
chapters (21)
- 0:00Introduction and setup
- 1:48Sphinx documentation tool
- 3:02Build systems history and Make
- 8:03Build systems in everyday tools
- 9:32Cross-reference problem in docs
- 12:20Solving the cross-reference issue
- 13:28Contingent build system design
- 15:40Detecting file changes
- 17:25Rebuilding in correct order
- 20:11Basic build system design
- 21:15Facade pattern in Contingent
- 24:47Explicit dependency innovation
- 27:18Two-phase build system problem
- 30:28Callback pattern removal
- 33:22Indirection and task decorator
- 36:58Graph of verbs vs files
- 38:22Memoization in Contingent
- 39:25Magic of rebuilding docs
- 40:29Learning patterns as alternatives
- 42:01Prototyping for better code
- 42:46Conclusion and thanks
