ACM SIGPLAN Notices · 2013 · 22 citations · 25 references
ComputingComputer ScienceAlgebraCompilersProgramming LanguagesAbstract InterpretationControl-flow AnalysisData-flow AnalysisDomain-specific LanguagesType SystemsAbstract SemanticsAbstraction MechanismsOperational SemanticsRuntime SemanticsStructural Operational Semantics
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.
25
Monad transformers and modular interpreters
Sheng Liang, Paul Hudak, Mark P. Jones · 1995 · 504 citations · Full text
Olivier Danvy, Andrzej Filinski · 1990 · 403 citations · Full text
The theory and practice of first-class prompts
Matthias Felleisen · 1988 · 291 citations
Wouter Swierstra · Journal of Functional Programming · 2008 · 282 citations · Full text
Algebraic Operations and Generic Effects
Gordon Plotkin, John Power · Applied Categorical Structures · 2003 · 257 citations