On one-pass CPS transformations
- 1 May 2007
- journal article
- research article
- Published by Cambridge University Press (CUP) in Journal of Functional Programming
- Vol. 17 (6) , 793-812
Abstract
We bridge two distinct approaches to one-pass CPS transformations, i.e, CPS transformations that reduce administrative redexes at transformation time instead of in a post-processing phase. One approach is compositional and higher-order, and is independently due to Appel, Danvy and Filinski, and Wand, building on Plotkin's seminal work. The other is non-compositional and based on a reduction semantics for the lambda-calculus, and is due to Sabry and Felleisen. To relate the two approaches, we use three tools: Reynolds's defunctionalization and its left inverse, refunctionalization; a special case of fold–unfold fusion due to Ohori and Sasano, fixed-point promotion; and an implementation technique for reduction semantics due to Danvy and Nielsen, refocusing. This work is directly applicable to transforming programs into monadic normal form.Keywords
This publication has 37 references indexed in Scilit:
- A static simulation of dynamic delimited controlHigher-Order and Symbolic Computation, 2007
- Refunctionalization at WorkBRICS Report Series, 2007
- Secure Information Flow via Linear ContinuationsHigher-Order and Symbolic Computation, 2002
- From Syntactic Theories to Interpreters: Automating the Proof of Unique DecompositionHigher-Order and Symbolic Computation, 2001
- Continuations RevisitedHigher-Order and Symbolic Computation, 2000
- Back to direct styleScience of Computer Programming, 1994
- The discoveries of continuationsHigher-Order and Symbolic Computation, 1993
- Correctness of procedure representations in higher-order assembly language1992
- Call-by-name, call-by-value and the λ-calculusTheoretical Computer Science, 1975
- Definitional interpreters for higher-order programming languages1972