arXivDaily arXiv每日学术速递 周一至周五更新
arXiv周末暂无论文更新,休息一下吧,周末愉快~~
arXiv 2308.15867cs.LOcs.PLcs.SE
收藏

论声明式诊断的可行性

On Feasibility of Declarative Diagnosis

Włodzimierz Drabent

AI总结:

本文探讨Prolog程序调试中声明式诊断方法被忽视的问题,分析其弱点并提出克服方案,论证了声明式诊断在实际编程中的可行性与应用价值。

摘要:

编程语言 Prolog 使得声明式编程成为可能,至少在相当程度上如此。程序可以依据其声明式语义进行编写和推理。然而,当涉及程序调试时,声明式编程的所有优势都丧失了。这是因为 Prolog 调试器完全基于操作语义。声明式的诊断方法(即定位程序中的错误)虽然存在,但被忽视了。本文讨论了它们可能的主要弱点,并展示了如何克服这些弱点。我们认为,存在有用的逻辑程序声明式诊断方法,并且这些方法应当在实际编程中得以应用。

英文摘要:

The programming language Prolog makes declarative programming possible, at least to a substantial extent. Programs may be written and reasoned about in terms of their declarative semantics. All the advantages of declarative programming are however lost when it comes to program debugging. This is because the Prolog debugger is based solely on the operational semantics. Declarative methods of diagnosis (i.e. locating errors in programs) exist, but are neglected. This paper discusses their possibly main weaknesses and shows how to overcome them. We argue that useful ways of declarative diagnosis of logic programs exist, and should be usable in actual programming.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑