Projects per year
Abstract
We present Continuation Passing Style (CPS) translations for Plotkin and Pretnar’s effect handlers with Hillerström and Lindley’s row-typed fine-grain call-by-value calculus of effect handlers as the source language. CPS translations of handlers are interesting theoretically, to explain the semantics of handlers, and also offer a practical implementation technique that does not require special support in the target language’s runtime. We begin with a first-order CPS translation into untyped lambda calculus which manages a stack of continuations and handlers as a curried sequence of arguments. We then refine the initial CPS translation first by uncurrying it to yield a properly tail-recursive translation and second by making it higher-order in order to contract administrative redexes at translation time. We prove that the higher-order CPS translation simulates effect handler reduction. We have implemented the higher-order CPS translation as a JavaScript backend for the Links programming language.
Original language | English |
---|---|
Title of host publication | The Second International Conference on Formal Structures for Computation and Deduction (FSCD 2017) |
Editors | Dale Miller |
Publisher | Schloss Dagstuhl - Leibniz-Zentrum für Informatik |
Pages | 18:1-18:19 |
Number of pages | 19 |
ISBN (Electronic) | 978-3-95977-047-7 |
DOIs | |
Publication status | Published - 9 Sep 2017 |
Event | Second International Conference on Formal Structures for Computation and Deduction - Oxford, United Kingdom Duration: 3 Sep 2017 → 9 Sep 2017 https://www.cs.ox.ac.uk/conferences/fscd2017/ |
Publication series
Name | Leibniz International Proceedings in Informatics (LIPIcs) |
---|---|
Publisher | Schloss Dagstuhl--Leibniz-Zentrum fuer Informatik |
Volume | 84 |
ISSN (Electronic) | 1868-8969 |
Conference
Conference | Second International Conference on Formal Structures for Computation and Deduction |
---|---|
Abbreviated title | FSCD 2017 |
Country/Territory | United Kingdom |
City | Oxford |
Period | 3/09/17 → 9/09/17 |
Internet address |
Fingerprint
Dive into the research topics of 'Continuation Passing Style for Effect Handlers'. Together they form a unique fingerprint.Projects
- 1 Finished
-
From Data Types to Session Types - A Basis for Concurrency and Distribution
20/05/13 → 19/11/20
Project: Research
Profiles
-
Sam Lindley
- School of Informatics - Reader in Programming Language Design and Implementation
- Laboratory for Foundations of Computer Science
Person: Academic: Research Active