论火球的相对稳定性
On the Relative Usefulness of Fireballs
摘要:
在CSL-LICS 2014中,Accattoli和Dal Lago展示了普通(即强,纯,按名称调用)$λ$ -演算到RAM机器等模型中的实现,该模型在$β$ -步骤的数量上是多项式的,回答了一个长期存在的问题。关键的成分是使用一个有用的共享微积分,一个新的概念,其复杂性被证明是多项式,但其实现没有探索。本文旨在作为补充,从实用的角度研究了按值呼叫场景中的有用共享。我们介绍火球演算,一个自然的扩展调用的价值开放的条款,这个问题是一样困难的普通的微积分。我们提出了三个结果。首先,我们采用了Accattoli和Dal Lago的解决方案,改进了有用共享的元理论。然后,我们通过引入GLAMoUr来改进图片,GLAMoUr是一个简单的抽象机器,它实现了扩展了有用共享的火球演算。它的主要特点是,一个步骤的有用性是在恒定的时间内测试的。第三,我们提供了一个进一步的优化,导致一个实现只有一个线性开销相对于$β$步骤的数量。
英文摘要:
In CSL-LICS 2014, Accattoli and Dal Lago showed that there is an implementation of the ordinary (i.e. strong, pure, call-by-name) $λ$-calculus into models like RAM machines which is polynomial in the number of $β$-steps, answering a long-standing question. The key ingredient was the use of a calculus with useful sharing, a new notion whose complexity was shown to be polynomial, but whose implementation was not explored. This paper, meant to be complementary, studies useful sharing in a call-by-value scenario and from a practical point of view. We introduce the Fireball Calculus, a natural extension of call-by-value to open terms for which the problem is as hard as for the ordinary lambda-calculus. We present three results. First, we adapt the solution of Accattoli and Dal Lago, improving the meta-theory of useful sharing. Then, we refine the picture by introducing the GLAMoUr, a simple abstract machine implementing the Fireball Calculus extended with useful sharing. Its key feature is that usefulness of a step is tested---surprisingly---in constant time. Third, we provide a further optimization that leads to an implementation having only a linear overhead with respect to the number of $β$-steps.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。