Node - 21st Century Concurrency

2009-11-11 00:00:00 +0000 by Alex R. Young

Node is event-based IO for V8 JavaScript. It provides an alternative
approach for building non-blocking scalable programs using a model
inspired by EventMachine and

Here's an example taken from nodejs.org:

var sys = require('sys'),
   http = require('http');

http.createServer(function (req, res) {
  setTimeout(function () {
    res.sendHeader(200, {'Content-Type': 'text/plain'});
    res.sendBody('Hello World');
  }, 2000);

sys.puts('Server running at');

Node's features include events, timers, child processes, POSIX, TCP,
modules (from CommonJS) and there's even a REPL for experimenting. For
more information, visit: