Skip to content
This repository has been archived by the owner on Jun 13, 2024. It is now read-only.

What is the difference between worker_threads and napajs? #249

Open
whtiehack opened this issue Jun 27, 2018 · 1 comment
Open

What is the difference between worker_threads and napajs? #249

whtiehack opened this issue Jun 27, 2018 · 1 comment

Comments

@whtiehack
Copy link

whtiehack commented Jun 27, 2018

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.

@addaleax
Copy link

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.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants