Java's new AOT cache feature is in a rough state
j / k
|
Down or up a comment |
h / l
|
Previous or next link |
?
|
This help |
https://openjdk.org/jeps/544
> Non-Goals
> It is not a goal to support cross-compilation. Code compiled in a training run must run on the same CPU architecture, with the same set of features, in subsequent production runs.
IMHO, that would be much better than running into crashes and having to figure out the cause yourself.
I think other AOT-compiled languages don't opt in for the lowest set of CPU features -- they just detect them at runtime and use whenever present, all in compiled machine code.
https://doc.rust-lang.org/beta/core/arch/#dynamic-cpu-featur...
https://youtu.be/U2j4bKgKr-s?t=3577
Instead, this AOT feature is not very ergonomic to use at all, with too many pitfalls to be of broad use IMO.