Partial Evaluation and Automatic Program Generation

Partial Evaluation and Automatic Program Generation

Author: Neil D. Jones

Publisher: Peter Sestoft

Published: 1993

Total Pages: 426

ISBN-13: 0130202495

DOWNLOAD EBOOK

Partial evaluation reconciles generality with efficiency by providing automatic specialization and optimization of programs. This book covers the entire field of partial evaluation; provides simple and complete algorithms; and demonstrates that specialization can increase efficiency.


A program manipulation system based on partial evaluation

A program manipulation system based on partial evaluation

Author: Anders Haraldsson

Publisher: Linköping University Electronic Press

Published: 2017-10-09

Total Pages: 265

ISBN-13: 9173721441

DOWNLOAD EBOOK

Program manipulation is the task to perform transformations on program code, and is normally done in order to optimize the code with respect of the utilization of some computer resource. Partial evaluation is the task when partial computations can be performed in a program before it is actually executed. If a parameter to a procedure is constant a specialized version of that procedure can be generated if the constant is inserted instead of the parameter in the procedure body and as much computations in the code as possible are performed. A system is described which works on programs written in INTERLISP, and which performs partial evaluation together with other transformations such as beta-expansion and certain other optimization operations. The system works on full LISP and not only for a "pure" LISP dialect, and deals with problems occurring there involving side-effects, variable assignments etc. An analysis of a previous system, REDFUN, results in a list of problems, desired extensions and new features. This is used as a basis for a new design, resulting in a new implementation, REDFUN-2. This implementation, design considerations, constraints in the system, remaining problems, and other experience from the development and experiments with the system are reported in this paper.


Partial Evaluation: Practice and Theory

Partial Evaluation: Practice and Theory

Author: John Hatcliff

Publisher: Springer

Published: 2007-07-16

Total Pages: 445

ISBN-13: 3540470182

DOWNLOAD EBOOK

As the complexity of software increases, researchers and practicioners continue to seek better techniques for engineering the construction of evolution of software. Partial evaluation is an attractive technology for modern software construction since it provides automatic tools for software specialization and is based on rigorous semantic foundations. This book is based on a school held at DIKU Copenhagen, Denmark in summer 1998 during which leading researchers summarized the state of the art in partial evaluation. The lectures presented survey the foundations of partial evaluation in a clear and rigorous manner and practically introduce several existing partial evaluators with numerous examples. The second part of the book is devoted to more sophisticated theoretical aspects, advances systems and applications, and highlights open problems and challenges. The book is ideally suited for advanced courses and for self study.


Partial Evaluation and Mixed Computation

Partial Evaluation and Mixed Computation

Author: Dines Bjørner

Publisher: North Holland

Published: 1988

Total Pages: 668

ISBN-13:

DOWNLOAD EBOOK

The aim of Partial Evaluation and Mixed Computation is to construct, when given a program and some form of restriction on its usage (e.g. knowledge of some but not all of its input parameter values), a more efficient new or ''residual'' program that is equivalent to the original program when used according to the restriction. Compiling and compiler generation are just two of the many applications. It is thus a form of program transformation, but with more emphasis on purely automatic methods than traditional program transformation. This volume collects a variety of examples of current work in the field. The papers demonstrate the vitality of this emerging area with contributions covering many different aspects, such as programming languages, application areas, degrees of automation, degrees of formality, and technical methods.


Logic Based Program Synthesis and Transformation

Logic Based Program Synthesis and Transformation

Author: Sandro Etalle

Publisher: Springer Science & Business Media

Published: 2005-06-24

Total Pages: 286

ISBN-13: 3540266550

DOWNLOAD EBOOK

This book constitutes the thoroughly refereed postproceedings of the 14th International Symposium on Logic Based Program Synthesis and Transformation, LOPSTR 2004, held in Verona, Italy in August 2004. The 17 revised full papers presented were carefully selected and revised from 23 full paper and 11 extended abstract submissions. The papers are organized in topical sections on verification and analysis, theory and security, transformations, program development, termination, and program development and synthesis.


Normalization and Partial Evaluation of Functional Logic Programs

Normalization and Partial Evaluation of Functional Logic Programs

Author: Björn Peemöller

Publisher: BoD – Books on Demand

Published: 2017-06-16

Total Pages: 301

ISBN-13: 3744821927

DOWNLOAD EBOOK

The functional logic programming paradigm combines the two most important fields of declarative programming, namely functional and logic programming, in an integrated way to allow the concise notation of high-level programs. However, the variety of concepts and conciseness of programs may also impact their efficiency. In this work we employ the powerful optimization technique of partial evaluation to develop a fully automatic program optimizer, the so-called partial evaluator. In particular, we formalize the normalization of programs during compilation, establish a formal notation of the evaluation process, develop a formal partial evaluation scheme and prove its correctness and termination, and implement a working partial evaluator which shows impressive results.