Re:Go generics are not bad
by humanwhosits on Friday July 08, 2022 @07:11PM
(#32029040)
Someone will read a blog post about slow generics, ignore how it evolves, and tell every coworker for then next 10 years that go generics are slow
The authentic HN experience.
Re:Go generics are not bad
by giancarlostoro on Friday July 08, 2022 @07:59PM
(#32029684)
"Java is slow"
Not as slow as .Net !!
I'm hopeful, but the blog post doesn't say "Go generics have room to improve", it says "they're not bad". And they kind of are right now. I can see a road to how they can get better but it's not really very honest to present just this example as indicative of how they work.
Five years from now, Go will still exist. The implementation of generics in that future version of Go is likely to be much faster and better than what we currently have.
Put a different way, "Generics are slow in Go v1.18"