Is it possible for WASI to have green threads/fiber? They are use-space lightweight threads that are scheduled by the language runtime, instead of preemptively scheduled by the kernel. Goroutines, Earlang, and Java Loom are all examples of it.
I know there is a proposal to add native threads to WASI, so I am curious to find out if we can take the next step to have green threads in WASI. Would this be a reasonable proposal?
I'm still trying to figure out how to read WebAssembly proposals, but I think the work you want to look at is in the core wasm "stack switching" proposal, and the best place I can find to start is https://github.com/WebAssembly/stack-switching/blob/main/proposals/tasks/Explainer.md
Last updated: Dec 23 2024 at 12:05 UTC