3 ms·
> Javac itself is absolutely on the same order of magnitude speed as Go per loc Not really when it has to run on a cold JVM. And before it warms up, it’s alrea
by pkolaczk 3y ago
> Javac itself is absolutely on the same order of magnitude speed as Go per loc
Not really when it has to run on a cold JVM. And before it warms up, it’s already done.
Then you are in territory of keeping the compiler process between the runs, but that is a memory hog and also not always realiable (gradle often decides to run a fresh daemon for whatever reason).
So theoretically, in lab conditions yes, in practice no.
> while rust is significantly slower
Everybody repeats that but there is surprisingly little evidence in form of benchmarks. I can see rustic compiles over 50k Loc per second on average on my M2, which is roughly the same order of magnitude as Java. And checking without building is faster.
- blackoil 3y agoJavac doesn't run in JVM. It is a C (C++?) application.
- hyperpape 3y agohttps://github.com/openjdk/jdk/tree/master/src/jdk.compiler/share/classes/com/sun/tools/javac https://github.com/openjdk/jdk/tree/master/src/jdk.compiler/..., Wiki citation for good measures https://en.wikipedia.org/wiki/Javac https://en.wikipedia.org/wiki/Javac. Maybe you're thinking of Hotspot, which is written in C++.