More concretely, I’m asking this: why aren’t applications compiled fully to native code before distribution rather than bytecode that runs on some virtual machine or runtime environment?

Implementation details aside, fundamentally, an Android application consists of bytecode, static resources, etc. In the Java world, I understand that the main appeal of having the JVM is to allow for enhanced portability and maybe also improved security. I know Android uses ART, but it remains that the applications are composed of processor-independent bytecode that leads to all this complex design to convert it into runnable code in some efficient manner. See: ART optimizing profiles, JIT compilation, JIT/AOT Hybrid Compilation… that’s a lot of work to support this complex design.

Android only officially supports arm64 currently, so why the extra complexity? Is this a vestigial remnant of the past? If so, with the move up in minimum supported versions, I should think Android should be transitioning to a binary distribution model at a natural point where compatibility is breaking. What benefit is being realized from all this runtime complexity?

  • @aluminium
    link
    English
    81 year ago

    They must be, plenty of x86 Chromebooks get Playstore verified each year.

    • Dr. Jenkem
      link
      fedilink
      English
      21 year ago

      True, and while x86 phones exist, they’re pretty rare. But I think x86 tablets are a bit more common.

      • Never_Sm1le
        link
        English
        11 year ago

        Yes, there’s plenty of cheap Windows-Android dualboot tablets/laptops

    • @henfredemarsOP
      link
      English
      11 year ago

      That’s true! I forgot that Chromebooks were a major non-arm platform that Android supports in some sense. This is at least one way that they are benefiting from that design choice.