News for hackers. Stuff that matters.
Re:Go generics are not bad by yarg on Friday July 08, 2022 @09:44PM (#32030484)
> Java literally has a JIT to make generics fast

???

By the time it gets to the JIT, java generics have long since been erased.

Java's generic classes run at the same speed as everything else, because there's no actual generics there.

(Although I'd be very surprised if this doesn't change in the near future: https://openjdk.org/jeps/8261529.)

Re:Go generics are not bad by saagarjha on Saturday July 09, 2022 @03:29AM (#32032749)
I mean, they’re definitely not specialized and optimized before they hit the VM.