Skip to content

Comment on Kotlin 1.2.60 comes with native compiler binariesparent

Comments

I wonder why they have not used jlink + jaotc ?

Maven is already able to compile a the code with Java 6/Java 8 and the module-info with Java 9. With jlink, you can then create your own jdk and AOT the part of the code you want with jaotc.

Maybe those tools are too new and the perf are not great ?

Perhaps the compiled output of jaotc is not suitable for distribution, but is intended more as an equivalent of ngen in .NET?

JEP 295 says: "AOT compilation must be executed on the same system or a system with the same configuration on which AOT code will be used by Java application."

AboutSource Built by g1lg1l

Hackerly is an independent reader for Hacker News, built on the public HN API. Not affiliated with Y Combinator.