Specialization of inductively sequential functional logic programs

被引:5
|
作者
Alpuente, M
Hanus, M
Lucas, S
Vidal, G
机构
[1] Univ Politecn Valencia, DSIC, Valencia 46022, Spain
[2] Rhein Westfal TH Aachen, D-52056 Aachen, Germany
关键词
D O I
10.1145/317765.317910
中图分类号
TP31 [计算机软件];
学科分类号
081202 ; 0835 ;
摘要
Functional logic languages combine the operational principles of the most important declarative programming paradigms, namely functional and logic programming. Inductively sequential programs admit the definition of optimal computation strategies and are the basis of several recent (lazy) functional logic languages. In this paper, we define a partial evaluator for inductively sequential functional logic programs. We prove strong correctness of this partial evaluator and show that the nice properties of inductively sequential programs carry over to the specialization process and the specialized programs. In particular, the structure of the programs is preserved by the specialization process. This is in contrast to other partial evaluation methods for functional logic programs which can destroy the original program structure. Finally, we present some experiments which highlight the practical advantages of our approach.
引用
收藏
页码:273 / 283
页数:11
相关论文
共 50 条