If Go 2.0 ever happens, it will be a competitor to Java 5.
If Go 2.0 ever happens, it will be a competitor to Java 5.
Go is an imperfect match for Java The language, largely because of the whole Generics thing. But if you’re talking about how teams use Java and Go, they’re a good match now.
Go was designed for large companies like Google to have a huge number of engineers and produce consistent, quality code, all while constantly on boarding people and moving them around. From an organizational perspective there are a ton of Java shops that use Java for similar reasons, plus the ability to cheaply and quickly acquire contractors who know Java.
If you are talking about doing REST APIs, talking to Postgres in Java 1.0 servlets style code, yeah Go is a replacement for Java.
Except that is like 1% of everything that is currently being done in Java.
As a Java guy, i would agree that Go is not actually competitive with Java. But then, a Go guy would probably say the opposite.
After getting generics, Go still needs to offer JFR/JMX/VisualVM like monitoring and dynamic code loading capabilities (Go plugins are very limited), JEE/Spring like Web tooling, Liferay/AEM/Magnolia like CMSs, an OS of its own and real time GC, card chips, M2M hardware gateways, printer enterprise configuration appps, and plenty of other use cases that many on HN seem unaware of its existence in enterprise scenarios.
So where is the EA for generics like the value types EA I can download today from OpenJDK repository?
It still appears quite far from being done in 2021, though.