So how does node.js work with multi-core processors. I have been hearing a lot of hype the last couple of years lately about multi-threading being a raising issue because multi-core processors will require multi-threaded application to actually take advantage of them. As processor speeds remain stable and adding cores become the new mechanism for boosting power, applications will have to use at least as many threads as there are cores to actually improve their performance. It seems to me that an event loop based architecture would have problems in this scenario.
What's everyone think? I can envision solutions to this problem but I'd rather not contaminate the results, if you know what I mean. Guy On Sun, Jan 2, 2011 at 11:44 AM, Marc Harter <[email protected]> wrote: > On Sun, Jan 2, 2011 at 3: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. > > https://docs.google.com/present/view?id=dzg6rkg_75g3j8qg8n > > I gave a presentation on it not to long ago. Yes, the idea isn't > "new", but the speed of JS engines coupled with the fact that JS has > no notion of I/O has put it in a powerful spot, that Node really has > taken exploited. Also, JS was built for the event loop, in my > experience, many of the languages have added to concept of event loop > to an already blocking system (e.g. Python and Twisted, and Ruby and > EventMachine). I am not familiar with the other languages you > mentioned. The intention of Node wasn't to build a system that could > run code both client and server same stack (although that has turned > out to be a plus). It was focused on nonblocking I/O and event driven > servers and performance. > > Hope that helps. If you want to dive further, search the the NodeJS > Mailing List or pop this question over there. > > -- > 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]<jsmentors%[email protected]> > -- In the Carboniferous Epoch we were promised abundance for all, By robbing selected Peter to pay for collective Paul; But, though we had plenty of money, there was nothing our money could buy, And the Gods of the Copybook Headings said: "If you don't work you die." -- Rudyard Kipling Check out what I'm working on at http://www.guyroyse.com -- 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]
