arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2102.06928cs.LO
收藏

强按值调用是合理的,内爆的

Strong Call-by-Value is Reasonable, Implosively

Beniamino Accattoli, Andrea Condoluci, Claudio Sacerdoti Coen

摘要:

是否β-步骤的数量可以采取的计算演算作为一个合理的时间成本模型(即,多项式相关的图灵机之一)是一个微妙的问题,这取决于评估策略的概念。自上世纪90年代以来,人们就知道弱(即抽象)按值调用求值是一种合理的策略,而Lévy的最优并行策略是强的(即它在任何地方都减少),不是。强的情况比弱的情况更微妙。2014年,Accattoli和Dal Lago通过引入一种新的有用共享形式,以及后来的抽象机器,证明了强按名调用是合理的。在这里,我们表明,强调用的价值评估也是合理的时间,通过一个新的抽象机实现有用的共享,并具有线性开销。此外,我们的机器使用了一种新的共享技术组合,在有用的共享之上添加了一种内爆式共享,这在某些方面带来了指数级的速度提升。我们给出的例子的家庭,机器执行的时间对数的β步骤的数量。

英文摘要:

Whether the number of beta-steps in the lambda-calculus can be taken as a reasonable time cost model (that is, polynomially related to the one of Turing machines) is a delicate problem, which depends on the notion of evaluation strategy. Since the nineties, it is known that weak (that is, out of abstractions) call-by-value evaluation is a reasonable strategy while Lévy's optimal parallel strategy, which is strong (that is, it reduces everywhere), is not. The strong case turned out to be subtler than the weak one. In 2014 Accattoli and Dal Lago have shown that strong call-by-name is reasonable, by introducing a new form of useful sharing and, later, an abstract machine with an overhead quadratic in the number of beta-steps. Here we show that also strong call-by-value evaluation is reasonable for time, via a new abstract machine realizing useful sharing and having a linear overhead. Moreover, our machine uses a new mix of sharing techniques, adding on top of useful sharing a form of implosive sharing, which on some terms brings an exponential speed-up. We give examples of families that the machine executes in time logarithmic in the number of beta-steps.

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

↑