News for hackers. Stuff that matters.
Re:An open question (rant) about Node.js by dharbin on Friday March 14, 2014 @12:21PM (#7399854)
Threads are more difficult than writing event-loop based code IMO
Re:An open question (rant) about Node.js by EGreg on Friday March 14, 2014 @12:40PM (#7400025)
Not just more difficult. Threads are really wasteful to spawn just so you can hit 10 shards. Even if you have a thread pool. Evented I/O is much better than threads.

When NGiNX launched, it was the evented web server in a sea of threaded servers. Guess which paradigm won.

Re:An open question (rant) about Node.js by bascule on Friday March 14, 2014 @01:05PM (#7400199)
It's not a dichotomy. The answer is that both models are useful, and most systems support hybrid threaded and evented modes. Node.js only supports one model, which is a huge drawback.
Re:An open question (rant) about Node.js by pswenson on Saturday March 15, 2014 @02:45PM (#7405697)
threads don't have to be more difficult. check out actors.

Meteor seems to think threads are the way to go (Fibers)