Rich Hickey – Inside Transducers [video]
youtube.com
Rich Hickey – Inside Transducers [video]
1–10 of 50 posts
Re: Rich Hickey – Inside Transducers [video]
#2Transducers overall are quite intressting, I am exited to see what other transducer context people come up with.
Re: Rich Hickey – Inside Transducers [video]
#3Re: Rich Hickey – Inside Transducers [video]
#4For those not familiar with Clojure, here's a great demonstration of the concept done up in JavaScript: http://jlongster.com/Transducers.js--A-JavaScript-Library-fo...
"The reduce function is the base transformation; any other transformation can be expressed in terms of it (map, filter, etc)."
This seems so obvious in retrospect -- I can't believe I had never made that connection before.
Re: Rich Hickey – Inside Transducers [video]
#5For those not familiar with Clojure, here's a great demonstration of the concept done up in JavaScript: http://jlongster.com/Transducers.js--A-JavaScript-Library-fo...
From that link: "The reduce function is the base transformation; any other transformation can be expressed in terms of it (map, filter, etc)." This seems so obvious in retrospect -- I can't believe I had never made that connection before.
For JS, I personally prefer lo-dash for this kind of work, or dropping in polyfills from MDN.
For some context, here are .map functions applied to normal arrays http://jsperf.com/native-vs-array-js-vs-underscore/54
I've been looking for similar libraries that work on typed-arrays because they are so much more efficient when working with web-workers or with raw canvas data. My attempts at hacking it in feel like they are just bad ideas: http://jsperf.com/float32array-map/2
Re: Rich Hickey – Inside Transducers [video]
#6- it was referenced in this great post detailing the transducer notion with Clojure, Scala, and Haskell: http://blog.podsnap.com/ducers2.html
Re: Rich Hickey – Inside Transducers [video]
#7For those not familiar with Clojure, here's a great demonstration of the concept done up in JavaScript: http://jlongster.com/Transducers.js--A-JavaScript-Library-fo...
From that link: "The reduce function is the base transformation; any other transformation can be expressed in terms of it (map, filter, etc)." This seems so obvious in retrospect -- I can't believe I had never made that connection before.
Re: Rich Hickey – Inside Transducers [video]
#8For those not familiar with Clojure, here's a great demonstration of the concept done up in JavaScript: http://jlongster.com/Transducers.js--A-JavaScript-Library-fo...
(Shameless plug in the hope it may be helpful to someone)
[1]: http://simplectic.com/blog/2014/transducers-explained-1/
Re: Rich Hickey – Inside Transducers [video]
#9Earlier quoted context omitted.
From that link: "The reduce function is the base transformation; any other transformation can be expressed in terms of it (map, filter, etc)." This seems so obvious in retrospect -- I can't believe I had never made that connection before.
I had a similar epiphany while learning about regular expressions in Perl. That connection with text processing is what helped me understand list comprehensions. They seem strikingly similar. For JS, I personally prefer lo-dash for this kind of work, or dropping in polyfills from MDN. For some context, here are .map functions applied to normal arrays http://jsperf.com/native-vs-array-js-vs-underscore/54 I've been loo…
Re: Rich Hickey – Inside Transducers [video]
#10Earlier quoted context omitted.
I had a similar epiphany while learning about regular expressions in Perl. That connection with text processing is what helped me understand list comprehensions. They seem strikingly similar. For JS, I personally prefer lo-dash for this kind of work, or dropping in polyfills from MDN. For some context, here are .map functions applied to normal arrays http://jsperf.com/native-vs-array-js-vs-underscore/54 I've been loo…
Most people use underscore/lodash for this stuff. The difference is that the js transducers libraries don't create intermediate arrays, only do enough work to produce the requested output, and work on top of anything that can be coerced into the iteration protocol. I've seen demos of using Facebook's Immutable JS, CSP.js [1], and I don't see why you couldn't put them on top of Typed Arrays or a FRP library like Kefir…