News for hackers. Stuff that matters.
Re:The Firefox OS marketplace is brilliant by zanny on Tuesday January 22, 2013 @11:38PM (#5101391)
I'm still confused how a platform running only html5 + js applications can target low power devices. Performance on Android, which runs a highly optimized JVM, is only barely reaching acceptable levels in the last year with Project Butter. Ubuntu Phone, targeting the same use case except with native apps (albeit scripted in qml) comes out next year.

How is a device built on a browser engine supposed to provide good UX on low power devices? My Android tablet has Firefox stutter and wheeze through pages and loading, often freezing up on any reasonably sized amount of javascript, and it has a Tegra 3 (TF700) which many would call the high-end mobile device market.

Re:The Firefox OS marketplace is brilliant by hosay123 on Wednesday January 23, 2013 @12:46AM (#5101653)
Android's performance problems are more to do with architecture than anything else:

- Prior to 4.x the "highly optimized JVM" was "highly interpreted".

- Access to the display is gated via userspace (SurfaceFlinger) which must be invoked to composite every frame, and at least in 2.x (if not still true) unconditionally repainted the screen each frame.

- Accelerated 2D did not exist in Android 2.x, I'm not sure if it exists yet.

- None of the standard GUI widgets knew how to handle partial repaint. I think this was fixed in 4.x.

From the perspective of getting lag right, you only need to ensure there is some native code that can scroll around a bitmap efficiently. As for how that bitmap gets rendered, a few hundred thousand lines of C++ stands a much better chance of efficiency than an unoptimized, initially interpreted Java GUI framework that has no native way of expressing "allocate this temporary on the stack" ever did.

The choices made for Android might have been valid when painting a 160x200ish 16bit display (about 64kb per frame), which AFAIK was roughly the original target hardware prior to the Google purchase, but for 800x480 24bit this quickly turns into a need to generate 34mb/sec to render at 30fps, all done in software, chunks of it interpreted, on (what was initially) a 500mhz ARM11 CPU. Really helps frame the panic Google must have been in to get something on the market and fast.

Re:The Firefox OS marketplace is brilliant by compilercreator on Wednesday January 23, 2013 @12:53AM (#5101675)
Prior to 4.x, the "highly optimized JVM" you speak of was fully interpreted.

Slight correction: JIT compiler was first introduced in Android 2.2

Re:The Firefox OS marketplace is brilliant by hosay123 on Wednesday January 23, 2013 @01:06AM (#5101729)
Thanks, pretty sure the remainder of the version numbers are messed up too.. pulled out of my old and foggy memory. :)
Re:The Firefox OS marketplace is brilliant by DeepDuh on Wednesday January 23, 2013 @03:11AM (#5102068)
> Really helps frame the panic Google must have been in to get something on the market and fast.

The way I see Google from the outside they don't seem to be panicky when entering new markets. Half of the internet already belonged to them before Android, it's not like do or die in their case. Maybe Android's technically poor choice of backend architecture may have been due to inexperience in low power device software? Microsoft has much more experience there too, and they seem to have proven my point by releasing a very responsive WP7 about a year after (it should have been). Actually, seeing Microsoft's (and Palm's) situation, Google's 'worse is better' approach may have been just what they needed, so their management certainly deserves some slack there.

Re:The Firefox OS marketplace is brilliant by zanny on Wednesday January 23, 2013 @03:51AM (#5102172)
They bought Android the company, who had already picked Java etc. Google just rolled with it. In practice, I hope that Ubuntu Phone is the refinement of the Android platform we need. You don't need a bytecode sandbox if you implement sound MAC, which Android had in its installer. I just hope that Ubuntu Phone adopts wayland instead of X, and not their own window manager mess like surfaceflinger.
Re:The Firefox OS marketplace is brilliant by bitwize on Wednesday January 23, 2013 @03:33PM (#5105112)
Android, the OS and company, was purchased by Google. Its founder, Andy Rubin, was also the founder of Danger, Inc., makers of the HipTop/T-Mobile Sidekick, one of the first mass-market smartphone-like devices.

It's interesting to note that the HipTop has always had a modified Java run time, and in later versions even ran on a Unix kernel (NetBSD I think). So the architecture decisions for Android were already familiar to Rubin and the team.

Re:The Firefox OS marketplace is brilliant by pretoriusB on Wednesday January 23, 2013 @09:41AM (#5103217)
Wow.

From this list of issues some of which are "fixed at 4.x", and from the fact that --based on Google's own stats-- very few people have 4.x (only around 10% of all Android devices have it or have upgraded to it), the whole Android vs iOS fight seems kind of moot. Technology wise iOS wins hands down.

Re:The Firefox OS marketplace is brilliant by CrazedGeek on Wednesday January 23, 2013 @12:36AM (#5101602)
The TF700 has a known problem with its internal storage being incredibly slow, which could be what's causing your problems. http://forum.xda-developers.com/showthread.php?t=2066849

Firefox on Android has always been fairly fast for me, for what it's worth.

Re:The Firefox OS marketplace is brilliant by untog on Wednesday January 23, 2013 @12:51AM (#5101669)
I bought a cheap TF300 and was blown away to find the same slowness. If you're doing any downloading it's basically unusable. Especially disappointing as the rest of the hardware (including keyboard dock) are great.
Re:The Firefox OS marketplace is brilliant by zanny on Wednesday January 23, 2013 @12:59AM (#5101705)
I've had the same experience on a Nexus 7, and when I turn on the developer system monitoring it always either pushes memory into swap or maxes out some cpu cores and doesn't properly utilize all 4. The biggest culprit I would say is that you have 4 cores but your computationally expensive javascript is never multithreaded.

Though I do acknowledge the internal memory is slow as crap.