Author:
DANVY OLIVIER,MILLIKIN KEVIN,NIELSEN LASSE R.
Abstract
AbstractWe 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.
Publisher
Cambridge University Press (CUP)
Reference73 articles.
1. Wand M. (1991) Correctness of procedure representations in higher-order assembly language. In Proceedings of the 7th International Conference on Mathematical Foundations of Programming Semantics, Brookes S. , Main M. , Melton A. , Mislove M. & Schmidt D. (eds), Lecture Notes in Computer Science, No. 598. Pittsburgh, PA: Springer-Verlag, pp. 294–311.
2. Thielecke H. (ed). (2004, Jan.) Proceedings of the Fourth ACM SIGPLAN Workshop on Continuations (cw'04). Technical report CSR-04-1, Department of Computer Science, Queen Mary's College.
3. Technical Monograph PRG-11. Oxford, England: Oxford University Computing Laboratory, Programming Research Group. Reprinted;Strachey;Continuations: A Mathematical Semantics for Handling Full Jumps,1974
Cited by
8 articles.
订阅此论文施引文献
订阅此论文施引文献,注册后可以免费订阅5篇论文的施引文献,订阅后可以查看论文全部施引文献
1. Separating Sessions Smoothly;Logical Methods in Computer Science;2023-07-12
2. Functional Representations of SSA;SSA-based Compiler Design;2021-06-12
3. Type directed compilation of row-typed algebraic effects;ACM SIGPLAN Notices;2017-05-11
4. Type directed compilation of row-typed algebraic effects;Proceedings of the 44th ACM SIGPLAN Symposium on Principles of Programming Languages;2017-01
5. Negative Translations and Duality: Toward a Unified Approach;Ludics, Dialogue and Interaction;2011