News for hackers. Stuff that matters.
Re:How generics are implemented in Go 1.18 by codeflo on Tuesday March 01, 2022 @04:48PM (#30520488)
Absolutely true. I’d add that Rust is also doing a lot more expensive optimizations in release builds.
Re:How generics are implemented in Go 1.18 by jcelerier on Tuesday March 01, 2022 @04:56PM (#30520599)
Until recently Go didn't even use registers for passing arguments, it just put everything on the stack like in a 1965 textbook (https://go.googlesource.com/proposal/+/refs/changes/78/24817...)
Re:How generics are implemented in Go 1.18 by eloff on Tuesday March 01, 2022 @05:04PM (#30520672)
If you mean for function calls, I believe you're correct, not taking into account inline functions.

However, for code generation Go obviously uses registers since way before the 1.0 days.