3 ms·
> Right. I was reacting to the grandparent, who mentioned parallel computation, not concurrency. Ah! I missed that. Mea culpa. > Nice :). Though my Haskell he
by burntsushi 14y ago
> Right. I was reacting to the grandparent, who mentioned parallel computation, not concurrency.
Ah! I missed that. Mea culpa.
> Nice :). Though my Haskell heart cries when people use interface{} plus reflection as a replacement for parametric polymorphism.
As does mine :P But it was a fun exercise nonetheless. If you have a Haskell heart, you might be interested in my write up [1] on writing type parametric functions (using new Go 1.1 features). You will do some bleeding, but presumably you like types, so you might find it interesting. :-)
> Before we know it the library stack will effectively turn Go into a dynamically typed language.
Fortunately, the performance cost of reflection makes practical usage of it very limited. `ParMap` is in the minority here (where the overhead of concurrency shadows the overhead of reflection).
[1] - http://blog.burntsushi.net/type-parametric-functions-golang http://blog.burntsushi.net/type-parametric-functions-golang