arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 1907.06057cs.LOcs.PL
收藏

摇摇欲坠的抽象机器

Crumbling Abstract Machines

Beniamino Accattoli, Andrea Condoluci, Giulio Guerrieri, Claudio Sacerdoti Coen

摘要:

用一个共享的构造(如let表达式)扩展了可达演算,使项的特殊表示成为可能:迭代的应用程序通过在它们中的任何两个之间引入共享点来分解,减少到应用程序只有值作为直接子项的情况。这项工作研究如何崩溃的条款表示的影响,设计和抽象的机器按值调用评估的效率。关于设计,它消除了对计算上下文进行编码的数据结构的需要,例如在环境中编码的应用堆栈和转储。关于效率,我们表明,没有减速,特别是澄清肯尼迪提出的一点,关于这种代表性的潜在效率低下。此外,我们证明,一切顺利地扩展到微妙的情况下,开放的条款,需要实施证明助手。在此过程中,我们还指出,延续传递样式转换(可能是我们的表示的替代方案)不会扩展到开放情况。

英文摘要:

Extending the lambda-calculus with a construct for sharing, such as let expressions, enables a special representation of terms: iterated applications are decomposed by introducing sharing points in between any two of them, reducing to the case where applications have only values as immediate subterms. This work studies how such a crumbled representation of terms impacts on the design and the efficiency of abstract machines for call-by-value evaluation. About the design, it removes the need for data structures encoding the evaluation context, such as the applicative stack and the dump, that get encoded in the environment. About efficiency, we show that there is no slowdown, clarifying in particular a point raised by Kennedy, about the potential inefficiency of such a representation. Moreover, we prove that everything smoothly scales up to the delicate case of open terms, needed to implement proof assistants. Along the way, we also point out that continuation-passing style transformations--that may be alternatives to our representation--do not scale up to the open case.

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

↑