Online Type-Directed Partial Evaluation
DOI:
https://doi.org/10.7146/brics.v4i53.19274Resumé
In this experimental work, we extend type-directed partial evaluation (a.k.a. "reduction-free normalization" and "normalization by evaluation") to make it online, by enriching it with primitive operations (delta-rules). Each call to a primitive operator is either unfolded or residualized, depending on the operands and either with a default policy or with a user-supplied filter. The user can also specify how to residualize an operation, by pattern-matching over the operands. Operators may be pure or have a computational effect.We report a complete implementation of online type-directed partial evaluation in Scheme, extending our earlier offline implementation.
Our partial evaluator is native in that it runs compiled code instead of using the usual meta-level technique of symbolic evaluation.
Downloads
Publiceret
1997-06-23
Citation/Eksport
Danvy, O. (1997). Online Type-Directed Partial Evaluation. BRICS Report Series, 4(53). https://doi.org/10.7146/brics.v4i53.19274
Nummer
Sektion
Artikler
Licens
Authors who publish with this journal agree to the following terms:- Authors retain copyright and grant the journal right of first publication with the work simultaneously licensed under a Creative Commons Attribution License that allows others to share the work with an acknowledgement of the work's authorship and initial publication in this journal.
- Authors are able to enter into separate, additional contractual arrangements for the non-exclusive distribution of the journal's published version of the work (e.g., post it to an institutional repository or publish it in a book), with an acknowledgement of its initial publication in this journal.
- Authors are permitted and encouraged to post their work online (e.g., in institutional repositories or on their website) prior to and during the submission process, as it can lead to productive exchanges, as well as earlier and greater citation of published work (See The Effect of Open Access).