James M Snell
James M Snell
> If it's true that this is a server-focused problem and doesn't matter for browsers I would not characterize it like that. It's a problem for any environment where you're...
FWIW, I do have a path forward for addressing this issue within the Workers implementation that does not require any public API changes. The changes are entirely internal to the...
The key drawback is really just the increase in bookkeeping complexity for the internal queue. Within the next couple of weeks I'm going to take a stab at writing up...
Piscina runs on Node.js and uses Node.js module loading mechanisms. You'll need to transpile typescript files to JavaScript (either commonjs or ESM).
It comes down to a question of when to use threads vs. processes and the answer would typically be to use threads when you need fast communication and shared memory...
Going to leave this open as a feature request for Piscina to offer a worker child process model. Not sure when we'll be able to get to implementing it but...
It's entirely likely that we can drop the dependency on hdr-histogram in a new major release and depend directly on the createHistogram() function in Node.js. There are some API differences...
It'll take a while before we can rely on it being available in all supported versions, but https://github.com/nodejs/node/pull/41246 merges one of the dependencies here into node.js core.
There's nothing there to signal that the application is shutting down, but there is the `drain` event that will fire when the task queue is empty. When your application is...
Node.js uses the structured clone algorithm for messaging across threads. Custom objects (subclasses, your own class objects, etc) are not supported fully by the structured clone algorithm. Error objects will...