Logical Methods in Computer Science · 2013 · 141 citations · 16 references
ComputingComputer ScienceAlgebraProgramming LanguagesTheory Of ComputationData-flow AnalysisModel TheoryModeling With AlgebraType SystemsAbstract SemanticsAlgebraic SemanticsEquational LogicEquational ReasoningException HandlingMonadic EffectsMonadic SemanticsMonads
Algebraic effects are computational effects that can be represented by an equational theory whose operations produce the effects at hand. The free model of this theory induces the expected computational monad for the corresponding effect. Algebraic effects include exceptions, state, nondeterminism, interactive input/output, and time, and their combinations. Exception handling, however, has so far received no algebraic treatment. We present such a treatment, in which each handler yields a model of the theory for exceptions, and each handling construct yields the homomorphism induced by the universal property of the free model. We further generalise exception handlers to arbitrary algebraic effects. The resulting programming construct includes many previously unrelated examples from both theory and practice, including relabelling and restriction in Milner's CCS, timeout, rollback, and stream redirection.
16
Wojciech Penczek · Science of Computer Programming · 1990 · 4K citations
Notions of computation and monads
Eugenio Moggi · Information and Computation · 1991 · 1.7K citations
Algebraic laws for nondeterminism and concurrency
Matthew Hennessy, Robin Milner · Journal of the ACM · 1985 · 1.4K citations
The essence of compiling with continuations
Cormac Flanagan, Amr Sabry, Bruce F. Duba et al. · 1993 · 533 citations
Algebraic Operations and Generic Effects
Gordon Plotkin, John Power · Applied Categorical Structures · 2003 · 257 citations