Node Roundup: 0.5.2, OSCON Slides, node-language-detect, d3bench

2011-07-27 00:00:00 +0100 by Alex R. Young
You can send your node modules and articles in for review through our [contact form](/contact.html) or [@dailyjs](http://twitter.com/dailyjs).

Node 0.5.2

Node 0.5.2 was released last week:

#1357 in particular should prove to be popular. It allows JSON files to be required, so a
JSON configuration can now be loaded like this:

var config = require('./config.json');

OSCON Node 0.5 Slides

Ryan Dahl posted his OSCON 2011 slides to
. The
slides are here: nodejs.org/oscon.pdf.
These slides have more details on the work going into Windows Node

With the support of Microsoft, Cloudkick, and Joyent we have four person team sponsored to complete the project. The ultimate result will be an official node.exe distribution.


Replacing the binding layer is difficult. Everything will be broken for a while. All new code is set alongside existing bindings until it is good enough to be used by default.

It looks like a short talk, but it's encouraging for Windows-based

There's a lot of support growing for libuv:

Only took 1h to make Redis use libuv by @ryah et al. Very usable socket interface sugar coated with platform independence. Love it!

- @pnoordhuis


node-language-detect (npm: languagedetect) by Francois-Guillaume Ribreau is a language detection module:

var lngDetector = new (require('languagedetect'));
console.log(lngDetector.detect('This is a test.'));

  [ [ 'english', 0.5969230769230769 ],
  [ 'hungarian', 0.407948717948718 ],
  [ 'latin', 0.39205128205128204 ],
  [ 'french', 0.367948717948718 ],
  [ 'portuguese', 0.3669230769230769 ],
  [ 'estonian', 0.3507692307692307 ],
  [ 'latvian', 0.2615384615384615 ],
  [ 'spanish', 0.2597435897435898 ],
  [ 'slovak', 0.25051282051282053 ],
  [ 'dutch', 0.2482051282051282 ],
  [ 'lithuanian', 0.2466666666666667 ],
  ... ]

The Hungarian result in the example surprised me, but the library ships
with tests and seems a lot faster than the original module that the
author has ported.


Ryan Dahl posted a little benchmarking app to GitHub recently called
d3bench. It's made using Express, Socket.IO, and D3.

I was more interested in seeing how Ryan builds Node apps than actually
using d3bench, but if anything it'll probably inspire Node developers to take another look at D3.