Better HN
topnewbestaskshowjobs
Log inSign up

caolanmcmahon

6 karma · joined Feb 14, 2014 (12y ago) · 5 submissions

Submissions

comment 12y ago · link · parent

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!

comment 12y ago · link · parent

Rx doesn't handle back-pressure or laziness, so it's for only really for handling events.

comment 12y ago · link · parent

I think I'm getting the hang of HN ;)

comment 12y ago · link · parent

var Highland = require('highland');

comment 12y ago · link · parent

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.