kirancodes.me
To Proof Maintenance & Beyond!

Fusing effectful comprehensions

Olli Saarikivi, Margus Veanes, Todd Mytkowicz, Madan Musuvathi

Abstract

List comprehensions provide a powerful abstraction mechanism for expressing computations over ordered collections of data declaratively without having to use explicit iteration constructs. This paper puts forth effectful comprehensions as an elegant way to describe list comprehensions that incorporate loop-carried state. This is motivated by operations such as compression/decompression and serialization/deserialization that are common in log/data processing pipelines and require loop-carried state when processing an input stream of data.

Related papers