paperbot · PL 论文追踪

RSS

AUTOMAP: Inferring Rank-Polymorphic Function Applications with Integer Linear Programming

OOPSLA 8(OOPSLA2)2024引用 2
Robert Schenck, Nikolaj Hey Hinnerskov, Troels Henriksen, Magnus Madsen, Martin Elsman

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

原文摘要(Abstract)

Dynamically typed array languages such as Python, APL, and Matlab lift scalar operations to arrays and replicate scalars to fit applications. We present a mechanism for automatically inferring map and replicate operations in a statically-typed language in a way that resembles the programming experience of a dynamically-typed language while preserving the static typing guarantees. Our type system—which supports parametric polymorphism, higher-order functions, and top-level let-generalization—makes use of integer linear programming in order to find the minimum number of operations needed to elaborate to a well-typed program. We argue that the inference system provides useful and unsurprising guarantees to the programmer. We demonstrate important theoretical properties of the mechanism and report on the implementation of the mechanism in the statically-typed array programming language Futhark.

链接与引用

DOI 原文 · PDF(开放获取) · DBLP

BibTeX
@article{0001HHME24,
  title = {AUTOMAP: Inferring Rank-Polymorphic Function Applications with Integer Linear Programming},
  author = {Robert Schenck and Nikolaj Hey Hinnerskov and Troels Henriksen and Magnus Madsen and Martin Elsman},
  journal = {Proceedings of the ACM on Programming Languages},
  volume = {8},
  number = {OOPSLA2},
  year = {2024},
  doi = {10.1145/3689774}
}