[2407.11816] Modal Effect Types
Abstract:Effect handlers are a powerful abstraction for defining, customising, and composing computational effects. Statically ensuring that all effect operations are handled requires some form of effect system, but using a traditional effect system would require adding extensive effect annotations to the millions of lines of existing code in these languages. Recent proposals seek to address this problem by removing the need for explicit effect polymorphism. However, they typically rely on fragile syntactic mechanisms or on introducing a separate notion of second-class function. We introduce a novel semantic approach based on modal effect types.
View PDF HTML (experimental) Abstract:Effect handlers are a powerful abstraction for defining, customising, and composing computational effects. Statically ensuring that all effect operations are handled requires some form of effect system, but using a traditional effect system would require adding extensive effect annotations to the millions of lines of existing code in these languages. Recent proposals seek to address this problem by removing the need for explicit effect polymorphism. However, they typically rely on fragile syntactic mechanisms or on introducing a separate notion of…
saved by
related reading
- [2203.07814] Competition-Level Code Generation with AlphaCodearxiv.org
- 370.pdfeprint.iacr.org
- [2606.04071] Covert Influence Between Language Modelsarxiv.org
- Algebraic Effects for the Rest of Us — overreactedoverreacted.io
- Mode-Conditioning Unlocks Superior Test-Time Scalingarxiv.org
- Rambles around computer sciencehumprog.org
- di.ku.dk/english/research/phd/phd-theses/2025/dissertation_Robert.pdfdi.ku.dk
- Let's Think Dot by Dot: Hidden Computation in Transformer Language Modelsarxiv.org
- How Causal Abstraction Underpins Computational Explanationarxiv.org
- Semantic Domain: The Geometry of Interaction, as an OCaml programsemantic-domain.blogspot.com
- Effect system - Wikipediaen.wikipedia.org
- [2604.07242] Weaves, Wires, and Morphisms: Formalizing and Implementing the Algebra of Deep Learningarxiv.org