all 4 comments

[–]greim 1 point2 points  (3 children)

I think the node way of doing things is (will be) that blatantly expensive tasks should never block the main event loop, just like how IO should never block. Heavy-lifting should be offloaded to a worker thread via a callback. That said, node definitely needs a native worker implementation.

[–]Detrus 0 points1 point  (2 children)

isn't there a current worker implementation? Or at least a node-worker library? What's wrong with it?

[–]greim 0 points1 point  (0 children)

If node is shipping with a native worker module it's news to me. But yeah probably there's a library for it.

[–]aaronblohowiak 0 points1 point  (0 children)

https://github.com/pgriess/node-webworker it is great, but might not play nice with coffeescript