On Sun, Jan 2, 2011 at 10:27 AM, jemptymethod <[email protected]>wrote:
> I don't get some of the fuss over node.js. Sure, it can be great to > write most of your code, both client and server side in one language. > > But what's all the fuss over the event loop. Like they invented it or > something? It's been part and parcel of other frameworks, and even > the Tcl language, for over two decades. > > It's not that they invented it, it's just that most server-side (web) languages use threads, at least by default. node.js doesn't. So async has become central to the environment. And js with the closures is very good at handling that because js itself is not threaded. Note that node is running on google's v8, which is the same engine as chrome's js engine. Node is not the first sjs flavor, but certainly seems to be the most popular currently. The whole event loop thing is not something you should be worried about as a programmer in node.js, only if you develop node.js itself. As long as you remember that, while inside node.js, all you have is a single thread :) - peter -- To view archived discussions from the original JSMentors Mailman list: http://www.mail-archive.com/[email protected]/ To search via a non-Google archive, visit here: http://www.mail-archive.com/[email protected]/ To unsubscribe from this group, send email to [email protected]
