首页> 外文期刊>Theory and Practice of Logic Programming >Specialization of functional logic programs based on needed narrowing
【24h】

Specialization of functional logic programs based on needed narrowing

机译:基于所需范围缩小功能逻辑程序的专业化

获取原文
获取原文并翻译 | 示例
       

摘要

Many functional logic languages are based on narrowing, a unification-based goal-solving mechanism which subsumes the reduction mechanism of functional languages and the resolution principle of logic languages. Needed narrowing is an optimal evaluation strategy which constitutes the basis of modern (narrowing-based) lazy functional logic languages. In this work, we present the fundamentals of partial evaluation in such languages. We provide correctness results for partial evaluation based on needed narrowing and show that the nice properties of this strategy are essential for the specialization process. In particular, the structure of the original program is preserved by partial evaluation and, thus, the same evaluation strategy can be applied for the execution of specialized programs. This is in contrast to other partial evaluation schemes for lazy functional logic programs which may change the program structure in a negative way. Recent proposals for the partial evaluation of declarative multi-paradigm programs use (some form of) needed narrowing to perform computations at partial evaluation time. Therefore, our results constitute the basis for the correctness of such partial evaluators.
机译:许多功能逻辑语言都基于狭窄,这是一种基于统一的目标解决机制,它包含功能语言的归约机制和逻辑语言的解析原理。所需的缩小是一种最佳的评估策略,它构成了现代(基于缩小)的惰性功能逻辑语言的基础。在这项工作中,我们介绍了使用这种语言进行部分评估的基础。我们根据所需的缩小范围提供了部分评估的正确性结果,并证明了该策略的优良特性对于专业化过程至关重要。特别是,原始程序的结构通过部分评估得以保留,因此,相同的评估策略可用于执行专用程序。这与用于惰性功能逻辑程序的其他部分评估方案相反,后者可能会以负面方式更改程序结构。对于声明式多范式程序的部分评估的最新建议使用(某种形式的)需要缩小以在部分评估时执行计算。因此,我们的结果构成了此类局部评估者正确性的基础。

著录项

相似文献

  • 外文文献
  • 中文文献
  • 专利
获取原文

客服邮箱:kefu@zhangqiaokeyan.com

京公网安备:11010802029741号 ICP备案号:京ICP备15016152号-6 六维联合信息科技 (北京) 有限公司©版权所有
  • 客服微信

  • 服务号