Hacker News new | ask | show | jobs
by alecthomas 1014 days ago
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 edit: from this comment it sounds like it is, as you say, just the general overhead of managing goroutine stacks. I wonder if TinyGo is more performant.

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

1 comments

Tinygo runtime don’t have g or m threads that’s why it’s Cgo is zero cost