Two Flavors of Offline Partial Evaluation
نویسندگان
چکیده
Type-directed partial evaluation is a new approach to program specialization for functional programming languages. Its merits with respect to the traditional offline partial evaluation approach have not yet been fully explored. We present a comparison of type-directed partial evaluation with standard offline partial evaluation in both a qualitative and quantitative way. For the latter we use implementations of both approaches in Scheme. Both approaches yield equivalent results in comparable time.
منابع مشابه
Two Flavors of Ooine Partial Evaluation
Type-directed partial evaluation is a new approach to program specialization for functional programming languages. Its merits with respect to the traditional ooine partial evaluation approach have not yet been fully explored. We present a comparison of type-directed partial evaluation with standard ooine partial evaluation in both a qualitative and quantitative way. For the latter we use implem...
متن کاملA Hybrid Approach to Conjunctive Partial Evaluation of Logic Programs
Conjunctive partial deduction is a well-known technique for the partial evaluation of logic programs. The original formulation follows the so called online approach where all termination decisions are taken on-the-fly. In contrast, offline partial evaluators first analyze the source program and produce an annotated version so that the partial evaluation phase should only follow these annotation...
متن کاملAn Experiment with the Fourth Futamura Projection
We have experimentally validated the theoretical insight, that a compiler generator is a generating extension of a program specializer, by showing that an existing offline partial evaluator can perform the fourth Futamura projection. Specifically, an online and an offline partial evalua-tor for an imperative flowchart language were transformed into two new compiler generators by Romanenko's cla...
متن کاملA Hybrid Approach to Conjunctive Partial Deduction
Conjunctive partial deduction is a well-known technique for the partial evaluation of logic programs. The original formulation follows the so called online approach where all termination decisions are taken on-the-fly. In contrast, offline partial evaluators first analyze the source program and produce an annotated version so that the partial evaluation phase should only follow these annotation...
متن کاملImproving Offline Narrowing-Driven Partial Evaluation Using Size-Change Graphs
An offline approach to narrowing-driven partial evaluation (a partial evaluation scheme for first-order functional and functional logic programs) has recently been introduced. In this approach, program annotations (i.e., the expressions that should be generalized at partial evaluation time to ensure termination) are based on a simple syntactic characterization of quasi-terminating programs. Thi...
متن کاملذخیره در منابع من
با ذخیره ی این منبع در منابع من، دسترسی به آن را برای استفاده های بعدی آسان تر کنید
عنوان ژورنال:
دوره شماره
صفحات -
تاریخ انتشار 1998