News for hackers. Stuff that matters.
Re:How generics are implemented in Go 1.18 by vips7L on Wednesday March 02, 2022 @09:47AM (#30527895)
While those are low hanging fruit and I want to see more things like that done (I'd cry for more aot scalar replacement), I don't think those are examples of "bad bytecode".

Bad bytecode is the kludge of byte code you get when you try to write the same thing in kotlin: https://godbolt.org/z/9sGa6csa6

Re:How generics are implemented in Go 1.18 by kllrnohj on Wednesday March 02, 2022 @09:55AM (#30527996)
This would be the same thing in kotlin: https://godbolt.org/z/dq86ezsKd

And the bytecode is of comparable quality to javac's.