Lune

PLDI2023顶会

Efficient Parallel Functional Programming with Effects

Jatin Arora, Sam Westrick, Umut A. Acar

摘要

Although functional programming languages simplify writing safe parallel programs by helping programmers to avoid data races, they have traditionally delivered poor performance. Recent work improved performance by using a hierarchical memory architecture that allows processors to allocate and reclaim memory independently without any synchronization, solving thus the key performance challenge afflicting functional programs. The approach, however, restricts mutation, or memory effects, so as to ensure "disentanglement", a low-level memory property that guarantees independence between different heaps in the hierarchy.

This paper proposes techniques for supporting entanglement and for allowing functional programs to use mutation at will. Our techniques manage entanglement by distinguishing between disentangled and entangled objects and shielding disentangled objects from the cost of entanglement management. We present a semantics that formalizes entanglement as a property at the granularity of memory objects, and define several cost metrics to reason about and bound the time and space cost of entanglement. We present an implementation of the techniques by extending the MPL compiler for Parallel ML. The extended compiler supports all features of the Parallel ML language, including unrestricted effects. Our experiments using a variety of benchmarks show that MPL incurs a small time and space overhead compared to sequential runs, scales well, and is competitive with languages such as C++, Go, Java, OCaml. These results show that our techniques can marry the safety benefits of functional programming with performance.

问 Lune

几分钟读透这篇 Paper,不用再花一下午。

Lune 能读完全文,也能读引用它的顶会 Paper,讲清它的结论、证据和局限,每一点都注明出自哪篇 Paper。不用硬啃,也不靠猜。

已有 5 篇顶会 Paper 引用了它。别等审稿人问起,先弄清它们发现了什么。

可以从这些问题问起

Lune 可以查阅

全文 · 引用它的顶会 Paper · 相关的 Paper

获取答案

免费开始,无需绑卡

脉络

  • TypeDis: A Type System for Disentanglement 引用了 Disentanglement in nested-parallel programs
  • TypeDis: A Type System for Disentanglement 引用了 Disentanglement with Futures, State, and Interaction
  • TypeDis: A Type System for Disentanglement 引用了 Provably space-efficient parallel functional programming
  • TypeDis: A Type System for Disentanglement 引用了 DisLog: A Separation Logic for Disentanglement
  • Disentanglement with Futures, State, and Interaction 引用了 Responsive parallelism with futures and state
  • Disentanglement with Futures, State, and Interaction 引用了 Disentanglement in nested-parallel programs
  • Disentanglement with Futures, State, and Interaction 引用了 Provably space-efficient parallel functional programming
  • Provably space-efficient parallel functional programming 引用了 Responsive parallelism with futures and state
  • Provably space-efficient parallel functional programming 引用了 Disentanglement in nested-parallel programs
  • Automatic Parallelism Management 引用了 Responsive parallelism with futures and state
  • Automatic Parallelism Management 引用了 Disentanglement in nested-parallel programs
  • Automatic Parallelism Management 引用了 Provably space-efficient parallel functional programming
  • DisLog: A Separation Logic for Disentanglement 引用了 Disentanglement in nested-parallel programs
  • DisLog: A Separation Logic for Disentanglement 引用了 Provably space-efficient parallel functional programming
它引用的引用它的从左到右按年份排列,引用越多,位置越高。

引用它的顶会 Paper5

  1. Automatic Parallelism ManagementSam Westrick, Matthew Fluet, Mike Rainey, Umut A. AcarPOPL 2024 · 7 次引用
  2. TypeDis: A Type System for DisentanglementAlexandre Moine, Stephanie Balzer, Alex Xu, Sam WestrickPOPL 2026 · 1 次引用
  3. Iso: Request-Private Garbage CollectionTianle Qiu, Stephen M. BlackburnPLDI 2025 · 1 次引用
  4. Disentanglement with Futures, State, and InteractionJatin Arora, Stefan K. Muller, Umut A. AcarPOPL 2024
  5. DisLog: A Separation Logic for DisentanglementAlexandre Moine, Sam Westrick, Stephanie BalzerPOPL 2024

它引用的 Paper4

  1. Disentanglement in nested-parallel programsSam Westrick, Rohan Yadav, Matthew Fluet, Umut A. AcarPOPL 2020 · 19 次引用
  2. Responsive parallelism with futures and stateStefan K. Muller, Kyle Singer, Noah Goldstein, Umut A. Acar 等PLDI 2020 · 12 次引用
  3. Proving highly-concurrent traversals correctYotam M. Y. Feldman, Artem Khyzha, Constantin Enea, Adam Morrison 等OOPSLA 2020 · 12 次引用
  4. Provably space-efficient parallel functional programmingJatin Arora, Sam Westrick, Umut A. AcarPOPL 2021 · 9 次引用

相关 Paper

  1. Pure Borrow: Linear Haskell Meets Rust-Style BorrowingYusuke Matsushita, Hiromi IshiiPLDI 2026
  2. Explicit Effects and Effect Constraints in ReMLMartin ElsmanPOPL 2024 · 4 次引用
  3. Parallelism in a Region Inference ContextMartin Elsman, Troels HenriksenPLDI 2023 · 2 次引用
  4. Descend: A Safe GPU Systems Programming LanguageBastian Köpcke, Sergei Gorlatch, Michel SteuwerPLDI 2024 · 7 次引用
  5. Reachability types: tracking aliasing and separation in higher-order functional programsYuyan Bao, Guannan Wei, Oliver Bracevac, Yuxuan Jiang 等OOPSLA 2021 · 19 次引用
黄昏的海面,两侧是细线勾勒的悬崖