by MrBuddyCasino · 3y ago · 0 comments
Golang is opinionated towards its single coroutine model, there is no way to switch. Its a good model and it works well, but there are cases where it leaks, such as low-performance C interop.
Green threads usually refer to single-threaded runtimes such as Node.
I remember that early versions of Rust had that but dropped it because building a single implementation of that that scales to all platforms is hard (tm).
This doesn't sound right. How is the single-threaded event-loop of node green threads?