首页> 外文期刊>The Journal of Functional and Logic Programming >Dynamic Predicates in Functional Logic Programs
【24h】

Dynamic Predicates in Functional Logic Programs

机译:功能逻辑程序中的动态谓词

获取原文
           

摘要

In this paper we propose a new concept to deal withdynamic predicates in functional logic programs.The definition of a dynamic predicate can change over time,i.e., one can add or remove facts that define this predicate.Our approach is easy to use and has a clear semanticsthat does not depend on the particular (demand-driven) evaluationstrategy of the underlying implementation.In particular, the concept is not based on (unsafe) side effectsso thatthe order of evaluation does not influence the computed results---anessential requirement in non-strict languages.Dynamic predicates can also be persistent so that theirdefinitions are saved across invocations of programs.Thus, dynamic predicates are a lightweight alternativeto the explicit use of external database systems.Moreover, they extend one of the classicalapplication areas of logic programming to functional logic programs.We present the concept, its use and an implementationin a Prolog-based compiler.
机译:在本文中,我们提出了一种新的概念来处理函数逻辑程序中的动态谓词。动态谓词的定义会随着时间而变化,即可以添加或删除定义该谓词的事实。我们的方法易于使用并且具有清晰的语义,不依赖于基础实现的特定(需求驱动)评估策略。特别是,该概念不是基于(不安全的)副作用,因此评估的顺序不会影响计算结果-在非-严格的语言。动态谓词也可以是持久性的,以便在程序调用时保存它们的定义。因此,动态谓词是显式使用外部数据库系统的轻量级替代方法,而且它们将逻辑编程的经典应用领域之一扩展为功能逻辑程序。我们在基于Prolog的编译器中介绍概念,其用法和实现。

著录项

相似文献

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

客服邮箱:kefu@zhangqiaokeyan.com

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

  • 服务号