Huawei's HarmonyOS system will no longer be compatible with Android applications. NetEase, Meituan, and other companies are urgently recruiting HarmonyOS developers.
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.
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.
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 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”
Java definitely does not suck. There is a reason it runs virtually everywhere, from SIM cards to most servers of the world through Spring
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
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.
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
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.
i did a comparison also with vuze, which is incredibly inefficient compared to other clients
Can you think of any Java programs that aren’t Minecraft, tho?
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.
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”