by chrisfarms · 11y ago · 0 comments
CandyJS looks much simpler. Good work.
About the pool of workers, they share the stack? Or how you keep the same status on each.
The use case I had was along the lines of:
* Bind/Expose a bunch of Go functions to N JS worker contexts.
* Execute a large queue of JS-functions using the workers.
Spidermonkey did actually have a way to do a kind of shallow copy of a context and save/restore stack, which shared state, however this actually ended up making things much slower for my use as it required locking the threads and constantly copying stacks.