hi,
i would like to open a discussion about implementing green threads concept in nodejs/v8.
i have already seen node-fibers but i need the ability to arbitrarily start and stop workers in an efficiently way and assign them to a cluster instance, i.e. to manage scheduling, but without the OS overhead, just like erlang vms do.
ps: i'm researching this topic in order to emulate the erlang vm behaviour in v8, that would be VERY nice and powerful. anyone had already worked on this experiment or similar ones?
I'm going to close this because it's out of scope for this bug tracker. You could try https://github.com/nodejs/NG but honestly, without first-class support from the JS engine, it amounts to little more than wishful thinking and idle speculation.
@bnoordhuis yes of course this request was meant for v8 engine but i cannot find an issue tracker of v8 on github. (they only have a mirror on github).
@phra for the record, v8 issue tracker is here
https://bugs.chromium.org/p/v8/issues/list - but before you create an issue make sure you read up on how V8 works and that you have something actionable. You shouldn't expect anything to happen unless you're willing to put in the work yourself.
just came across these two repos:
just for sharing..
maybe nodejs could implements fibers like fibjs .
Hi! Take a look at coroutines.js, which implements green threads in vanilla js.
Hello! 4 years later:
Most helpful comment
maybe nodejs could implements fibers like fibjs .