News for hackers. Stuff that matters.
Re:For the Love of Pipes by arianvanp on Tuesday January 22, 2019 @06:40AM (#18967576)
It is! It's the main way of programming in lazy functional programming languages like Haskell

And many programming languages have libraries for something similar:. iterators in rust / c++, streams in java/c#, thinks like reactive

Re:For the Love of Pipes by benj111 on Tuesday January 22, 2019 @06:52AM (#18967620)
Haskell was the only possible I found.

Iterators don't really fully capture what a pipe is though? Theres no parallelism.

And streams don't have the conceptual simplicity of a pipe?

Re:For the Love of Pipes by masklinn on Tuesday January 22, 2019 @07:09AM (#18967680)
> Iterators don't really fully capture what a pipe is though? Theres no parallelism.

Pipes are concurrent, not necessarily parallel. Iterators are concurrent, and can be parallel (https://docs.rs/rayon/0.6.0/rayon/par_iter/index.html).