基于代码内省的高效Prolog系统
Towards an Efficient Prolog System by Code Introspection
摘要:
逻辑程序设计理论与实践(Theory and Practice of Logic Programming,TPLP)一些Prolog解释器是基于Warren抽象机(WAM),一个优雅的模型来编译Prolog程序。为了提高性能,提出了优化子句选择、专门化统一、全局分析、本地代码生成和制表等策略。本文提出了一种不同的策略来实现一个高效的Prolog系统,在飞行中创建专门的仿真器。该策略在YAP Prolog系统上进行了实现和评估,实验评估显示了有趣的结果。
英文摘要:
To appear in Theory and Practice of Logic Programming (TPLP). Several Prolog interpreters are based on the Warren Abstract Machine (WAM), an elegant model to compile Prolog programs. In order to improve the performance several strategies have been proposed, such as: optimize the selection of clauses, specialize the unification, global analysis, native code generation and tabling. This paper proposes a different strategy to implement an efficient Prolog System, the creation of specialized emulators on the fly. The proposed strategy was implemented and evaluated at YAP Prolog System, and the experimental evaluation showed interesting results.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。