https://github.com/classfellow/rcib
RCIB(running codes in background js) is a node.js package for providing ability to run js codes in background or a way to extend node.js by C++ closures. RCIB relove cpu-bound tasks for node.js, it works as follow picture: <https://lh3.googleusercontent.com/-BYce2o-UXYE/VkML-qHCj1I/AAAAAAAAAAs/riJOJAXxels/s1600/rcib-interpret.png> you use it like this: rcib.postTask( path.join(__dirname, './background.js'), 'globalFunction2', JSON.stringify({a:100, b: 200}), function (err, value) { if(err) console.error(err) else console.log(value) }) globalFunction2 is a CPU-intensive work in background js, it runs in other thread, when finished ,callback will run in main loop. -- Job board: http://jobs.nodejs.org/ New group rules: https://gist.github.com/othiym23/9886289#file-moderation-policy-md Old group rules: https://github.com/joyent/node/wiki/Mailing-List-Posting-Guidelines --- You received this message because you are subscribed to the Google Groups "nodejs" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To post to this group, send email to [email protected]. To view this discussion on the web visit https://groups.google.com/d/msgid/nodejs/a42cb385-d8e5-4551-af42-f0bbd882d42c%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.
