Declarative Control Flow with fs2 Stream – Fabio Labella

Declarative Control Flow with fs2 Stream – Fabio Labella

7.764 Lượt nghe
Declarative Control Flow with fs2 Stream – Fabio Labella
fs2 is a purely functional streaming library, with support for concurrent and nondeterministic merging of arbitrary streams. Concurrency support means that we can use Stream not only to process data in constant memory, but also as a very general abstraction for control flow: whilst IO gives us an excellent model for a single effectful action, assembling behaviour with it often has a very imperative flavour (pure, but still imperative). This talk will introduce fs2 combinators by example, and will hopefully show how we can model control flow in a declarative, high level, composable fashion. In particular, we will focus on concurrent combinators. * Material * Slides: https://systemfw.github.io/TL-Summit-Boston-2018/#/ * Event * Typelevel Summit Boston, March 2018: https://typelevel.org/event/2018-03-summit-boston/ * About Speaker * I’m a Senior Software Engineer based in Edinburgh, UK, working in Scala in the financial industry. I also actively participate in Open Source (as SystemFw): I’m one of the maintainers of fs2, and a contributor to cats, shapeless, http4s and most of the other libraries in the Scala FP ecosystem. I have a passion for helping people master advanced concepts, so hit me up on Gitter if you have a question! * Licensing * This recording is licensed under CC-BY 4.0 (https://creativecommons.org/licenses/by/4.0/).