News for hackers. Stuff that matters.
Re:Now.js: project and review by sthatipamala on Saturday October 29, 2011 @07:43PM (#3173153)
RPC in NowJS is achieved through function stubs. The "client function" that gets run on the server is just a stub function that tells the client to run its own version.

Code is only executed on the machine on which it was defined. There is no toString or eval going on here.

Re:Now.js: project and review by dreamdu5t on Saturday October 29, 2011 @11:39PM (#3173570)
Are there any other libraries that do this? Wouldn't this be fairly trivial to code up utilizing socket.io? Just curious as to what is unique about now.js
Re:Now.js: project and review by jannes on Saturday October 29, 2011 @06:32PM (#3173013)
Why does this have "post mortem" in the title? It is so misleading. Whenever I read "post mortem" in a title I immediately think somebody or something has died (possibly metaphorically). In this case I expected the article to be about an abandoned (dead) project. It was a very confusing read.

Maybe it's because English isn't my native language and the Latin meaning just makes a lot more sense to me.

Re:Now.js: project and review by chc on Saturday October 29, 2011 @07:27PM (#3173119)
"Post mortem" as a noun in English is short for "post mortem examination." It does refer to examining a dead body, but it's a common term in software development as well. It refers to the process of going over a completed project and figuring out what went right and what went wrong.

Jeff Atwood wrote an essay on it a while back if you want to read more about it: http://www.codinghorror.com/blog/2006/11/the-project-postmor...

Re:Now.js: project and review by buu700 on Saturday October 29, 2011 @07:03PM (#3173079)
No, the Latin and English meanings are the same. It isn't 100% clear what the author thought he was saying, though he probably meant a debrief (as guessed by OP).
Re:Now.js: project and review by jethroalias97 on Saturday October 29, 2011 @06:46PM (#3173049)
hmmm, I suppose I've always associated it with some manner of debriefing, i.e. a mission post mortem. But, to avoid confusion I've updated the title.
Re:Now.js: project and review by buu700 on Sunday October 30, 2011 @02:23AM (#3173785)
Edit: Nevermind; see chc's comment.
Re:Now.js: project and review by mnutt on Saturday October 29, 2011 @07:55PM (#3173182)
HAProxy is easy to set up and is probably what he wants, if he plans to scale to multiple machines. But on those machines I'd recommend cluster.js. (http://learnboost.github.com/cluster) It will spawn n child workers, proxy requests to them, and restart them if they die.
Re:Now.js: project and review by edmellum on Saturday October 29, 2011 @08:16PM (#3173227)
It's worth mentioning that clustering will also be built into Node.js 0.6.0 which is being released in the coming week according to the official blog.

Don't know if it's as extendable and pretty as TJ's cluster though.