napajs icon indicating copy to clipboard operation
napajs copied to clipboard

What is the difference between `worker_threads` and `napajs`?

Open whtiehack opened this issue 7 years ago • 1 comments

I am new to nodejs and want to know the difference between these two modules.

What are the similarities and differences between the usage scenarios of these two modules? Or should I go to node to ask this question? Thanks.

whtiehack avatar Jun 27 '18 11:06 whtiehack

As I understand it, one main difference is that napajs goes much further than what’s currently built into Node.js – you can actually share and transfer JavaScript objects between the different threads.

That requires modifications of the JS engine, though. I’d love to eventually see something like this here end up in Node.js’s own Worker support, too.

addaleax avatar Jun 27 '18 11:06 addaleax