News for hackers. Stuff that matters.
Re:Introducing NowJS or "How to make a chat server in 12 lin... by substack on Saturday March 12, 2011 @12:44AM (#2316135)
The solution I settled on for dnode is that a deep traversal finds all the functions in your argument list, pulls them out, and wraps them. This part of the protocol is a reusable module if you want to go with it:

https://github.com/substack/dnode-protocol

It's written for continuation-passing style but it shouldn't be too hard to retrofit it for other call styles if you want to preserve explicit returns for instance.

Re:Introducing NowJS or "How to make a chat server in 12 lin... by ericz on Saturday March 12, 2011 @12:46AM (#2316137)
Awesome. I'm looking into this for next release
Re:Introducing NowJS or "How to make a chat server in 12 lin... by beej71 on Saturday March 12, 2011 @02:16PM (#2317249)
You guys have the hacker nature. I dig it.