Re: [go-nuts] are Go generics more like C++ or more like Java?

2022-02-27 Thread robert engels
I disagree that it wont be formally published - or at least have knobs to turn to control it - otherwise it will be nearly impossible to make the determination of when your generic’s usage will result in a performance penalty. This probably won’t matter for 95% of the code - but it if does matte

Re: [go-nuts] are Go generics more like C++ or more like Java?

2022-02-27 Thread 'Axel Wagner' via golang-nuts
On Sun, Feb 27, 2022 at 6:33 PM robert engels wrote: > I disagree that it wont be formally published - or at least have knobs to > turn to control it - otherwise it will be nearly impossible to make the > determination of when your generic’s usage will result in a performance > penalty. > This d

Re: [go-nuts] are Go generics more like C++ or more like Java?

2022-02-27 Thread robert engels
I think that would be a miss. The size/speed trade-off cannot often not be made accurately when viewed in isolation. E.g. it may be the best course of action to generic 16 different implementations in some cases, but as a general rule exploding every implementation x16 is probably unwise. Being

[go-nuts] Re: Information for gophers in Ukraine

2022-02-27 Thread Kamil Ziemian
Here is a Google Sheet with contacts to private persons in Poland, that want to share a house or flat with refugees from Ukraine http://tinyurl.com/domdlaua. If you can share it somewhere, when Ukrainians can find it, please do this. Google Sheet is in Polish (Latin script) and Ukrainian (Cyril

Re: [go-nuts] are Go generics more like C++ or more like Java?

2022-02-27 Thread Kevin Chowski
I think it would be neat for the Go compiler to natively support profiles for profile-guided optimization to help make decisions about code generation for generics (and specialization for interfaces, for that matter). And also other ra