News for hackers. Stuff that matters.
Re:Generics can make your Go code slower by jen20 on Wednesday March 30, 2022 @03:16PM (#30859629)
> On a stdlib level Java mostly wins

This isn't even true compared to other comparable platforms like .NET, let alone Go which has hands down the most useful and well constructed standard library in existence (yes, even better than Python).

Re:Generics can make your Go code slower by jpgvm on Wednesday March 30, 2022 @03:31PM (#30859782)
Yeah I don't buy that.

Especially not when things like this exist: https://pkg.go.dev/container

And things like this don't: https://docs.oracle.com/en/java/javase/17/docs/api/java.base...

As I mentioned Go does have a great HTTP and TLS stack but that doesn't do enough to put it on the same level.

Re:Generics can make your Go code slower by earthboundkid on Wednesday March 30, 2022 @08:40PM (#30862574)
Go didn’t have any container types in the standard library because it didn’t have generics and slice plus hash map solve 90% of what you need. I think an avalanche of container libraries are coming to Go. I already wrote my own deque and have seen a few others.