[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
- Effect system - Wikipediaen.wikipedia.org
- Algebraic Effects for the Rest of Us — overreactedoverreacted.io
- TypeScript Structured Concurrencythecandidstartup.org
- You Might Not Need an Effect – Reactreact.dev
- Modal: High-performance AI infrastructuremodal.com
- Hazel, a live functional programming environment featuring typed holes.hazel.org
- Jane Street Blogblog.janestreet.com
- Side effect (computer science)en.wikipedia.org
- Low Latency and Model Training at Modalrhea24.github.io
- Jane Street Blog - Formal methods and the future of programmingblog.janestreet.com
- The registers of Rustwithout.boats
- Many modes: a GATs pattern · baby stepssmallcultfollowing.com