caolanmcmahon
Re:How I want to write Node: Stream all the things
on Friday February 14, 2014 @04:36PM (#7241137)
RxJS advocates are unhappy with this comment so I'm going to qualify it a little. Apologies for any misunderstanding...
Rx doesn't handle automatic back-pressure (like Node Streams) but does have mechanisms to avoid overwhelming slow consumers. Rx also has delayed subscription which you can call lazy, but not by turning the stream into a pull-stream (allowing you to sequence actions in the way Highland does).
If any of the above needs further qualification or comment please weigh in on the issue by commenting here... but for now I'll leave it at that. I actually list RxJS in the blogpost because it's a good example!
Re:How I want to write Node: Stream all the things
on Friday February 14, 2014 @01:32PM (#7240108)
Rx doesn't handle back-pressure or laziness, so it's for only really for handling events.
Re:How I want to write Node: Stream all the things
on Friday February 14, 2014 @01:31PM (#7240099)
I think I'm getting the hang of HN ;)
Re:How I want to write Node: Stream all the things
on Friday February 14, 2014 @01:21PM (#7240041)
var Highland = require('highland');
Re:How I want to write Node: Stream all the things
on Friday February 14, 2014 @12:53PM (#7239871)
Good idea, I'll definitely post a follow-up with some real code done using async/callbacks and highland/streams. The comparisons usually start to look more favourable with longer examples, due to the Highland API being so composable.