Re:Go is about to get faster
by throw6622 on Sunday January 23, 2022 @09:14AM
(#30046266)
If I understand correctly, what you’re saying is “Go won’t immediately get faster with this release, it will immediately get faster with the next and subsequent releases”. Whether your employer uses generics or not, it’s very likely large parts of the standard library will get rewritten with them soon, and if OP is correct, it will improve the performance greatly of certain operations.
[ Parent
| on HN ]
Re:Go is about to get faster
by xyzzy_plugh on Sunday January 23, 2022 @09:52AM
(#30046526)
> it’s very likely large parts of the standard library will get rewritten with them soon
It's not. The Go 1 backwards compatibility promise means existing interfaces won't change. Take the Math package for instance: I'm not aware of any planned breaking changes -- if you are, please share. If they were to add support for non-int64 operations, they would likely be separate functions or a new package. This, without sweeping code changes, nothing changes.
Re:Go is about to get faster
by stitched2gethr on Sunday January 23, 2022 @12:59PM
(#30048471)
The Go team has been discussing converting some functions to generics _if_ they can maintain the compatibility guarantee. Without verifying, I believe this was discussed in Go Time ep 216.