Purely functional, elegant, correct, incremental and composable stream processing that is CPU and memory efficient. This is our (worthy) goal, but where do we start?
This problem space is being extensively explored across a variety of languages and libraries, each with subtly different trade-offs and not-so subtly different APIs and terminology. However, these libraries share common goals, and most share common ancestry from Oleg Kiselyov’s original Iteratee work or its Free Monad based derivatives.
This talk aims to build up an intuition for stream processing in general by first building up the core concepts and language of stream processing, and then grounding those by carefully examining the trade-offs and internals of several productionised implementations. Of particular interest are the pipes and conduits libraries from the Haskell community, and scalaz-stream from the Scala community.
 Repository for workshop code:
 Oleg Kiselyov’s collection of Iteratee related resources:
 The “pipes” library in Haskell - emphasis on principled abstractions and composition:
 The “conduit” library in Haskell - emphasis on speed and resource management:
 The “scalaz-stream” library in Scala - emphasis on pure (non-monadic) processors and clean API, based on machines:
 The “machines” library in Haskell:
 The “machines” library in Scala:
 The “iteratee” library in Haskell - Oleg Kiselyov’s direct implementation:
 The “enumerator” library in Haskell - First attempt at improvements and better library support based on Oleg Kiselyov’s original work:
 Swierstra, W “Data types à la carte”-