[go-nuts] Re: Go generics and bloating

2022-08-18 Thread Guillaume Lescure
Thank you very much Keith, that answers my question :) Le jeudi 18 août 2022 à 18:24:43 UTC+2, k...@google.com a écrit : > 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 scie

[go-nuts] Re: Go generics and bloating

2022-08-18 Thread 'Keith Randall' via golang-nuts
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

[go-nuts] Re: Go generics and bloating

2022-08-16 Thread Guillaume Lescure
Thanks a lot Axel that's the paper I was looking for :D Thanks for the article, I will read it. But if someone has more explanation for my little exemple, I'm still listening :) Le mardi 16 août 2022 à 22:18:26 UTC+2, harr...@spu.edu a écrit : > https://planetscale.com/blog/generics-can-make-yo

[go-nuts] Re: Go generics and bloating

2022-08-16 Thread Andrew Harris
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 Tues