Handlers in action
The DOI matches its Crossref record; 2 of the 2 references it cites were found in a registry or an index.
Abstract
Plotkin and Pretnar's handlers for algebraic effects occupy a sweet spot in the design space of abstractions for effectful computation. By separating effect signatures from their implementation, algebraic effects provide a high degree of modularity, allowing programmers to express effectful programs independently of the concrete interpretation of their effects. A handler is an interpretation of the effects of an algebraic computation. The handler abstraction adapts well to multiple settings: pure or impure, strict or lazy, static types or dynamic types. This is a position paper whose main aim is to popularise the handler abstraction. We give a gentle introduction to its use, a collection of illustrative examples, and a straightforward operational semantics. We describe our Haskell implementation of handlers in detail, outline the ideas behind our OCaml, SML, and Racket implementations, and present experimental results comparing handlers with existing code.
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 6×
“ôp x underlying a direct-style application the generic effect of op [35].”
BackgroundInfluentialPlotkin, G., & Pretnar, M. (2009) · Lecture Notes in Computer Science · doi:10.1007/978-3-642-00590-9_7 · Cited by 225 · cited 4×
“Following related work on effect operations [19], effect handlers [36], and monadic reflection [11], which takes Levy’s call-by-push-value [24] as the underlying paradigm, we extend Levy’s calculus with effect operations and effect handlers.”
BackgroundMethodInfluential
Cited by
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
“Recently,effect handlers are proposed to program with effects [4, 14, 15].”
BackgroundType directed compilation of row-typed algebraic effects
Leijen, D. (2017) · Proceedings of the 44th ACM SIGPLAN Symposium on Principles of Programming Languages · doi:10.1145/3009837.3009872 · Cited by 98
Liberating 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
“Algebraic effects [26] and effect handlers [27] are a more modular alternative to monads for managing user-defined computational effects [6, 13, 15].”
BackgroundInfluentialSelf-citationHandle 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
“…into practical programming, in the form of dedicated languages [Bauer and Pretnar 2015; Leijen 2017b; Lindley et al. 2017], extensions of existing languages [Hillerström and Lindley 2016; Kammar et al. 2013], or libraries [Brady 2013b; Kiselyov and Sivaramakrishnan 2016; Schrijvers et al. 2014].”
Abstraction-safe effect handlers via tunneling
Zhang, Y., & Myers, A. C. (2019) · Proceedings of the ACM on Programming Languages · doi:10.1145/3290318 · Cited by 45
CONVENT, L., LINDLEY, S., MCBRIDE, C., & MCLAUGHLIN, C. (2020) · Journal of Functional Programming · doi:10.1017/s0956796820000039 · Cited by 39
“Kammar et al. (2013) provide a more in-depth discussion of the trade-offs between deep and shallow handlers.”
BackgroundMethodInfluentialSelf-citationGeneralized evidence passing for effect handlers: efficient compilation of effect handlers to C
Xie, N., & Leijen, D. (2021) · Proceedings of the ACM on Programming Languages · doi:10.1145/3473576 · Cited by 19
Resource-Dependent Algebraic Effects
Brady, E. (2015) · Lecture Notes in Computer Science · doi:10.1007/978-3-319-14675-1_2 · Cited by 18
Handling Polymorphic Algebraic Effects
Sekiyama, T., & Igarashi, A. (2019) · Lecture Notes in Computer Science · doi:10.1007/978-3-030-17184-1_13 · Cited by 9
“Another modularity that algebraic effects provide is flexible composition: multiple algebraic effects can be combined freely [13].”
BackgroundInfluentialEffect handlers in Haskell, evidently
Xie, N., & Leijen, D. (2020) · Proceedings of the 13th ACM SIGPLAN International Symposium on Haskell · doi:10.1145/3406088.3409022 · Cited by 8
“Kammar et al. [2013] describe the łHandlers in action (HIA)ž implementation of effect handlers.”
BackgroundMethodInfluentialFirst 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
“…re-sumed under the same handler, it behaves more like a case statement doing only one level of the fold . are sometimes called shallow handlers [12, 24]. resume would only restore the stack without the handler: The reduction rule for parameterized handlers is a straight-forward handler with a…”
Background
Metadata
- Authors
- Kammar, O., Lindley, S., & Oury, N.
- Venue
- Proceedings of the 18th ACM SIGPLAN international conference on Functional programming
- Publisher
- ACM
- Published
- 2013-09-25
- Pages
- 145-158
- OpenAlex
- W1971752790
- Cited by
- 129
- References
- 2
- FWCI
- 8.46
- 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
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.