napajs
napajs copied to clipboard
What is the difference between `worker_threads` and `napajs`?
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.
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.