2 ms·
> TL;DR The Go standard runtime allows for asynchronous coding while allowing the developer a simply synchronous interface. I didn't read the article but this
by oxplot 5y ago
> TL;DR The Go standard runtime allows for asynchronous coding while allowing the developer a simply synchronous interface.
I didn't read the article but this TL;DR captures the essence of simplicity of programming in Go when writing IO apps. Go essentially optimizes for the majority case: run these things one after another. All the await/async fluff in other languages is evidence of poor/old language design. Every non-trivial production code you see these days in Javascript is littered with await/async as is the case in Python, etc. Why the heck do I have to repeat a keyword 1000s of times when that's expected in majority of languages.
Yes, Go may not cover every case perfectly (e.g. mentioned by sibling re CGO blocking OS thread), but when you look at real world stats of how often this is an actual issue, you find that it's almost noise (i.e. do a code search across Github for instance for such workarounds).