News for hackers. Stuff that matters.
Re:Node.js powers comet for plurk (100k+ users at once) by amix on Saturday January 30, 2010 @04:04PM (#1089259)
There are two reasons why I picked JavaScript. First, V8+node.js is an amazing runtime system. One should remember that V8 is implemented by a highly skilled Google team that's led by Lars Bak - who was the lead architect for Java's HotSpot VM (the current VM that's used in Java...) So first choice, performance. node.js is also very small in size, so I figured out I could patch if anything wasn't working.

The second reason to pick JavaScript is that it's already geared towards event based programming, because of following things:

   events in browsers and
   closures are a natural part of the language, e.g.
   document.addEventListener("click", function()...
Event based programming is needed to implement highly scaleable non-blocking servers. So JavaScript is a really good match...

And really, JavaScript is a great language and it can emulate almost any paradigm that you may like. node.js also introduces a module system which makes it much easier to manage code. JavaScript isn't perfect and there's tons of bad code written for it, but it's possible to create beautiful code in JavaScript :-)

Re:Node.js powers comet for plurk (100k+ users at once) by tumult on Saturday January 30, 2010 @04:27PM (#1089292)
Cool, thanks