首页> 外文会议> >Experiences in using Prolog to develop a practical constraint solver
【24h】

Experiences in using Prolog to develop a practical constraint solver

机译:使用Prolog开发实用约束求解器的经验

获取原文

摘要

Sophisticated Prolog implementations like ECL/sup i/PS/sup e/, with automatic memory management and facilities for data-driven computation, offer many advantages for software development. The question is whether such automated systems can be used to deliver applications with a practical performance. We discuss our experiences with implementing an incremental version of the Simplex algorithm in ECL/sup i/PS/sup e/ (as part of a constraint logic programming system). Our application consists of approximately 2000 lines of ECL/sup i/PS/sup e/ Prolog code. In this paper, we present the highlights of our implementational experience and show how the application takes advantage of the meta-level control facilities and the garbage-collector. After taking performance profiles, we show how we modified the algorithm to increase performance. In previous systems, such as CHIP, CLP(/spl Rscr/) and Prolog-III, the solver was written in C, following the conventional wisdom that this is necessary to achieve good performance. We show that intricate coding is not necessary, since automated tools such as ECL/sup i/PS/sup e/ can already be used to produce realistic applications (and ECL/sup i/PS/sup e/ is being improved on continuously). Our results are quantified using a series of benchmarks against existing C-coded implementations. The Simplex solver is being used within Esprit project CHIC to develop financial applications.
机译:诸如ECL / sup i / PS / sup e /之类的复杂Prolog实现具有自动内存管理和数据驱动计算功能,为软件开发提供了许多优势。问题是这种自动化系统是否可以用于交付具有实用性能的应用程序。我们讨论了在ECL / sup i / PS / sup e /(作为约束逻辑编程系统的一部分)中实现Simplex算法的增量版本的经验。我们的应用程序由大约2000行ECL / sup i / PS / sup e / Prolog代码组成。在本文中,我们将介绍实现经验的重点,并展示该应用程序如何利用元级别的控制功能和垃圾收集器。在获取性能配置文件后,我们将展示如何修改算法以提高性能。在以前的系统(例如CHIP,CLP(/ spl Rscr /)和Prolog-III)中,求解器是用C编写的,这是遵循惯例的知识,即实现良好性能是必须的。我们证明,不需要复杂的编码,因为诸如ECL / sup i / PS / sup e /之类的自动化工具已经可以用于产生实际的应用程序(并且ECL / sup i / PS / sup e /也在不断改进中) 。我们使用一系列针对现有C编码实现的基准对我们的结果进行了量化。 Esprit项目CHIC中正在使用Simplex解算器来开发财务应用程序。

著录项

相似文献

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

客服邮箱:kefu@zhangqiaokeyan.com

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

  • 服务号