Implementing First-Class Polymorphic Delimited Continuations by a Type-Directed Selective CPS-Transform
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.
WOS:000280546200033
WOS:000271211700034
2009
New York, NY, USA
317
328
REVIEWED
EPFL
| Event name | Event place | Event date |
Edinburgh, Scotland | August 31-September 02, 2009 | |