arXivDaily arXiv每日学术速递 周一至周五更新
感恩节,周五至周末无更新,大家顺遂。周一再来吧
arXiv 2106.13936cs.PL
收藏

用量子物理学方法实现资源的自动分摊分析

Automatic Amortized Resource Analysis with the Quantum Physicist's Method

David M Kahn, Jan Hoffmann

摘要:

我们提出了一种新的方法与物理学家的方法摊销资源分析,我们称之为量子物理学家的方法。这些原则允许对非单调消耗的资源(如堆栈)进行更精确的分析。这种方法的名字来自于它的两个主要特征,世界观和资源隧道,它们的行为类似于量子叠加和量子隧道。我们使用量子物理学家的方法来扩展自动摊销资源分析(AARA)类型的系统,使资源边界的推导基于树的深度。在这样做的时候,我们还引入了余数上下文,这有助于线性类型系统中的簿记。然后,我们评估这种新的类型系统的性能,通过绑定堆栈使用的OCaml的标准库的集合模块中的功能。与AARA的最先进的实现相比,我们的新系统得到了更严格的界限,只有适度的开销。

英文摘要:

We present a novel method for working with the physicist's method of amortized resource analysis, which we call the quantum physicist's method. These principles allow for more precise analyses of resources that are not monotonically consumed, like stack. This method takes its name from its two major features, worldviews and resource tunneling, which behave analogously to quantum superposition and quantum tunneling. We use the quantum physicist's method to extend the Automatic Amortized Resource Analysis (AARA) type system, enabling the derivation of resource bounds based on tree depth. In doing so, we also introduce remainder contexts, which aid bookkeeping in linear type systems. We then evaluate this new type system's performance by bounding stack use of functions in the Set module of OCaml's standard library. Compared to state-of-the-art implementations of AARA, our new system derives tighter bounds with only moderate overhead.

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

↑