• Moonrise2473@feddit.it
    link
    fedilink
    English
    arrow-up
    36
    arrow-down
    6
    ·
    8 months ago

    Makes sense, Java sucks and native apps are much faster and use less resources.

    Once they paid Tencent, Baidu and Alibaba to port their apps, basically 95% of the Chinese market is satisfied.

    You only need WeChat, taobao, alipay, pinduoduo, Baidu and amap in China.

    Because they don’t need to worry about selling their device abroad, they have the luxury to not only give up to google apps, but to all the apps

    iPhone users are also having similar limitations with all the apps in the app store blacklisted except a few dozens manually approved by govt, but Apple is still selling a lot of units, even if it’s just a “WeChat mobile terminal” and not a real smartphone anymore

    • logicbomb@lemmy.world
      link
      fedilink
      English
      arrow-up
      30
      arrow-down
      1
      ·
      8 months ago

      Java is not as bad as you’re making it out to be. It’s always funny to see people list the problems with Java as if they’re obvious. They’re trade offs.

      With this change, you’re right, they certainly won’t have to worry about selling the device abroad.

      • Moonrise2473@feddit.it
        link
        fedilink
        English
        arrow-up
        1
        arrow-down
        4
        ·
        8 months ago

        the phones are already impossible to sell abroad without the google apps and a locked bootloader, it changes nothing for them

        because they are in control of the platform they don’t need to run everything in an interpreter. The cpu is and will always be arm-based, any interpreted language is a waste of power

        • logicbomb@lemmy.world
          link
          fedilink
          English
          arrow-up
          10
          ·
          8 months ago

          I don’t know whether they currently sell phones abroad, but I know in the past they have sold abroad. It’s a big market.

          So it certainly affects them organizationally. Any phone that they want to sell abroad will have completely different software. They’d likely have to use an entirely different team of people.

          any interpreted language is a waste of power

          It’s not a waste of power. There are a lot of tradeoffs like ease of development and fault tolerance. And the cost of the interpreter is greatly mitigated at run time. Please just stop talking about this. It’s not as good of a point as you think it is.

    • pgetsos@kbin.social
      link
      fedilink
      arrow-up
      23
      arrow-down
      3
      ·
      8 months ago

      Java definitely does not suck. There is a reason it runs virtually everywhere, from SIM cards to most servers of the world through Spring

      • Moonrise2473@feddit.it
        link
        fedilink
        English
        arrow-up
        7
        arrow-down
        9
        ·
        8 months ago

        interpreted languages are inherently slower than native code. Because huawei controls the hardware they don’t need portability and can focus on speed

        on a phone, using java will give all the disadvantages with no advantages

        look at iphone vs android, for years apple had better battery life and better performance even with half the ram, a worse cpu and smaller batteries

        • runefehay@kbin.social
          link
          fedilink
          arrow-up
          18
          arrow-down
          3
          ·
          8 months ago

          Java isn’t an interpreted language any more than C. Java gets compiled into its own machine code developed by Sun. That machine code can be converted to native code or just run “interpreted.” (which is more like emulation.)

          Maybe you should learn more about something before you criticize it.

          • Moonrise2473@feddit.it
            link
            fedilink
            English
            arrow-up
            3
            arrow-down
            7
            ·
            8 months ago

            I can’t think to any program made in java that isn’t a memory hog.

            Look at the performance of Minecraft java vs native

            Or vuze that uses 20x the memory of qbittorrent for doing the same stuff but with less features

            So either java devs don’t know how to optimize code, or the language itself has some problems

            • DarkThoughts@kbin.social
              link
              fedilink
              arrow-up
              10
              ·
              8 months ago

              Of course there comes the Minecraft comparison. Which also conveniently ignores the fact that Minecraft can run incredibly fast using certain performance mods. It’s not Java, it’s just shitty programming / code that hogs its performance.

            • HeartyBeast@kbin.social
              link
              fedilink
              arrow-up
              7
              arrow-down
              1
              ·
              8 months ago

              can’t think to any program made in java that isn’t a memory hog.

              Can you think of any Java programs that aren’t Minecraft, tho?

              • Moonrise2473@feddit.it
                link
                fedilink
                English
                arrow-up
                1
                ·
                8 months ago

                ok, give me a list of programs made in java that are faster or use less resources than a similar program written in any other decent language when run on the same hardware.

                The list has zero entries.

        • pgetsos@kbin.social
          link
          fedilink
          arrow-up
          10
          arrow-down
          1
          ·
          8 months ago

          The language has nothing to do with what you describe in your last paragraph. There are a lot of reasons what that was happening, and using Java is not one of them. Just the openess of the OS and how it was written was enough to justify such a difference vs a closed OS with a fraction of the possibilities

          Also Android is not using just Java, otherwise you would be able to run any normal Java app without “hacks”

      • Moonrise2473@feddit.it
        link
        fedilink
        English
        arrow-up
        3
        arrow-down
        1
        ·
        8 months ago

        if it’s still based on a jvm then they’re dumb and it’s a decision that makes no sense

  • Not_mikey@lemmy.world
    link
    fedilink
    English
    arrow-up
    20
    arrow-down
    1
    ·
    8 months ago

    Get ready for even more “apps” that are just glorified web views of their mobel site.

    • Auli@lemmy.ca
      link
      fedilink
      English
      arrow-up
      3
      ·
      8 months ago

      that’s a vast majority of apps already, oh i guess they add tracking also.