Linked by Thom Holwerda on Wed 27th Feb 2013 22:42 UTC
Thread beginning with comment 553982
To view parent comment, click here.
To read all comments associated with this story, please click here.
To view parent comment, click here.
To read all comments associated with this story, please click here.
RE[7]: Low-end handsets, emerging markets and performance
by zima on Sat 2nd Mar 2013 19:19
in reply to "RE[6]: Low-end handsets, emerging markets and performance"




Member since:
2007-09-22
Javascript is now about twice as slow as C in most cases. Where other scripting languages like Perl are more than a 100-times slower than C.
Where something like Java might be 1.3 or in certain cases faster than C (a JIT compiler can optimise stuff at runtime which normally a C-compiler would not build that into the compiled binary).
Javascript is basically the fastest scripting language right now. Faster than Lua for example, but Lua can still be faster because it is easier to exchange data with existing C-code. Lua is also a lot more memory efficient.
So yes, Javascript never was the best choice, but when did you ever see the best technology win ? Take VHS Betamax as an example. The "problem" is, Javascript is widespread and "good enough".
Also supposedly FirefoxOS uses less memory than Android because there are a whole lot less layers involved. So FirefoxOS might actually win from Android "native" apps on a lot of devices.
I read somewhere a few years ago that in servers memory usage as much power as the CPU. CPU's have become much more efficient. So that would mean Javascript could have similar power demands than Android/Java.