← Back to context

Comment by gf000

1 day ago

> Duh, it barely does anything. Go compilation generates machine code, you can't compare it to bytecode generation

Why not? Machine code is not all that special - C++ and Rust is slow due to optimizations, not for machine code as target itself. Go "barely does anything", just spits out machine code almost as is.

Java AOT via GraalVM's native image is quite slow, but it has a different way of working (doing all the Java class loading and initialization and "baking" that into the native image).