Re:Why are my Go executable files so large?
by jhgb on Tuesday December 31, 2019 @04:21AM
(#21919882)
Did I miss something important about GraalVM? I thought it was another runtime on top of JVM, not a replacement for it. For a Java program, for example, GraalVM would presumably have no impact since it wouldn't be used for it.
Re:Why are my Go executable files so large?
by thu2111 on Friday January 03, 2020 @06:20AM
(#21944963)
GraalVM is several things.
In this context people are talking about the native-image tool which uses a small JVM written in Java (SubstrateVM) to compile to native code ahead of time, no HotSpot or other JVM dependencies.
There's also Truffle which is a way to put other languages onto the JVM (both HotSpot and SubstrateVM).
This has been changing rapidly with GraalVM and projects like Quarkus, which can build a static binary of a Java program that starts, as you'd expect, much faster (still not performance of a C/C++ program, but way faster than a regular Java program).