跳到正文
EasyXiv 检索
投稿 关于 登录

按回车检索 · 直接输入编号(如 1706.03762)可跳转到论文

计算机科学 > 程序设计语言

arXiv:2601.08529 (cs)
[提交于 2026年1月13日]

标题:Formalization and Implementation of Safe Destination Passing in Pure Functional Programming Settings

作者:Thomas Bagrel
查看论文《Formalization and Implementation of Safe Destination Passing in Pure Functional Programming Settings》的 PDF
查看中文 PDF 查看原文 PDF EasyResearch 阅读
摘要:Destination-passing style programming introduces destinations, which represent the address of a write-once memory cell. These destinations can be passed as function parameters, allowing the caller to control memory management: the callee simply fills the cell instead of allocating space for a return value. While typically used in systems programming, destination passing also has applications in pure functional programming, where it enables programs that were previously unexpressible using usual immutable data structures. In this thesis, we develop a core {\lambda}-calculus with destinations, {\lambda_d}. Our new calculus is more expressive than similar existing systems, with destination passing designed to be as flexible as possible. This is achieved through a modal type system combining linear types with a system of ages to manage scopes, in order to make destination-passing safe. Type safety of our core calculus was proved formally with the Coq proof assistant. Then, we see how this core calculus can be adapted into an existing pure functional language, Haskell, whose type system is less powerful than our custom theoretical one. Retaining safety comes at the cost of removing some flexibility in the handling of destinations. We later refine the implementation to recover much of this flexibility, at the cost of increased user complexity. The prototype implementation in Haskell shows encouraging results for adopting destination-passing style programming when traversing or mapping over large data structures such as lists or data trees.
评论: PhD Manuscript, 148 pages. Sources: https://github.com/tweag/tbagrel-phd-manuscript/
主题: 程序设计语言 (cs.PL)
引用方式: arXiv:2601.08529 [cs.PL]
  (或者 arXiv:2601.08529v1 [cs.PL] 对于此版本)
  https://doi.org/10.48550/arXiv.2601.08529
期刊参考: Computer Science [cs]. LORIA (Universit\'e de Lorraine, CNRS, INRIA), 2025. English. <tel-05455981>

提交历史

来自:Thomas Bagrel
[v1] 2026年1月13日 星期二 13:13:38 UTC
全文链接:

访问论文:

  • 查看中文 PDF
  • 查看原文 PDF
  • EasyResearch 阅读
  • TeX 源文件
  • arXiv 原文页面
查看许可

当前浏览上下文:

cs.PL
< 上一篇   |   下一篇 >
最新 | 近期 | 2026-01
切换浏览方式为:
cs

参考文献与引用

  • Google Scholar
  • Semantic Scholar

BibTeX 格式的引用

EasyXiv 是独立运营的中文预印本站点,与 arXiv 及康奈尔大学无隶属关系。 论文元数据与原文来自 arXiv.org,感谢 arXiv 提供开放获取服务。
关于 · 帮助 · 投稿指南 · 版权 · arXiv 原站