4 ms·
Best of class UI requires at least 60fps consistently, not just for games. Of course JavaScript is not great here, but this can be achieved now on the latest mo
by illumen 12y ago
Best of class UI requires at least 60fps consistently, not just for games. Of course JavaScript is not great here, but this can be achieved now on the latest mobile browsers.
First run time is important, and interpreters are faster in this case. Also, JavaScript can execute as it is downloaded. I can load a whole UI, and complete my task before the JVM has loaded the code.
Also, at least Firefox does AOT on JavaScript now. This is how I load and start executing 1.2MB of JavaScript in 50ms in the app I'm currently producing.
- moonchrome 12y ago>First run time is important, and interpreters are faster in this case. ART AOT is on-install and that can even be changed to something like Mono AOT which is offline (you're essentially distributing precompiled native code along with IL) giving you the best of both worlds. >Also, at least Firefox does AOT on JavaScript now AFAIK this is only ASM.JS code, AOT compiling dynamically typed code would be questionable - maybe to avoid initial parsing costs but then you hit all of the problems of AOT (longer load time, need whole code) without the main benefit (performance gain).