Abstract
Notions of computation can be modelled by monads. Algebraic effects offer a characterization of monads in terms of algebraic operations and equational axioms, where operations are basic programming features, such as reading or updating the state, and axioms specify observably equivalent expressions. However, many useful programming features depend on additional mechanisms such as delimited scopes or dynamically allocated resources. Such mechanisms can be supported via extensions to algebraic effects including scoped effects and parameterized algebraic theories. We present a fresh perspective on scoped effects by translation into a variation of parameterized algebraic theories. The translation enables a new approach to equational reasoning for scoped effects and gives rise to an alternative characterization of monads in terms of generators and equations involving both scoped and algebraic operations. We demonstrate the power of our fresh perspective by way of equational characterizations of several known models of scoped effects.
Original language | English |
---|---|
Title of host publication | Programming Languages and Systems |
Subtitle of host publication | 33rd European Symposium on Programming, ESOP 2024, Held as Part of the European Joint Conferences on Theory and Practice of Software, ETAPS 2024, Luxembourg City, Luxembourg, April 6–11, 2024, Proceedings, Part I |
Editors | Stephanie Weirich |
Publisher | Springer |
Pages | 3-21 |
Number of pages | 19 |
Edition | 1 |
ISBN (Electronic) | 9783031572623 |
ISBN (Print) | 9783031572616 |
DOIs | |
Publication status | Published - 5 Apr 2024 |
Event | ESOP 2024: 33rd European Symposium on Programming - Luxembourg City, Luxembourg Duration: 8 Apr 2024 → 11 Apr 2024 https://etaps.org/2024/conferences/esop/ |
Publication series
Name | Lecture Notes in Computer Science |
---|---|
Publisher | Springer |
Volume | 14576 |
ISSN (Print) | 0302-9743 |
ISSN (Electronic) | 1611-3349 |
Conference
Conference | ESOP 2024 |
---|---|
Abbreviated title | ESOP2024 |
Country/Territory | Luxembourg |
City | Luxembourg City |
Period | 8/04/24 → 11/04/24 |
Internet address |
Bibliographical note
Acknowledgments:We are grateful to many colleagues for helpful discussions and to the anonymous reviewers for their helpful comments and suggestions. This work was supported by the UKRI Future Leaders Fellowship “Effect Handler Oriented Programming” (reference number MR/T043830/1), ERC Project BLAST, and AFOSR Award No. FA9550-21-1-003.
Keywords
- algebraic effects
- scoped effects
- monads
- category theory
- algebraic theories