ACM Home Page
Please provide us with feedback. Feedback
The second Futamura projection for type-directed partial evaluation
Full text PdfPdf (2.22 MB)
Source ACM/SIGPLAN Workshop Partial Evaluation and Semantics-Based Program Manipulation archive
Proceedings of the 2000 ACM SIGPLAN workshop on Partial evaluation and semantics-based program manipulation table of contents
Boston, Massachusetts, United States
Pages: 22 - 32  
Year of Publication: 2000
ISBN:1-58113-201-8
Also published in ...
Authors
Bernd Grobauer  Ny Munkegade, Building 540, 8000 Aarhus C, Denmark and BRICS(Basic Research in Computer Science) Centre ofthe Danish National Research Foundation, Department of Computer Science, University of Aarhus
Zhe Yang  Department of Computer Science, New York University, 5251 Mercer Street, New York, NY
Sponsor
SIGPLAN: ACM Special Interest Group on Programming Languages
Publisher
ACM  New York, NY, USA
Bibliometrics
Downloads (6 Weeks): 1,   Downloads (12 Months): 11,   Citation Count: 1
Additional Information:

abstract   references   cited by   index terms   collaborative colleagues   peer to peer  

Tools and Actions: Review this Article  
Save this Article to a Binder    Display Formats: BibTex  EndNote ACM Ref   
DOI Bookmark: Use this link to bookmark this Article: http://doi.acm.org/10.1145/328690.328695
What is a DOI?

ABSTRACT

The second Futamura projection describes the automatic generation of non-trivial generating extensions by applying a partial evaluator to itself. We derive an ML implementation of the second Futamura projection for Type-Directed Partial Evaluation (TDPE). Due to the differences between `traditional', syntax-directed partial evaluation and TDPE, this derivation involves several conceptual and technical steps. These include a suitable formulation of the second Futamura projection and techniques for using TDPE to specialize type-indexed programs. In the context of the second Futamura projection, we also compare and relate TDPE with conventional offline partial evaluation.

We demonstrate our technique with several examples, including compiler generation for Tiny, a prototypical imperative language.


REFERENCES

Note: OCR errors may be found in this Reference List extracted from the full text article. ACM has opted to expose the complete List rather than only correct and linked references.

1
 
2
 
3
 
4
 
5
O. Danvy and M. Rhiger. Compiling actions by partial evaluation, revisited. Technical Report BRICS-RS-98-13, BRICS, Department of Computer Science, University of Aarhus, 1998.
 
6
7
 
8
 
9
 
10
B. Grobauer and Z. Yang. The second Futamura projection for type-directed partial evaluation. Research Series RS-99- 40, BRICS, Department of Computer Science, University of Aaxhus, 1999.
 
11
C. K. Holst and J. Launchbury. Handwriting cogen to avoid problems with s~atic typing. In Draft Proceedings, ~th Annual Glasgow Workshop on Functional Programming, pages 210-218. Glasgow University, 1991.
 
12
N. D. Jones. Challenging problems in partial evaluation and mixed computation. In D. Bj0rner, A. P. Ershov, and N. D. Jones, editors, Partial Evaluation and Mixed Computation, pages 1-14. North-Holland, 1988.
 
13
 
14
N. D. Jones, P. Sestoft, and H. S0ndergaard. MIX: A selfapplicable partial evaluator for experiments in compiler generation. Lisp and Symbolic Computation, 2(1):9-50~ 1989.
 
15
 
16
M. Rhiger. Deriving a statically typed type-directed partial evaluator. In O. Danvy, editor, Proceedings of PEPM '99, Technical report BRICS-NS-99-1, BRICS, Department of Computer Science, University of Aarhus, pages 25-29, 1999.
 
17
M. Rhiger. Run-time code generation for type-directed partial evaluation. Progress report, BRICS PhD School, University of Aarhus. Available at http://www .brits. dk/-mrhiger, Dec. 1999.
18


Collaborative Colleagues:
Bernd Grobauer: colleagues
Zhe Yang: colleagues

Peer to Peer - Readers of this Article have also read: