ACM Transactions on Programming Languages and Systems · 2009 · 118 citations · 30 references
ComputingComputer ScienceNatural Language ProcessingProgramming LanguagesSyntaxControl-flow AnalysisIntermediate RepresentationAbstract SemanticsAbstractionOperational SemanticsStructural Operational Semantics
This article advocates the revival of coroutines as a convenient general control abstraction. After proposing a new classification of coroutines, we introduce the concept of full asymmetric coroutines and provide a precise definition for it through an operational semantics. We then demonstrate that full coroutines have an expressive power equivalent to one-shot continuations and one-shot delimited continuations. We also show that full asymmetric coroutines and one-shot delimited continuations have many similarities, and therefore present comparable benefits. Nevertheless, coroutines are easier implemented and understood, especially in the realm of procedural languages.
30
Barbara Liskov, Alan Snyder, Russell R. Atkinson et al. · Communications of the ACM · 1977 · 772 citations · Full text
Design of a separable transition-diagram compiler
Melvin E. Conway · Communications of the ACM · 1963 · 441 citations · Full text
Revised5 Report on the Algorithmic Language Scheme
Hal Abelson, R. Kent Dybvig, Christopher T. Haynes et al. · LISP and Symbolic Computation · 1998 · 414 citations