News for hackers. Stuff that matters.
Re:Rich Hickey – Inside Transducers [video] by nickik on Thursday November 20, 2014 @11:04PM (#8639758)
Again a more technical talk. I really liked it. Specially the end bit about pipelines, that seams like it would be really usful.

Transducers overall are quite intressting, I am exited to see what other transducer context people come up with.

Re:Rich Hickey – Inside Transducers [video] by moomin on Friday November 21, 2014 @08:55AM (#8641246)
It's not that clear there will be one. Transducers have three steps: begin, during and end. In practice, start is only used for reduce operations and outside of reduce operations end can only be used for its side effects.

There's also definitional issues e.g. can you have an async transducer?

Re:Rich Hickey – Inside Transducers [video] by kbeaty on Friday November 21, 2014 @10:23AM (#8641649)
You can indeed use transducers in asynchronous contexts. In fact, that is what intrigues me most about the abstraction.

Transducers are defined such that you can abstract the context of input, output and iteration and focus on the transformation of each element from an independent source individually. The implementation of each transducer accepts another transformation in a "pipeline" (eventually the output sink) and accepts an input during an external iteration process. The implementation decides what to do with it (map changes with a function, filter ignores certain values with a predicate, etc.) You can also define transducers that send multiple values for each input (think string.split) or some that do not send any until completion (think buffered results).

Since the iteration source and sink are abstracted from the transformation, you can use the same transformation in other contexts (Promises, event streams, IO streams, CSP, etc.)

I've been experimenting with transducers in asynchronous contexts in JavaScript if anyone is interested, for example:

[1]: http://simplectic.com/projects/underscore-transducer/ [2]: http://simplectic.com/projects/underarm/ [3]: https://github.com/transduce/transduce-async [4]: https://github.com/kevinbeaty/transduce-stream [5]: https://github.com/transduce/transduce-push [6]: https://github.com/transduce/transduce-then

Re:Rich Hickey – Inside Transducers [video] by cfeduke on Friday November 21, 2014 @08:57AM (#8641254)
Yes you can have async and blocking transducers. Forward to the point in the video about channels for a discussion.
Re:Rich Hickey – Inside Transducers [video] by moomin on Monday November 24, 2014 @06:32AM (#8651920)
But if you use an async transducer on a channel, it fails. (Actual tested code, sadly.)

Which might be okay, but my basic point that it's definitionally fuzzy still holds.