paperbot · PL 论文追踪

全部论文 待读 收藏

P2 Stream Types

流类型
PLDI 8(PLDI)2024匹配度 1/10 · 该论文属于编程语言类型论与形式语义,研究流类型、核心演算及 Curry-Howard 对应,未涉及机器学习、Agentic 程序、LLM 或静态分析,与用户关注的 PL×AI 交叉方向基本无关。引用 6 inbox
Joseph W. Cutler, Christopher Watson, Emeka Nkurumeh, Phillip Hilliard, Harrison Goldstein, Caleb Stanford, Benjamin C. Pierce
dblp: 2026-09-10crossref: 2026-09-10arxiv: 2026-09-10

AI 速览

一句话:提出流类型理论与核心演算 λ_ST,以顺序/并行组合和迭代算子刻画事件模式与并行结构,支持窗口、标点与分区等流式惯用法。

论文提出一套类型化数据流与流变换器的基础理论。其目标是:流类型应能表达随时间变化的复杂事件序列模式,同时描述流的内部并行结构,以支持并行与分布式系统上的确定性流处理。为此,作者引入流类型,包含顺序组合、并行组合与迭代算子,并给出类型化流上变换器的核心演算 λ_ST,将标点、窗口与并行划分等常见流式惯用法作为一等构造。λ_ST 通过与有序变体的束蕴含逻辑的 Curry-Howard 式对应实现组合式编程,并利用 Brzozowski 式导数实现增量的、基于前缀的操作语义。最后用基于 λ_ST 的原型语言 Delta 中的示例展示其编程风格。

问题
如何设计流类型理论,使其既能表达复杂的事件序列模式,又能描述流的内部并行结构,从而在并行/分布式系统上实现确定性的流处理。
方法
引入含顺序组合、并行组合与迭代算子的流类型,定义类型化流变换器的核心演算 λ_ST,借助与有序束蕴含逻辑的 Curry-Howard 对应及 Brzozowski 式导数给出增量式前缀操作语义,并以 Delta 原型语言展示。
评估
以基于 λ_ST 的 Delta 原型高层语言中的若干示例(标点、窗口、并行划分等)说明所提议类型与演算的表达力和编程风格,属于示例驱动的概念验证。
原文摘要(Abstract)

We propose a rich foundational theory of typed data streams and stream transformers, motivated by two high-level goals. First, the type of a stream should be able to express complex sequential patterns of events over time. And second, it should describe the internal parallel structure of the stream, to support deterministic stream processing on parallel and distributed systems. To these ends, we introduce stream types , with operators capturing sequential composition, parallel composition, and iteration, plus a core calculus λ ST of transformers over typed streams that naturally supports a number of common streaming idioms, including punctuation, windowing, and parallel partitioning, as first-class constructions. λ ST exploits a Curry-Howardlike correspondence with an ordered variant of the Logic of Bunched Implication to program with streams compositionally and uses Brzozowski-style derivatives to enable an incremental, prefix-based operational semantics. To illustrate the programming style supported by the rich types of λ ST , we present a number of examples written in Delta, a prototype high-level language design based on λ ST .

链接与引用

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

BibTeX
@article{abs-2307-09553,
  title = {Stream Types},
  author = {Joseph W. Cutler and Christopher Watson and Emeka Nkurumeh and Phillip Hilliard and Harrison Goldstein and Caleb Stanford and Benjamin C. Pierce},
  journal = {Proceedings of the ACM on Programming Languages},
  volume = {8},
  number = {PLDI},
  year = {2024},
  doi = {10.1145/3656434}
}