2003
DOI: 10.1016/s0304-3975(02)00733-8
|View full text |Cite
|
Sign up to set email alerts
|

A first-order one-pass CPS transformation

Abstract: We present a new transformation of-terms into continuation-passing style (CPS). This transformation operates in one pass and is both compositional and ÿrst-order. Previous CPS transformations only enjoyed two out of the three properties of being ÿrst-order, one-pass, and compositional, but the new transformation enjoys all three properties. It is proved correct directly by structural induction over source terms instead of indirectly with a colon translation, as in Plotkin's original proof. Similarly, it makes … Show more

Help me understand this report

Search citation statements

Order By: Relevance

Paper Sections

Select...
3
1
1

Citation Types

0
21
0

Year Published

2013
2013
2019
2019

Publication Types

Select...
5
2

Relationship

1
6

Authors

Journals

citations
Cited by 25 publications
(21 citation statements)
references
References 35 publications
0
21
0
Order By: Relevance
“…Delimited Continuations: A Simpler Essence. Lantern relies on delimited continuations Filinski 1990, 1992;Danvy and Nielsen 2003], as implemented in Scala [Rompf et al 2009]. In parallel to our work, which first appeared as tech report on arXiv [Wang et al 2018b], Elliott [2018] proposed a generalized view of AD based on the paradigm of "compiling to categories" [Elliott 2017].…”
Section: Related Workmentioning
confidence: 96%
“…Delimited Continuations: A Simpler Essence. Lantern relies on delimited continuations Filinski 1990, 1992;Danvy and Nielsen 2003], as implemented in Scala [Rompf et al 2009]. In parallel to our work, which first appeared as tech report on arXiv [Wang et al 2018b], Elliott [2018] proposed a generalized view of AD based on the paradigm of "compiling to categories" [Elliott 2017].…”
Section: Related Workmentioning
confidence: 96%
“…The complete proof appears in the full version of this article [13]. It is more direct than Plotkin's [30] since we do not need a colon translation.…”
Section: Theorem 1 (Simulation) a Term E Reduces To A Value T If Andmentioning
confidence: 99%
“…A noncompositional transformation requires well-founded induction rather than ordinary structural induction [40]. Fortunately, Danvy and Nielsen have recently discovered a one-pass CPS transformation that is both first-order and compositional [14,30].…”
Section: Cps Transformation Of Termsmentioning
confidence: 99%
“…In this article, we build on Danvy and Nielsen's new one-pass CPS transformation [14,30] and we present a new and simpler CPS transformation of control-flow information that does not construct any intermediate result and thus is more efficient to use. It is also simpler to prove correct.…”
Section: Cps Transformation Of Flow Informationmentioning
confidence: 99%
See 1 more Smart Citation