News for hackers. Stuff that matters.
Re:Go 1.20 Released by 0x62c1b43e on Wednesday February 01, 2023 @08:05PM (#34620611)
I’m gonna be that guy, but do you have sources for any of this? That link shows that compiler performance is the same as before generics, for instance.

Are there more bugs in the compiler? Is readability reduced, and having an effect on pace? Especially if adoption is so low to begin with? Is adoption actually so low, or just rising?

Re:Go 1.20 Released by valyala on Wednesday February 01, 2023 @08:28PM (#34620817)
That link admits that the compiler performance was lower than needed in Go1.18 and Go1.19, because of generics, even when compiling Go code without generics. I can confirm this based on my own open source projects written in Go [1].

[1] https://github.com/valyala/

Re:Go 1.20 Released by 0x62c1b43e on Wednesday February 01, 2023 @09:03PM (#34621097)
I understand, but it shows that compiler performance is the same as before generics now, so any performance hit is gone.
Re:Go 1.20 Released by valyala on Wednesday February 01, 2023 @11:57PM (#34622267)
But the time spent on designing, implementing and then optimizing the generics is lost. This time could be spent on more valuable things for Go ecosystem.
Re:Go 1.20 Released by 0x62c1b43e on Thursday February 02, 2023 @09:59AM (#34627369)
Generics consistently showed up as one of the most desired features (if not the most desired) by working Go developers in the previous developer surveys, so I think it makes sense that the Go team felt the ecosystem saw much value in it relative to other features and worth the time.
Re:Go 1.20 Released by valyala on Friday February 03, 2023 @01:42AM (#34637902)
Unfortunately, the Go team was misguided by vocal minority who was using the "missing generics" argument as an excuse why they do not switch to Go from their favorite programming languages. The majority of working Go developers were happy with Go, so they didn't take part in the debates and surveys about generics.

The irony is that vocal minority still do not use Go, since they have other excuses now - "bad error handling", "missing functional features", etc. But if these harmful features will be implemented in Go, the vocal minority will find another reason why they do not use Go.