|
|
|
|
|
by brabel
1582 days ago
|
|
I am mostly a Java guy, but when people claim that Java can also compile to binaries, I really don't like that. It's kind of true... but with so many caveats it's almost a lie. * it compiles so slowly even basic applications can take 10 minutes to compile. What the hell are they doing all that time?!? Go can compile to multiple OSs architectures on the same machine and it takes a couple of seconds even for large code bases!! * you can't use most of the Java ecosystem as reflection is endemic... good luck manually declaring everywhere reflection will be used. * the loss of the JIT hurts peak Java performance a lot. Java runs as fast as Go *once the JVM is warmed up*! Native-image peak performance tends to be some way behind. Not saying GraalVM native-image is useless, it can be used if you have the energy and knowledge to get past the issues... but as someone who konws Go as well as Java, if I am going to the trouble of going native, I'd just use Go without a doubt. |
|