Re:Who will steal Android from Google?
by lev99 on Monday March 12, 2018 @10:57AM
(#16568536)
iOS also seems to perform better with similar specs than Android.
[ Parent
| on HN ]
Perks of not running everything in the JVM. Even though it's really fast at this point, it's still going to have more overhead than running apps natively.
Does it matter when half of the apps are based on Cordova or React Native, running everything in the JavaScript VM and majority of the games are based on Unity running exactly the same C++ and C# code everywhere. It's not like some calendar app will have major performance gains with native code.
Compiled code is faster than bytecode is faster than interpreters.
It's not always true, but it's a good rule of thumb.
Re:Who will steal Android from Google?
by candiodari on Monday March 12, 2018 @11:55PM
(#16573797)
It's long established that Java's problem is not the JVM or bytecode but it's memory model.
Java's bytecode execution speed in the JVM is good enough that it's on part with C, easily beating any language with even a slightly inefficient compiler, like Go or Haskell.
Are you referring to the lack of value types? Or is there some more fundamental problem?
Re:Who will steal Android from Google?
by candiodari on Tuesday March 13, 2018 @06:51AM
(#16575084)
That's a decent part of it, but also the fact that in Java:
class A {
B b;
}
"b" will be a pointer, as opposed to "b" being contained within instances of class A.Android does not run anything on the JVM AFAIK.