4 ms·
yes, but those of us who would desperately like to use Go because there are vanishingly few GC languages that compile to native exe AOT, won't because of no gen
by jackmott 9y ago
yes, but those of us who would desperately like to use Go because there are vanishingly few GC languages that compile to native exe AOT, won't because of no generics. So it is a bit of a tautology.
How useful they are depends greatly on what you are doing, and programmers do a great many different things. For many kinds of library development, they can save you massive amounts of time and code, and/or lead to much better performance vs the workarounds available.
I wonder how many people who prefer Go without generics are coming from C++ templates, or Java generics, vs C# or F# generics.
- weberc2 9y agoTo be clear, I agree with you. I was just responding to the OP's claim that the Go community overwhelmingly rejects generics with my perception that at most 60% of the community feels that way. I am very much in favor of generics.
- peoplewindow 9y agoWhat's the big need for an AOT native EXE for you? You just don't want to copy a directory tree instead of a single file?
- frankzinger 9y agoPerformance is often the answer.
- weberc2 9y agoNot OP, but I can't execute a directory tree. I always seem to need a runtime, and often additional libraries and a bunch of `$*PATH` munging so the compiler locates the _correct_ dependencies.
- hackerfromthefu 9y agoHave a look at .NET Native with .NET core, it support AOT compilation with GC, and a very fully featured language and cross platform targets. see https://blog.rendle.io/what-ive-learned-about-dotnet-native/ https://blog.rendle.io/what-ive-learned-about-dotnet-native/ https://stackoverflow.com/questions/29609993/difference-between-net-framework-4-6-net-native-and-net-core#29631362 https://stackoverflow.com/questions/29609993/difference-betw... https://docs.microsoft.com/en-us/dotnet/framework/net-native/net-native-and-compilation https://docs.microsoft.com/en-us/dotnet/framework/net-native...