Hostname: page-component-8448b6f56d-xtgtn Total loading time: 0 Render date: 2024-04-20T02:42:04.179Z Has data issue: false hasContentIssue false

A computational formalization for partial evaluation

Published online by Cambridge University Press:  01 October 1997

JOHN HATCLIFF
Affiliation:
Department of Computer Science, Oklahoma State University, 219 Mathematical Sciences, Stillwater, OK, 74078-1053, USA. E-mail: hatcliff@a.cs.okstate.edu
OLIVIER DANVY
Affiliation:
BRICS
Basic Research in Computer Science, Centre of the Danish National Research Foundation.
, Department of Computer Science, Aarhus University, Ny Munkegade, Building 540, DK-8000 Aarhus C, Denmark. E-mail: danvy@brics.dk

Abstract

We formalize a partial evaluator for Eugenio Moggi's computational metalanguage. This formalization gives an evaluation-order independent view of binding-time analysis and program specialization, including a proper treatment of call unfolding. It also enables us to express the essence of ‘control-based binding-time improvements’ for let expressions. Specifically, we prove that the binding-time improvements given by ‘continuation-based specialization’ can be expressed in the metalanguage via monadic laws.

Type
Research Article
Copyright
1997 Cambridge University Press

Access options

Get access to the full version of this content by using one of the access options below. (Log in options will check for institutional or personal access. Content may require purchase if you do not have access.)