Measuring the effectiveness of partial evaluation in functional logic languages

被引:4
|
作者
Albert, E [1 ]
Antoy, S
Vidal, G
机构
[1] Univ Politecn Valencia, DSIC, Valencia, Spain
[2] Portland State Univ, Dept Comp Sci, Portland, OR 97207 USA
关键词
D O I
10.1007/3-540-45142-0_7
中图分类号
TP18 [人工智能理论];
学科分类号
081104 ; 0812 ; 0835 ; 1405 ;
摘要
We introduce a framework for assessing the effectiveness of partial evaluators in functional logic languages. Our framework is based on properties of the rewrite system that models a functional logic program. Consequently, our assessment is independent of any specific language implementation or computing environment. We define several criteria for measuring the cost of a computation: number of steps, number of function applications, and pattern matching effort. Most importantly, we express the cost of each criterion by means of recurrence equations over algebraic data types, which can be automatically inferred from the partial evaluation process itself. In some cases, the equations can be solved by transforming their arguments from axbitrary data types to natural numbers. In other cases, it is possible to estimate the improvement of a partial evaluation by analyzing the associated cost recurrence equations.
引用
收藏
页码:103 / 124
页数:22
相关论文
共 50 条