3 ms·
No Generics! Why on earth would you write code in this language? Enjoy re-writing your tree and unordered-set containers for every different datatype you wish t
by gypsyface 14y ago
No Generics! Why on earth would you write code in this language? Enjoy re-writing your tree and unordered-set containers for every different datatype you wish to use.
(And dont tell me using interface{} is an alternative because you lose type safety and speed.)
- jongraehl 14y agoPerformance is a legitimate complaint [1]. To be fair, Java generics suffer the same problem. [1] http://shootout.alioth.debian.org/u32q/benchmark.php?test=all&lang=go&lang2=java http://shootout.alioth.debian.org/u32q/benchmark.php?test=al... - much slower than Java (memory figures may not mean much except that Java was tuned to use a large heap for better performance)
- Scaevolus 14y ago64-bit benchmarks are more fair, since Go's 32-bit x86 target hasn't received much attention (it's irrelevant to most users). http://shootout.alioth.debian.org/u64q/benchmark.php?test=all&lang=go&lang2=java http://shootout.alioth.debian.org/u64q/benchmark.php?test=al... Most of the performance difference is because Go's GC isn't very good, which is something that they're working on.