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

函数式核心语言中的空间改进与等价

Space Improvements and Equivalences in a Functional Core Language

Manfred Schmidt-Schauß, Nils Dallmeyer

摘要:

我们探讨空间的改进LRP,一个多态类型的呼叫需要功能的核心语言。一个宽松的空间措施是选择在评估过程中的最大尺寸使用。它通过抽象机器从实现的细节中抽象出来,但它考虑了垃圾回收,因此可以被看作是空间使用的一个现实近似。其结果是:一个上下文引理的空间改进的翻译和空间等价,所有的,但一个减少规则的演算是空间的改进,并为例外,我们显示的空间增加的界限。几个进一步的程序转换被证明是空间改进或空间等价,特别是翻译成机器表达式是一个空间等价。我们还将某些空间恶化的变换归类为空间泄漏或空间安全。这些结果在预测按需调用函数式语言中优化转换的运行时空间行为的变化方面向前迈进了一步。

英文摘要:

We explore space improvements in LRP, a polymorphically typed call-by-need functional core language. A relaxed space measure is chosen for the maximal size usage during an evaluation. It abstracts from the details of the implementation via abstract machines, but it takes garbage collection into account and thus can be seen as a realistic approximation of space usage. The results are: a context lemma for space improving translations and for space equivalences, all but one reduction rule of the calculus are shown to be space improvements, and for the exceptional one we show bounds on the space increase. Several further program transformations are shown to be space improvements or space equivalences in particular the translation into machine expressions is a space equivalence. We also classify certain space-worsening transformations as space-leaks or as space-safe. These results are a step forward in making predictions about the change in runtime space behavior of optimizing transformations in call-by-need functional languages.

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

↑