3 ms·
>Look back at this again if golang adds generics and other features that will change how code in it is written. Absolutely. I was surprised by the number of pr
by tmerr 8y ago
>Look back at this again if golang adds generics and other features that will change how code in it is written.
Absolutely. I was surprised by the number of proposed changes in Go 2, especially regarding error handling. Curious whether old code will be migrated or left behind.
>That's not an issue with Java, but how the GC is tuned
Good point, I haven't done much GC tweaking personally but that sounds worth learning more about. However I think language might have something to do with it: In Java almost everything is a referenceable object, while in Go one can put values directly inside structs. So Go has less work to do. Without that advantage I doubt it would seem competitive with Java GCs.
- apta 8y agoJava will be getting value types in an upcoming version. C# already has value types (called structs). The JVM also does escape analysis to avoid heap allocation when it can.