Hefty Algebras: Modular Elaboration of Higher-Order Algebraic Effects
summary
Presents Hefty algebras that elaborate higher‑order operations into primitive algebraic effects while preserving modularity so handlers can be swapped without recompiling. Uses data types à la carte and the free monad, composes per‑effect elaboration algebras in one step, and ships a simple Haskell embedding in the artifact. Encodes catch, sensor, local and push‑value patterns, proves semantic equivalences, and matches the expressiveness of prior handler systems.
AI-written summary · about
chapters (12)
- 0:00Intro
- 0:12Algebraic Effects An increasingly popular approach to modular programming with effects
- 0:41Algebraic Effects and Handlers Modularity properties
- 2:51Algebraic Effects and Handlers - Key Ideas Effects are interfaces; programs can freely use operations from different interfaces
- 4:27Algebraic Effects and Handlers - Key Ideas Effect handlers are interface implementations
- 6:40Algebraic Effects and Handlers - Key Ideas Program behavior can be changed by changing interface implementations
- 9:27Traditional Workaround Elaborate higher-order operations into more primitive effects and handlers
- 10:24Solution: Modular Elaboration of Higher-Order Effects
- 12:26Modular Elaboration of Higher-Order Effects Higher-order effects are interfaces
- 13:32Modular Elaboration of Higher-Order Effects Elaborations are implementations of heft interfaces
- 14:55Modular Elaboration of Higher-Order Effects Program behavior can be changed by changing interface implementations
- 16:36Hefty Algebras Modular Elaboration of Higher-Order Algebraic Effects
related talks
54mRevisiting the Evolution of Effects (Invited Talk)
22mAlgebraic Effects Meet Hoare Logic in Cubical Agda
15mLatent Effects for Reusable Language Components
15mEfficient Compilation of Algebraic Effect Handlers
15mEffect Handlers, Evidently
14mAdequacy for Algebraic Effects Revisited
22mType-Safe Code Generation With Algebraic Effects and Handlers
22mHigher-Order Model Checking of Effect-Handling Programs with Answer-Type Modification
