Should I Rust or Should I Go?
In what world is Go more reliable or faster than Java? Especially modern Java (or other good JVM languages like Kotlin).<p>It compiles faster but that is about it. Which is a good thing too because it&#x27;s verbose AF and heavily reliant on code generation even after generics shipped so that compiler lines&#x2F;s actually matters.<p>The only knock you can put on Java for reliability is null-safety but lets be real, nil pointers, bad slice initalisation, etc are 10x worse in Go especially these days with @NotNull and powerful editors like IDEA stopping you from doing dumb things. Or simply using Kotlin which is non-nullable by default.<p>That and all the things Go is good at Java is simply better at. (especially once Java 21 ships in the next few days).<p>- Low pause GC? ZGC has Go beat, not just on pause times but on throughput and heap size scalability up into the terabytes.
- Non-blocking code with synchronous coding style? Virtual Threads are much much better than goroutines.
- Channels? ArrayDeque and friends are faster and have a lower learning curve.<p>Maybe the only area I think I prefer Go to JVM-land is the good parts of the stdlib. Go has lots of shit stdlib <i>cough</i> collections <i>cough</i> but there are some real gems. Namely the x509 and ASN.1 libraries are absolutely top notch.<p>Learning curve is also lower ofcourse, it&#x27;s a very very simple language which is good for beginners and those taking their first steps out of JS&#x2F;Ruby&#x2F;Python into static types, pointers, etc.<p>Anyways, my real point was Java is easily faster and more reliable than Go and it seems pretty insane to reach the opposite conclusion if you have been on top of developments in both languages.