ACM SIGPLAN Notices · 2009 · 11 citations · 26 references
ComputingComputer ScienceCompilersProgramming LanguagesSystems ProgrammingAbstract Syntax TreesControl-flow AnalysisData TypesType CheckingType SystemsEffect SystemsPolymorphic Type SystemsPolymorphic TypesPolymorphism StudiesType PolymorphismType-level Programming
We describe the implementation of first-class polymorphic delimited continuations in the programming language Scala. We use Scala's pluggable typing architecture to implement a simple type and effect system, which discriminates expressions with control effects from those without and accurately tracks answer type modification incurred by control effects. To tackle the problem of implementing first-class continuations under the adverse conditions brought upon by the Java VM, we employ a selective CPS transform, which is driven entirely by effect-annotated types and leaves pure code in direct style. Benchmarks indicate that this high-level approach performs competitively.
26
Conal Elliott, Paul Hudak · 1997 · 618 citations
The essence of compiling with continuations
Cormac Flanagan, Amr Sabry, Bruce F. Duba et al. · 1993 · 533 citations
The reflexive CHAM and the join-calculus
Cédric Fournet, Georges Gonthier · 1996 · 453 citations · Full text
Doug Lea · 2000 · 452 citations
Olivier Danvy, Andrzej Filinski · 1990 · 403 citations · Full text