Cargando…

Semantic Foundations for Deterministic Dataflow and Stream Processing

We propose a denotational semantic framework for deterministic dataflow and stream processing that encompasses a variety of existing streaming models. Our proposal is based on the idea that data streams, stream transformations, and stream-processing programs should be classified using types. The typ...

Descripción completa

Detalles Bibliográficos
Autor principal: Mamouras, Konstantinos
Formato: Online Artículo Texto
Lenguaje:English
Publicado: 2020
Materias:
Acceso en línea:https://www.ncbi.nlm.nih.gov/pmc/articles/PMC7702246/
http://dx.doi.org/10.1007/978-3-030-44914-8_15
_version_ 1783616575636504576
author Mamouras, Konstantinos
author_facet Mamouras, Konstantinos
author_sort Mamouras, Konstantinos
collection PubMed
description We propose a denotational semantic framework for deterministic dataflow and stream processing that encompasses a variety of existing streaming models. Our proposal is based on the idea that data streams, stream transformations, and stream-processing programs should be classified using types. The type of a data stream is captured formally by a monoid, an algebraic structure with a distinguished binary operation and a unit. The elements of a monoid model the finite fragments of a stream, the binary operation represents the concatenation of stream fragments, and the unit is the empty fragment. Stream transformations are modeled using monotone functions on streams, which we call stream transductions. These functions can be implemented using abstract machines with a potentially infinite state space, which we call stream transducers. This abstract typed framework of stream transductions and transducers can be used to (1) verify the correctness of streaming computations, that is, that an implementation adheres to the desired behavior, (2) prove the soundness of optimizing transformations, e.g. for parallelization and distribution, and (3) inform the design of programming models and query languages for stream processing. In particular, we show that several useful combinators can be supported by the full class of stream transductions and transducers: serial composition, parallel composition, and feedback composition.
format Online
Article
Text
id pubmed-7702246
institution National Center for Biotechnology Information
language English
publishDate 2020
record_format MEDLINE/PubMed
spelling pubmed-77022462020-12-01 Semantic Foundations for Deterministic Dataflow and Stream Processing Mamouras, Konstantinos Programming Languages and Systems Article We propose a denotational semantic framework for deterministic dataflow and stream processing that encompasses a variety of existing streaming models. Our proposal is based on the idea that data streams, stream transformations, and stream-processing programs should be classified using types. The type of a data stream is captured formally by a monoid, an algebraic structure with a distinguished binary operation and a unit. The elements of a monoid model the finite fragments of a stream, the binary operation represents the concatenation of stream fragments, and the unit is the empty fragment. Stream transformations are modeled using monotone functions on streams, which we call stream transductions. These functions can be implemented using abstract machines with a potentially infinite state space, which we call stream transducers. This abstract typed framework of stream transductions and transducers can be used to (1) verify the correctness of streaming computations, that is, that an implementation adheres to the desired behavior, (2) prove the soundness of optimizing transformations, e.g. for parallelization and distribution, and (3) inform the design of programming models and query languages for stream processing. In particular, we show that several useful combinators can be supported by the full class of stream transductions and transducers: serial composition, parallel composition, and feedback composition. 2020-04-18 /pmc/articles/PMC7702246/ http://dx.doi.org/10.1007/978-3-030-44914-8_15 Text en © The Author(s) 2020 Open Access This chapter is licensed under the terms of the Creative Commons Attribution 4.0 International License (http://creativecommons.org/licenses/by/4.0/), which permits use, sharing, adaptation, distribution and reproduction in any medium or format, as long as you give appropriate credit to the original author(s) and the source, provide a link to the Creative Commons license and indicate if changes were made. The images or other third party material in this chapter are included in the chapter's Creative Commons license, unless indicated otherwise in a credit line to the material. If material is not included in the chapter's Creative Commons license and your intended use is not permitted by statutory regulation or exceeds the permitted use, you will need to obtain permission directly from the copyright holder.
spellingShingle Article
Mamouras, Konstantinos
Semantic Foundations for Deterministic Dataflow and Stream Processing
title Semantic Foundations for Deterministic Dataflow and Stream Processing
title_full Semantic Foundations for Deterministic Dataflow and Stream Processing
title_fullStr Semantic Foundations for Deterministic Dataflow and Stream Processing
title_full_unstemmed Semantic Foundations for Deterministic Dataflow and Stream Processing
title_short Semantic Foundations for Deterministic Dataflow and Stream Processing
title_sort semantic foundations for deterministic dataflow and stream processing
topic Article
url https://www.ncbi.nlm.nih.gov/pmc/articles/PMC7702246/
http://dx.doi.org/10.1007/978-3-030-44914-8_15
work_keys_str_mv AT mamouraskonstantinos semanticfoundationsfordeterministicdataflowandstreamprocessing