4 ms·
We'll see how "good" it is. I'm very skeptical about a Javascript-heavy OS being as good as an Android one on the same hardware. If all things are equal, it sho
by mtgx 14y ago
We'll see how "good" it is. I'm very skeptical about a Javascript-heavy OS being as good as an Android one on the same hardware. If all things are equal, it shouldn't be. However, I suppose Firefox OS will be more "feature-free" in the beginning, and those HTML5 apps will be a lot simpler than the typical native app, and these two things might compensate for the slower speed of Javascript. We'll see.
- markokocic 14y agoWell, Dalvik is not a speed deamon. I don't have any benchmarks on actual phone hardware available, but I can guess that javascript code will not run much slower on phone hardware than on desktop comparable desktop browsers, while Dalvik is a waaay slover than regular Java code on desktop.
- yareally 14y agoIf going by the stats that Xamarin gave[1] for Dalvik versus Mono on Android 4.0, Dalvik is also much slower than Mono. Though obviously Xamarin is not the most independent source in the findings, but I would believe it to outperform Dalvik in my own uses of both it and Dalvik for Android apps (I bought a license for it 6 months ago). There's also some results by Koush Dutta[1] (Cyanogenmod contributer and Clockwork Recovery developer) from 2009 showing similar findings, though obviously that's way old and before Dalvik had JIT added in Android 2.2. We had a discussion sometime ago about that article on hn as well[3] [1] http://blog.xamarin.com/android-in-c-sharp/ http://blog.xamarin.com/android-in-c-sharp/ [2] http://www.koushikdutta.com/2009/01/dalvik-vs-mono.html http://www.koushikdutta.com/2009/01/dalvik-vs-mono.html [3] https://news.ycombinator.com/item?id=421862 https://news.ycombinator.com/item?id=421862
- lucian1900 14y agoDalvik does have a JIT now, and it's much easier to JIT Java in the first place. The difference between deskop and mobile may be smaller with JavaScript, but not by much. The biggest issue JavaScript+HTML has is memory usage. Cheap phones don't have much memory and Java on Dalvik is much more memory efficient.
- Ziomislaw 14y agoyou are mistaken, firefox os does not need "the same hardware" as android, it needs less, a lot less.
- untog 14y agoI have Firefox OS running on a device that was originally intended for Android, and I can tell you that it runs very fast. As it should- the target for Firefox OS devices is considerably lower. In any case, the language being used on the OS has next to no bearing on the actual performance. How can you know that JavaScript is slower than Java? The devil is in the details- i.e., the implementation.
- Shorel 14y agoThe alternative seems to be Ubuntu OS for phones.