Skip to main navigation Skip to search Skip to main content

Stream Types

  • Joseph W. Cutler
  • , Christopher Watson
  • , Emeka Nkurumeh
  • , Phillip Hilliard
  • , Harrison Goldstein
  • , Caleb Stanford
  • , Benjamin C. Pierce
  • University of Pennsylvania
  • California Institute of Technology

Research output: Contribution to journalArticlepeer-review

5 Scopus citations

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-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 λST, we present a number of examples written in Delta, a prototype high-level language design based on λST.

Original languageEnglish
Article number204
JournalProceedings of the ACM on Programming Languages
Volume8
DOIs
StatePublished - Jun 20 2024

Keywords

  • Bunched Implication
  • Ordered Logic
  • Stream Processing
  • Type Systems

Fingerprint

Dive into the research topics of 'Stream Types'. Together they form a unique fingerprint.

Cite this