News for hackers. Stuff that matters.
Re:WASI Support in Go by alecthomas on Wednesday September 13, 2023 @06:10PM (#37502377)
I understand there's no CGo specifically, but I'm wondering if the Go runtime when running under WASM still has to manage switching out the goroutine stacks for "WASM stacks" when it's calling out through the WASM VM.

Edit: from this comment [1] it sounds like this is the case.

[1] https://news.ycombinator.com/item?id=37501552

Re:WASI Support in Go by Patrickmi on Wednesday September 13, 2023 @07:46PM (#37503131)
Tinygo runtime don’t have g or m threads that’s why it’s Cgo is zero cost