Down to the wire
summary
Compares concrete wiring techniques: using Backpack to swap Map implementations, type classes (with FlexibleInstances/UndecidableInstances) that let tests pick in‑memory DBs but can produce duplicate elements in Set — a real coherence bug — and a registry library that auto‑builds components from a list but only for Typeable values. Notes a GHC prototype that exposes explicit dictionaries (safe via roles/coercions) and proposes the tree calculus as a new runtime‑inspectable model that lets programs rewrite their dependency graph.
AI-written summary · about
chapters (12)
- 0:00Introduction by Martin Odersky
- 1:08Lambda abstraction and modularity
- 8:52Type classes origins and purpose
- 12:23Coherence and instance problems
- 20:36Type class resolution in other languages
- 23:23Limitations of one instance per type
- 27:16Alternatives to type classes
- 31:45Service pattern for applications
- 36:57Registry pattern and meta programming
- 37:17Beyond lambda calculus with tree calculus
- 43:17Tree calculus applications
- 44:21Q&A and closing remarks
