News for hackers. Stuff that matters.
Re:Why I went from Python to Go (and not node.js) by MatthewPhillips on Friday September 14, 2012 @06:08PM (#4524246)

  os.cpus().forEach(cluster.fork)
Should be:

  os.cpus().forEach(cluster.fork.bind(cluster));
Re:Why I went from Python to Go (and not node.js) by ricardobeat on Friday September 14, 2012 @06:12PM (#4524263)
That's not needed. The API is designed so that you can do

    var fork = require('cluster').fork
Cluster methods keep a reference to the main object inside the module, see https://github.com/joyent/node/blob/master/lib/cluster.js#L4...