Hostname: page-component-77f85d65b8-g4pgd Total loading time: 0 Render date: 2026-04-18T23:26:19.843Z Has data issue: false hasContentIssue false

On one-pass CPS transformations

Published online by Cambridge University Press:  01 November 2007

OLIVIER DANVY
Affiliation:
BRICS, Department of Computer Science, University of Aarhus, IT-parken, Aabogade 34, DK-8200 Aarhus N, Denmark email: danvy@brics.dk, kmillikin@brics.dk, lrn@brics.dk
KEVIN MILLIKIN
Affiliation:
BRICS, Department of Computer Science, University of Aarhus, IT-parken, Aabogade 34, DK-8200 Aarhus N, Denmark email: danvy@brics.dk, kmillikin@brics.dk, lrn@brics.dk
LASSE R. NIELSEN
Affiliation:
BRICS, Department of Computer Science, University of Aarhus, IT-parken, Aabogade 34, DK-8200 Aarhus N, Denmark email: danvy@brics.dk, kmillikin@brics.dk, lrn@brics.dk
Rights & Permissions [Opens in a new window]

Abstract

Core share and HTML view are not available for this content. However, as you have access to this content, a full PDF is available via the 'Save PDF' action button.

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.

Information

Type
Article
Copyright
Copyright © Cambridge University Press 2007
Submit a response

Discussions

No Discussions have been published for this article.