• huginn
        cake
        link
        fedilink
        arrow-up
        6
        arrow-down
        2
        ·
        11 months ago

        ART is the equivalent of a JVM. It doesn’t implement all the apis, the compiled bytecode differs, it’s optimized for mobile but that doesn’t make it not a JVM.

        That’s why the NDK exists: so you can build and run C++ code natively.

        • Aux@lemmy.world
          link
          fedilink
          arrow-up
          1
          arrow-down
          6
          ·
          11 months ago

          Python VM is Java by your logic. If you don’t understand IT, you shouldn’t really talk on IT topics.

          • huginn
            cake
            link
            fedilink
            arrow-up
            3
            arrow-down
            1
            ·
            11 months ago

            I can use the exact same apache jars on my Android project and my Java server.

            That’s not Python. That’s very clearly java code.

            The implementation of the contract is different but that’s not the same as not being Java.

              • huginn
                cake
                link
                fedilink
                arrow-up
                1
                arrow-down
                1
                ·
                11 months ago

                You absolutely can pull the same jars into server and android projects.

                Sometimes you need a different one for Android to avoid NoClassDefFoundErrors but you’re totally able to grab a jar and stick it directly into both sides.

                • Aux@lemmy.world
                  link
                  fedilink
                  arrow-up
                  1
                  arrow-down
                  1
                  ·
                  11 months ago

                  The hell are you even talking about? You can’t even load a JAR file on Android. My god…