arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 1801.04618cs.PLcs.DC
收藏

可变状态的分层存储管理

Hierarchical Memory Management for Mutable State

Adrien Guatto, Sam Westrick, Ram Raghunathan, Umut Acar, Matthew Fluet

摘要:

众所周知,现代函数式程序设计语言自然适合并行编程。然而,使用函数式语言实现有效的并行性仍然很困难。也许最重要的原因是它们缺乏对有效的就地更新的支持,即,变异,这对于并行算法和运行时系统服务(例如,编译器和同步原语)来执行它们。在本文中,我们提出了在并行函数式语言的有效变异技术。为此,我们将内存管理器与线程调度器相结合,以使读取和更新嵌套线程分配的数据变得高效。我们描述了我们的技术背后的关键算法,在MLton标准ML编译器中实现它们,并提出了一个实证评估。我们的实验表明,该方法表现良好,显着提高效率比现有的函数式语言实现。

英文摘要:

It is well known that modern functional programming languages are naturally amenable to parallel programming. Achieving efficient parallelism using functional languages, however, remains difficult. Perhaps the most important reason for this is their lack of support for efficient in-place updates, i.e., mutation, which is important for the implementation of both parallel algorithms and the run-time system services (e.g., schedulers and synchronization primitives) used to execute them. In this paper, we propose techniques for efficient mutation in parallel functional languages. To this end, we couple the memory manager with the thread scheduler to make reading and updating data allocated by nested threads efficient. We describe the key algorithms behind our technique, implement them in the MLton Standard ML compiler, and present an empirical evaluation. Our experiments show that the approach performs well, significantly improving efficiency over existing functional language implementations.

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

↑