3 ms·
The biggest problem with go is that it’s not easy to implement those as libraries. This is a combination of the golang story around generics & their opinionated
by kasey_junk 8y ago
The biggest problem with go is that it’s not easy to implement those as libraries. This is a combination of the golang story around generics & their opinionated strategy on concurrency.
Conversely most other modern, mainstream languages can mimic golang concurrency as a library.
- wahern 8y agoYou absolutely cannot mimic Go concurrency. You're not understanding (or not appreciating) the function color problem mentioned in the article. See, e.g., http://journal.stuffwithstuff.com/2015/02/01/what-color-is-your-function/ http://journal.stuffwithstuff.com/2015/02/01/what-color-is-y...
- kasey_junk 8y agoOr it’s possible I don’t agree with its premise that go solves the problem better than other languages because it hides async behaviors from the type system. In practice it doesn’t. Asynchronous functions leak into golang implementations in worse ways in golang. Everything from the near universal use of channels as poorly implemented promises to the horrendous Context being passed to everything for cancellations. The golang concurrency story is weak compared to any language that has a story at all.