top | item 44176435

(no title)

linksbro | 9 months ago

Would this result in the same .class that javac produces? I.e. at runtime is code compiled with this fundamentally different than code compiled with javac?

discuss

order

sgammon|9 months ago

This results in identical .class bytecode that `javac` produces, yes, because it's literally just `javac`, but built as a native binary instead of a Java entrypoint.

We build at JDK24 and support `--source/--target/--release` so you can build against earlier JVM targets.

If you find any output differences between Elide and JDK24 (Oracle GraalVM), then we'd consider that a bug. Similarly, we accept identical compile flags and emit identical warnings/messages, as under the hood we are just using the same compiler APIs but natively.