Proposal of Multithread JavaScript

doodad-js Admin doodadjs at gmail.com
Fri Nov 4 07:16:11 UTC 2016


> I'm guessing you're not too terribly familiar with Node's `cluster` module? It provides several primitives for building process pools, and is fairly simple to use. Usually, people use it directly, not with a general process pool abstraction.
>
>https://nodejs.org/api/cluster.html
>
>It's more useful on the server than the client, though.
>
>(Oh, and processes are comparatively cheap in Linux.)

That requires IPC to exchange data between the master and slaves. And currently, IPC is implemented with JSON.stringify/JSON.parse.

Using threads and shared objects, IPC and serialization/deserialization of objects will no longer be required.



More information about the es-discuss mailing list