3 ms·
...backpressure (used in reactive GUI IIRC)... And unix pipes, and node.js streams... Your intuition about a middle ground is interesting. Perhaps one of java
by jessaustin 11y ago
...backpressure (used in reactive GUI IIRC)...
And unix pipes, and node.js streams...
Your intuition about a middle ground is interesting. Perhaps one of javascript's derivative languages could come up with some syntax to make using this more intuitive, because let's face it node.js streams would be easier to use if there were some way of plumbing them together that didn't look like Java from 1999.
- agumonkey 11y agoRight any streams. Also this https://github.com/dominictarr/pull-stream#transparent-backpressure--laziness https://github.com/dominictarr/pull-stream#transparent-backp... article says reducers are related too.
- buttproblem 11y agoI don't know node, but, conceptually, Arrows [1] map to the steam concept very well (as always in Haskell, they are more general). The sugar in Haskell to use them similar to do-notion is really a joy to use. I was exposed to them in the Haskell music library Euterpea in the Haskell School of Music [2]. The signal processing API uses arrows. [1] Generalizing Monads to Arrows. John Hughes. http://www.cse.chalmers.se/~rjmh/Papers/arrows.pdf http://www.cse.chalmers.se/~rjmh/Papers/arrows.pdf [2] http://haskell.cs.yale.edu/?post_type=publication&p=112 http://haskell.cs.yale.edu/?post_type=publication&p=112
- codygman 11y ago> Perhaps one of javascript's derivative languages could come up with some syntax to make using this more intuitive You might want to checkout purescript, which I'm pretty sure uses Monads to make stream interaction intuitive. No time for an example, but I believe there is one somewhere in the Purescript book[0]. 0: https://leanpub.com/purescript/read https://leanpub.com/purescript/read