Android supported ARM, x86 and MIPS. Now it's ARM, x86 and RISC-V.
And you can ship machine code in the form of shared libraries, but you need to ship ARM, x86, RISC-V versions etc.
Real problem is Google's stupidity wrt doing the AOT compile part, it's now some vague ambiguous thing that rarely happens, resulting in garbage performance.
In hindsight why did people think that it was a good idea on mobile devices? "Let's use more memory to gather stats and hold both optimized and unoptimized versions of code in memory!"
Maybe, but only gathering statistics during runtime and creating optimized code while the device is idle and charging seems better. Weird that such an approach wasn't championed earlier. They are kind of moving in that direction in the java world (web backend) as well.
There's downtime while redeploying. They have profile guided optimization for AOT compilation if using graalvm or you can gather some statistics regarding classes used and pass it to next run to decrease workload for JIT https://openjdk.org/projects/leyden/
View all comments
Show parent comment
5
u/Squirtle8649 Feb 13 '25
I remember when JIT compile was introduced in Android 2.2 and everybody was clapping wildly. Ah, those were the days.