paperbot · PL 论文追踪

RSS

Monadic compiler calculation (functional pearl)

ICFP 6(ICFP)2022
Patrick Bahr, Graham Hutton

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

原文摘要(Abstract)

Bahr and Hutton recently developed a new approach to calculating correct compilers directly from specifications of their correctness. However, the methodology only considers converging behaviour of the source language, which means that the compiler could potentially produce arbitrary, erroneous code for source programs that diverge. In this article, we show how the methodology can naturally be extended to support the calculation of compilers that address both convergent and divergent behaviour simultaneously , without the need for separate reasoning for each aspect. Our approach is based on the use of the partiality monad to make divergence explicit, together with the use of strong bisimilarity to support equational-style calculations, but also generalises to other forms of effect by changing the underlying monad.

链接与引用

DOI 原文 ·

BibTeX
@article{paperbot1481,
  title = {Monadic compiler calculation (functional pearl)},
  author = {Patrick Bahr and Graham Hutton},
  journal = {Proceedings of the ACM on Programming Languages},
  volume = {6},
  number = {ICFP},
  year = {2022},
  doi = {10.1145/3547624}
}