首页> 外文会议>International Workshop on Implementation and Applications of Functional Languages >From Functional Logic Programs to Purely Functional Programs Preserving Laziness
【24h】

From Functional Logic Programs to Purely Functional Programs Preserving Laziness

机译:从功能逻辑计划到纯粹的功能计划保存懒惰

获取原文

摘要

Functional logic languages extend the setting of functional programming by non-deterministic choices, free variables and narrowing. Most existing approaches to simulate logic features in functional languages do not preserve laziness, i.e., they can only model strict logic programming like in Prolog. Lazy functional logic programming however, has interesting properties supporting a more declarative style of programming search without sacrificing efficiency. We will present a recently developed technique to reduce all logic extensions to the single problem of generating unique identifiers. The impact of this reduction is a general scheme for compiling functional logic programs to lazy functional programs without side effects. One of the design goals is that the purely functional parts of a program should not suffer from significant run-time overhead. Preliminary experiments confirm our hope for significant improvements of run-time performance even for non-deterministic programs but suggest further work to improve the memory requirements of those.
机译:功能逻辑语言通过非确定性选择,自由变量和缩小扩展了功能编程的设置。在功能语言中模拟逻辑特征的大多数方法都不保留懒惰,即,它们只能在prolog中模拟严格的逻辑编程。然而,惰性功能逻辑编程,具有有趣的属性,支持更具声明的编程搜索风格而不会牺牲效率。我们将展示最近开发的技术,以将所有逻辑扩展缩短到生成唯一标识符的单一问题。这种减少的影响是将功能逻辑程序编译到懒惰功能程序的一般方案,而无需副作用。其中一个设计目标是程序的纯粹功能部分不应遭受重大的运行时间开销。初步实验证实我们的希望即使对于非确定性计划而言,即使对于非确定性计划而言,甚至有重大改善运行时性能,但建议进一步努力提高这些内存要求。

著录项

相似文献

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

客服邮箱:kefu@zhangqiaokeyan.com

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

  • 服务号