|
|
|
|
|
by roelb
2703 days ago
|
|
Fully agree, pipes are awesome, only downside is the potential duplicate serialization/deserialization overhead. Streams in most decent languages closely adhere to this idea. I especially like how node does it, in my opinion one of the best things in node. Where you can simply create cli programs that have backpressure the same as you would work with binary/file streams, while also supporting object streams. process.stdin.pipe(byline()).pipe(through2(transformFunction)).pipe(process.stdout)
|
|