Lune

PLDI2023Top-tier venue

Efficient Parallel Functional Programming with Effects

Jatin Arora, Sam Westrick, Umut A. Acar

Abstract

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.

Ask Lune

Know this paper in minutes, not an afternoon.

Lune can read every page of it and the top-tier papers that cite it, and gives you its claims, its evidence and its limits, each one cited to the paper it comes from. No skimming, no AI slop.

5 top-tier papers have cited it since. Know what they found before your reviewers do.

Questions to start from

Lune can draw on

the full paper · the top-tier papers that cite it · related work

Get the answer

Free to start. No credit card required.

Lineage

  • TypeDis: A Type System for Disentanglement cites Disentanglement in nested-parallel programs
  • TypeDis: A Type System for Disentanglement cites Disentanglement with Futures, State, and Interaction
  • TypeDis: A Type System for Disentanglement cites Provably space-efficient parallel functional programming
  • TypeDis: A Type System for Disentanglement cites DisLog: A Separation Logic for Disentanglement
  • Disentanglement with Futures, State, and Interaction cites Responsive parallelism with futures and state
  • Disentanglement with Futures, State, and Interaction cites Disentanglement in nested-parallel programs
  • Disentanglement with Futures, State, and Interaction cites Provably space-efficient parallel functional programming
  • Provably space-efficient parallel functional programming cites Responsive parallelism with futures and state
  • Provably space-efficient parallel functional programming cites Disentanglement in nested-parallel programs
  • Automatic Parallelism Management cites Responsive parallelism with futures and state
  • Automatic Parallelism Management cites Disentanglement in nested-parallel programs
  • Automatic Parallelism Management cites Provably space-efficient parallel functional programming
  • DisLog: A Separation Logic for Disentanglement cites Disentanglement in nested-parallel programs
  • DisLog: A Separation Logic for Disentanglement cites Provably space-efficient parallel functional programming
Builds onCited byLeft to right by year; the more cited, the higher.

Cited by top-tier papers5

  1. Automatic Parallelism ManagementSam Westrick, Matthew Fluet, Mike Rainey, Umut A. AcarPOPL 2024 · 7 citations
  2. TypeDis: A Type System for DisentanglementAlexandre Moine, Stephanie Balzer, Alex Xu, Sam WestrickPOPL 2026 · 1 citation
  3. Iso: Request-Private Garbage CollectionTianle Qiu, Stephen M. BlackburnPLDI 2025 · 1 citation
  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

Builds on4

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

Related papers

  1. Pure Borrow: Linear Haskell Meets Rust-Style BorrowingYusuke Matsushita, Hiromi IshiiPLDI 2026
  2. Explicit Effects and Effect Constraints in ReMLMartin ElsmanPOPL 2024 · 4 citations
  3. Parallelism in a Region Inference ContextMartin Elsman, Troels HenriksenPLDI 2023 · 2 citations
  4. Descend: A Safe GPU Systems Programming LanguageBastian Köpcke, Sergei Gorlatch, Michel SteuwerPLDI 2024 · 7 citations
  5. Reachability types: tracking aliasing and separation in higher-order functional programsYuyan Bao, Guannan Wei, Oliver Bracevac, Yuxuan Jiang et al.OOPSLA 2021 · 19 citations
Dusk over the sea between two cliffs drawn in fine vertical lines