Structured asynchrony with algebraic effects
The DOI matches its Crossref record; 5 of the 5 references it cites were found in a registry or an index.
Abstract
Algebraic effect handlers generalize many control-flow abstractions that are implemented specially in most languages, like exception handling, iterators, or backtracking. In this article, we show how we can implement full support for asynchronous programming as a library using just algebraic effect handlers. The consistent type driven approach also leads naturally to powerful abstractions like block-scoped interleaving, cancellation, and timeout's that are lacking in other major asynchronous frameworks. We also introduce the concept of ambient state to reason about state that is local to the current strand of asynchronous execution.
Overview
The claims and statistics of this paper haven’t been checked yet.
Free: it reads the open-access text and checks the first 5 claims that cite a source we can check. Create a free account to check every claim.
Integrity signals
Registry
Cites
Statistics
Verification
Claims the paper makes
The claims and statistics of this paper haven’t been checked yet.
Free: it reads the open-access text and checks the first 5 claims that cite a source we can check. Create a free account to check every claim.
Self-check
Percentages, sums and reported differences re-computed from the paper’s own numbers.
The self-check needs the paper’s full text.
Citations
Cites
Algebraic Operations and Generic Effects
Plotkin, G., & Power, J. (2003) · Applied Categorical Structures · doi:10.1023/a:1023064908962 · Cited by 250 · cited 2×
“As described originally [37, 39], the signature of the effect operations forms a free algebra which gives rise to a free monad [2].”
BackgroundPlotkin, G., & Pretnar, M. (2009) · Lecture Notes in Computer Science · doi:10.1007/978-3-642-00590-9_7 · Cited by 225
Koka: Programming with Row Polymorphic Effect Types
Leijen, D. (2014) · Electronic Proceedings in Theoretical Computer Science · doi:10.4204/eptcs.153.8 · Cited by 111 · cited 3×
“We extensively use rank-2 polymorphic types [23, 24] to safely encapsulate local mutable state inside effect handlers [21, 25].”
MethodSelf-citationLiberating effects with rows and handlers
Hillerström, D., & Lindley, S. (2016) · Proceedings of the 1st International Workshop on Type-Driven Development · doi:10.1145/2976022.2976033 · Cited by 68
HMF: simple type inference for first-class polymorphism
Leijen, D. (2008) · Proceedings of the 13th ACM SIGPLAN international conference on Functional programming · doi:10.1145/1411204.1411245 · Cited by 44
Self-citation
Cited by
Binders by day, labels by night: effect instances via lexically scoped handlers
Biernacki, D., Piróg, M., Polesiuk, P., & Sieczkowski, F. (2020) · Proceedings of the ACM on Programming Languages · doi:10.1145/3371116 · Cited by 46
“It is a first such calculus in “direct stylež (that is, similar to the core calculi of Koka [Leijen 2017c] and Links [Hillerström and Lindley 2016]), as opposed to the previous “handler-passingž approach [Brachthäuser et al. 2018; Zhang and Myers 2019].”
BackgroundResultHandle with care: relational interpretation of algebraic effects and handlers
Biernacki, D., Piróg, M., Polesiuk, P., & Sieczkowski, F. (2018) · Proceedings of the ACM on Programming Languages · doi:10.1145/3158096 · Cited by 45
Perceus: garbage free reference counting with reuse
Reinking, A., Xie, N., de Moura, L., & Leijen, D. (2021) · Proceedings of the 42nd ACM SIGPLAN International Conference on Programming Language Design and Implementation · doi:10.1145/3453483.3454032 · Cited by 32
Self-citationFirst class dynamic effect handlers: or, polymorphic heaps with dynamic effect handlers
Leijen, D. (2018) · Proceedings of the 3rd ACM SIGPLAN International Workshop on Type-Driven Development · doi:10.1145/3240719.3241789 · Cited by 3
“(without needing to extend the compiler or language) [7, 10, 12, 19, 37].”
BackgroundSelf-citation
Metadata
- Authors
- Leijen, D.
- Venue
- Proceedings of the 2nd ACM SIGPLAN International Workshop on Type-Driven Development
- Publisher
- ACM
- Published
- 2017-09-03
- Pages
- 16-29
- OpenAlex
- W2737306518
- Cited by
- 26
- References
- 5
- FWCI
- 2.16
- Type
- conference paper
- Language
- en
- Open access
- closed
About these checks
Registry, retraction, Cites and statistics results are computed, not judged, with one exception: a printed reference that no index lists is read once by a model before it counts as a citation error. Claims are extracted by a model and kept only when their quote appears verbatim in the text; each cited source is then checked, with a model’s help, for whether it says what the claim relies on. Those verdicts can be wrong — read the claim’s quote and the cited source before relying on one.
Statistics and arithmetic are recomputed, not judged.
Confidence bands are shown only for fields calibrated on our annotated test set. None is calibrated yet, so no band is shown.
What counts as a claim ›How we measure confidence ›How we check this ›
Are you an author, or do you see a problem with this page? Request a review
How to cite
Cite CoChat for the checks on this page, and the paper for its own findings.
- This page
- CoChat. (2026). Citation check: Structured asynchrony with algebraic effects. https://app.cochat.ai/papers/10.1145/3122975.3122977
- The paper
- Leijen, D. (2017). Structured asynchrony with algebraic effects. Proceedings of the 2nd ACM SIGPLAN International Workshop on Type-Driven Development. https://doi.org/10.1145/3122975.3122977
Data sources
Bibliographic data: Semantic Scholar, OpenAlex, Crossref.
Contains information from the Semantic Scholar Academic Graph Datasets, made available under the ODC Attribution License (ODC-BY 1.0).
Semantic Scholar’s data is described in: Kinney, R., et al. (2023). The Semantic Scholar Open Data Platform. arXiv:2301.10140.