paperbot · PL 论文追踪

全部论文 待读 收藏

P2 Partially-static data as free extension of algebras

部分静态数据作为代数的自由扩张
ICFP 2(ICFP)2018匹配度 2/10 · 该论文属于程序语言理论中的部分静态数据结构与代数自由扩张,偏形式语义与编译优化,与用户关注的 PL→AI/Agentic 静态分析、AI→PL、浮点程序分析及贝叶斯程序分析均无直接交集;仅作为广义 PL 理论背景有一定相关性。引用 11 inbox
Jeremy Yallop, Tamara von Glehn, Ohad Kammar
crossref: 2026-09-10

AI 速览

一句话:用代数自由扩张统一刻画部分静态数据结构,并据此构建常见代数结构的库。

部分静态数据结构通过混合静态与动态信息改善绑定时间,但常缺乏统一框架,难以充分利用各操作对应的等式。本文提出一种基础视角:将部分静态数据结构视为合适等式理论下代数的自由扩张,即代数与自由代数在代数同态范畴中的余积。通过预计算这些自由扩张,作者构造了一个高层库,为常见代数结构提供部分静态数据表示。该库在字符串与列表操作、线性代数、数值化简等文献用例上得到展示,说明该方法能系统化、可复用地实现部分静态优化。

问题
部分静态数据结构缺少统一理论基础,现有定义多为 ad-hoc,不能保证充分利用每个操作对应的等式。
方法
将部分静态数据结构建模为等式理论下代数的自由扩张(代数与自由代数的余积),并预计算自由扩张以实现可复用的库。
评估
通过字符串与列表操作、线性代数、数值化简等常见用例展示库的实用性。
原文摘要(Abstract)

Partially-static data structures are a well-known technique for improving binding times. However, they are often defined in an ad-hoc manner, without a unifying framework to ensure full use of the equations associated with each operation. We present a foundational view of partially-static data structures as free extensions of algebras for suitable equational theories, i.e. the coproduct of an algebra and a free algebra in the category of algebras and their homomorphisms. By precalculating these free extensions, we construct a high-level library of partially-static data representations for common algebraic structures. We demonstrate our library with common use-cases from the literature: string and list manipulation, linear algebra, and numerical simplification.

链接与引用

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

BibTeX
@article{paperbot288,
  title = {Partially-static data as free extension of algebras},
  author = {Jeremy Yallop and Tamara von Glehn and Ohad Kammar},
  journal = {Proceedings of the ACM on Programming Languages},
  volume = {2},
  number = {ICFP},
  year = {2018},
  doi = {10.1145/3236795}
}