News for hackers. Stuff that matters.
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.