Christian-Albrechts-Universität zu Kiel
Normalization and Partial Evaluation of Functional Logic Programs
Abstract
dc:description.abstractThe 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 syntactic constructs and conciseness of programs may also impact their efficiency. To reduce the syntactic complexity of functional logic languages, a typical compilation scheme incorporates a normalization phase to subsequently replace complex constructs by simpler ones until a minimal language subset is reached. The efficiency of normalized programs can then be improved by means of different optimization techniques. A very powerful optimization technique is the partial evaluation of programs. Partial evaluation basically anticipates the execution of certain program fragments at compile time and computes a semantically equivalent program, which is usually more efficient at run time. Since partial evaluation is a fully automatic optimization technique, it can also be incorporated into the normal compilation scheme of programs. In this work we consider the language Curry as a representative of the functional logic programming paradigm. We develop a formal representation of the normalization process of Curry programs into a kernel language, while respecting the interference of different language constructs. We then define the dynamic semantics of this kernel language, before we subsequently develop a partial evaluation scheme and show its correctness and termination. Due to the previously described normalization process, this scheme is then directly applicable to arbitrary Curry programs. Furthermore, the implementation of a practical partial evaluator is sketched based on the partial evaluation scheme, and its applicability and usefulness is documented by a variety of typical partial evaluation examples.
Degree
thesis:*- Level thesis:degree_level
- thesis.doctoral
- Grantor dc:publisher
- Christian-Albrechts-Universität zu Kiel
- Year dc:date.issued
- 2017
Author and committee
dc:creator, dc:contributor.*- Author dc:creator
-
- Peemöller, Björn
- Advisor dc:contributor.advisor
-
- Hanus, Michael
Subjects
dc:subject × 7Rights
dc:rights.accessrights- Statement dc:rights.accessrights
-
- free
- OA
- Licence dc:rights.uri
- Language dc:language.dcterms_iso639_2
- eng
Identifiers
dc:identifier.*- Persistent identifier dc:identifier.urn
- https://nbn-resolving.org/urn:nbn:de:gbv:8-diss-211568