paperbot · PL 论文追踪

RSS

Destination Calculus: A Linear 𝜆-Calculus for Purely Functional Memory Writes

OOPSLA 9(OOPSLA1)2025
Thomas Bagrel, Arnaud Spiwack

尚未生成 AI 速览(可能缺少 API key 或等待下次运行补跑)。

原文摘要(Abstract)

Destination passing —aka. out parameters— is taking a parameter to fill rather than returning a result from a function. Due to its apparently imperative nature, destination passing has struggled to find its way to pure functional programming. In this paper, we present a pure functional calculus with destinations at its core. Our calculus subsumes all the similar systems, and can be used to reason about their correctness or extension. In addition, our calculus can express programs that were previously not known to be expressible in a pure language. This is guaranteed by a modal type system where modes are used to manage both linearity and scopes. Type safety of our core calculus was proved formally with the Coq proof assistant.

链接与引用

DOI 原文 ·

BibTeX
@article{paperbot3170,
  title = {Destination Calculus: A Linear 𝜆-Calculus for Purely Functional Memory Writes},
  author = {Thomas Bagrel and Arnaud Spiwack},
  journal = {Proceedings of the ACM on Programming Languages},
  volume = {9},
  number = {OOPSLA1},
  year = {2025},
  doi = {10.1145/3720423}
}