Prolog的多维谓词
Multidimensional Predicates for Prolog
摘要:
2014年,Ungar等人提出了Korz,一种用于构建自适应(面向对象)系统的新计算模型。Korz结合了隐式参数和多重分派来构造多维空间中对象的行为。Korz是一个简单而富有表现力的模型,它不需要特殊的编程技术,如访问者或策略模式,以适应新出现的上下文需求的系统。我们展示了如何Korz的想法可以集成在一个Prolog系统,通过扩展其语法和语义与简单的元编程技术。我们开发了一个库,称为mdp(多维谓词),可用于实验多维Prolog系统。我们强调它的好处与众多的场景,如打印调试信息,备忘录,面向对象的编程和自适应GUI。特别是,我们指出,我们可以结构和扩展Prolog程序与其他关注在一个清晰和简洁的方式。我们还演示了如何Prolog的独特的元编程功能,允许快速实验的语法和语义增强的新的,多维的模型。虽然有许多开放的关注,如效率和可理解性的情况下,更大的系统,我们将看到,我们可以使用的杠杆mdp和Prolog探索新的视野,在自适应系统的设计。
英文摘要:
In 2014, Ungar et al. proposed Korz, a new computational model for structuring adaptive (object-oriented) systems. Korz combines implicit parameters and multiple dispatch to structure the behavior of objects in a multidimensional space. Korz is a simple yet expressive model which does not require special programming techniques such as the Visitor or Strategy pattern to accommodate a system for emerging contextual requirements. We show how the ideas of Korz can be integrated in a Prolog system by extending its syntax and semantics with simple meta-programming techniques. We developed a library, called mdp (multidimensional predicates) which can be used to experiment with multidimensional Prolog systems. We highlight its benefits with numerous scenarios such as printing debugging information, memoization, object-oriented programming and adaptive GUIs. In particular, we point out that we can structure and extend Prolog programs with additional concerns in a clear and concise manner. We also demonstrate how Prolog's unique meta-programming capabilities allow for quick experimentation with syntactical and semantical enhancement of the new, multidimensional model. While there are many open concerns, such as efficiency and comprehensibility in the case of larger systems, we will see that we can use the leverage of mdp and Prolog to explore new horizons in the design of adaptive systems.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。