3 ms·
> when compiling Java/sbt projects Are you comparing a binary being run under dynamic binary translation with a native binary? Not really an honest comparison
by chrisseaton 6y ago
> when compiling Java/sbt projects
Are you comparing a binary being run under dynamic binary translation with a native binary?
Not really an honest comparison, if that's the case.
- formerly_proven 6y agoNo idea if that's the case, but I wouldn't have expected Java of all things to be run under binary translation.
- chrisseaton 6y ago> I wouldn't have expected Java of all things to be run under binary translation Why? The Java community has only just been working on ARM64 support at all over the last few years, and it's still a little limited, and macOS ARM64 support is only out a couple of weeks and only from non-Oracle third-party builders I believe.
- nicoburns 6y ago> I wouldn't have expected Java of all things to be run under binary translation Depends which version you have installed. It's a taken a while for the native versions to reach the mainstream channels, so unless you've specifically installed an M1 build you probably have an x86 build being run under translation.
- throwaway4good 6y agoYou have to install a Java VM compiled for ARM such as the one made by Azul. If you just get the openjdk from the main website it is compiled for Intel and will be much slower.
- biehl 6y agoNative support in the regular builds will arrive in september https://openjdk.java.net/projects/jdk/17/ https://openjdk.java.net/projects/jdk/17/