40 points · by sciwiz · 13y ago · 22 comments
A little deeper reading shows that it does this through the Dalvik VM, the VM on all Android devices.
I think the creator can say it better than me: http://www.youtube.com/watch?v=tEAz9fRoDmA
No more talks about it at Google IO, either.
Of course, this is also related to the Oracle's suit against Google.
I wonder if this means Google will reinvest in Dalvik, as I am betting KitKat will again only bring more Google APIs and nothing else.
Also, they should probably acquire these guys, too:
The emulator is also one of Android's longstanding problems, and it would be nice if they fixed that once and for all, too.
I'm also hoping that with the arrival of powerful ARMv8 hardware in the couple of years, maybe they'll make their SDK for ARM, too, so it doesn't even need to be emulated in x86.
Optimization in a battery powered device is tricky. After the initial work on Android's interesting JIT strategy, I have not heard much else about boosting performance. Developers who run into performance limits are stuck "doing it by hand" with native code and Renderscript. Maybe this signals a revival of interest in extracting better performance from Android's runtime environment.
On iOS everything is native.
Since Windows Phone 8, Microsoft also went fully native, by pre-compiling MSIL to native code on the Windows Store servers. The devices only have a linker to perform the last step of replacing the symbols by effective addresses on load.
Global heap can be controlled by process in many OS, nothing special about VMs.
Sharing of code pages between processes has been done in mainstream OS since a few decades.
Memory-conserving modularity tools, whatever that might be, aren't VM specific.
The only issue you are right about, is that bytecode is much more compact than native code.
> ... the reason there hasn't been a lot of new work on the JIT may be that the JIT is as good as it can be without eating more battery.
The current JIT is good enough for developers writing CRUD applications, HTML wrappers or the "fart app" of the month.
Those of us that care about performance use the NDK anyway.