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

选择记忆

Selective Memoization

Umut A. Acar, Guy E. Blelloch, Robert Harper

摘要:

本文介绍了选择性地应用记忆化的语言技术。这些技术提供了程序员对相等性、空间使用和精确依赖性的识别的控制,使得可以根据应用的需要来应用记忆化。该方法的两个关键特性是,它接受和有效的实施,并产生程序,其性能可以使用标准的分析技术进行分析。我们描述了我们的方法的上下文中的函数语言称为MFL和实现作为一个标准ML库。MFL语言采用模态类型系统,使程序员能够表达程序,在执行时显示其真实的数据依赖关系。我们证明,MFL语言是健全的,通过显示,MFL程序产生相同的结果,因为他们将相对于一个标准的,非memoizing语义。SML实现不能静态地支持MFL的模态类型系统,而是采用运行时检查来确保原语的正确使用。

英文摘要:

This paper presents language techniques for applying memoization selectively. The techniques provide programmer control over equality, space usage, and identification of precise dependences so that memoization can be applied according to the needs of an application. Two key properties of the approach are that it accepts and efficient implementation and yields programs whose performance can be analyzed using standard analysis techniques. We describe our approach in the context of a functional language called MFL and an implementation as a Standard ML library. The MFL language employs a modal type system to enable the programmer to express programs that reveal their true data dependences when executed. We prove that the MFL language is sound by showing that that MFL programs yield the same result as they would with respect to a standard, non-memoizing semantics. The SML implementation cannot support the modal type system of MFL statically but instead employs run-time checks to ensure correct usage of primitives.

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

↑