arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2307.09553cs.PL
收藏

流类型

Stream Types

Joseph W. Cutler, Christopher Watson, Emeka Nkurumeh, Phillip Hilliard, Harrison Goldstein, Caleb Stanford, Benjamin C. Pierce

AI总结:

本文提出流类型及核心演算 lambda-ST,通过顺序组合、并行组合和迭代算子表达流的时序模式与并行结构,并以组合式编程和增量语义支持标点、窗口和并行分区等流处理惯用法。

摘要:

我们提出了一个丰富的类型化数据流和流转换器的基础理论,其动机来自两个高层目标:(1)流的类型应当能够表达事件随时间变化的复杂顺序模式。并且(2)它应当描述流的内部并行结构,以支持在并行和分布式系统上进行确定性的流处理。为了实现这些目标,我们引入了流类型,其算子捕获顺序组合、并行组合和迭代,并给出了一个关于类型化流转换器的核心演算 lambda-ST,它自然地将多种常见流处理惯用法作为一等构造加以支持,包括标点、窗口和并行分区。lambda-ST 利用与 Bunched Implication 逻辑的有序变体之间的 Curry-Howard 式对应关系,以组合方式对流进行编程,并使用 Brzozowski 风格的导数来实现增量的、基于前缀的操作语义。为了说明 lambda-ST 的丰富类型所支持的编程风格,我们给出了若干用 delta 编写的示例;delta 是一种基于 lambda-ST 的原型高层语言设计。

英文摘要:

We propose a rich foundational theory of typed data streams and stream transformers, motivated by two high-level goals: (1) The type of a stream should be able to express complex sequential patterns of events over time. And (2) 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 lambda-ST of transformers over typed streams which naturally supports a number of common streaming idioms, including punctuation, windowing, and parallel partitioning, as first-class constructions. lambda-ST exploits a Curry-Howard-like 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 lambda-ST, we present a number of examples written in delta, a prototype high-level language design based on lambda-ST.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑