logoalt Hacker News

chubot • 11/08/2024 • 0 replies • view on HN

Yeah I actually remember that too, this article mentions it:

Coroutines for Go - https://research.swtch.com/coro

The parallelism provided by the goroutines caused races and eventually led to abandoning the design in favor of the lexer storing state in an object, which was a more faithful simulation of a coroutine. Proper coroutines would have avoided the races and been more efficient than goroutines.