https://planetscale.com/blog/generics-can-make-your-go-code-slower is the best breakdown I've seen of current implementation details as they hit assembly. There is a little bit of oil/water thing with interfaces and generics - they don't exactly mix, but you can cook however you like ... On Tuesday, August 16, 2022 at 1:03:22 PM UTC-7 guil.l...@gmail.com wrote:
> Hello, > > I remember a paper about Go Generics but I cannot find it again. > It was a scientist paper (with a lot of maths far beyond my understanding > ^^). > Title was something like "Lightweigh generics for Go" or something like > that. > I believe the background of the website was red (not sure either). > If someone has the url, please share it :) > > In the same idea, I believed the Go Generics solves the "bloating binary" > issue. If so, I don't understand why I see the "same instructions" at ligne > 68-71 and at ligne 81-84 in this exemple : https://godbolt.org/z/cqY19PT7q. > I'm not fluent with assembler but, for me there is a bloating there. > > Can someone explain it to me ? :) > Thanks in advance > > -- You received this message because you are subscribed to the Google Groups "golang-nuts" group. To unsubscribe from this group and stop receiving emails from it, send an email to golang-nuts+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/golang-nuts/9baf1b08-74e2-49b8-a3d7-c141f1f91bc6n%40googlegroups.com.