arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 1905.06545cs.PLcs.SE
收藏

函数式程序的直接解释

Direct Interpretation of Functional Programs for Debugging

John Whitington, Tom Ridge

摘要:

我们对长期存在的调试问题进行了另一次攻击。在探讨了为什么调试器没有像人们期望的那样广泛使用,特别是在函数式编程环境中,我们定义了调试器的特性,使其可用,从而广泛使用。我们提出了一个新的调试器OCaml的直接解释的程序源操作,允许打印出的程序的评估的各个步骤的初步工作。我们提出了OCamli,一个独立的解释器,并提出了一种机制,解释器可以集成到编译的可执行文件,允许程序的一部分被解释在相同的方式作为OCamli,而其余的程序本地运行。我们展示了这样的机制可能会创建一个源代码级的调试系统,具有可用的调试器的特性(如独立于其环境),因此最终可能会被期望适合广泛采用。

英文摘要:

We make another assault on the longstanding problem of debugging. After exploring why debuggers are not used as widely as one might expect, especially in functional programming environments, we define the characteristics of a debugger which make it usable and thus widely used. We present initial work towards a new debugger for OCaml which operates by direct interpretation of the program source, allowing the printing out of individual steps of the program's evaluation. We present OCamli, a standalone interpreter, and propose a mechanism by which the interpreter could be integrated into compiled executables, allowing part of a program to be interpreted in the same fashion as OCamli whilst the rest of the program runs natively. We show how such a mechanism might create a source-level debugging system that has the characteristics of a usable debugger (such as being independent of its environment) and so may eventually be expected to be suitable for widespread adoption.

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

↑