by johansch · 10y ago · 0 comments
It failed for the same, predictable reasons: Yes, there are many web developers in the world compared to the number of (in this example) embedded rtos UI C/C++ developers. However, on resource-constrained platforms (as phones tend to be, since they are battery-powered) it's really hard and requires brilliant developers to be able to build web-based UIs that can compete in performance with non-web-based UIs built by (in comparison) not-so-brilliant developers.
And on top of this, Mozilla decided to shoot for (super) low-end devices as their main target - presumably because their bizdev people had spotted a theoretical opportunity, but failed to connect with engineering, or vice-versa. The first time I saw that I just laughed out loud, to be honest.
They actually have a time-honored tradition of following in the footsteps of Opera when it comes to ways of making money. Those sponsored tiles introduced in Firefox last year? Opera did that in 2008/2009-ish. (Not to mention the concept of a graphical speed dial on the new tab page itself...) That Google search field to the right of the URL field? Opera pioneered that business model in 2001 - followed by Mozilla and Apple half a decade later. Sorry, I get carried away. :D
Having been there (ex mozillian, lots of time spent on FFOS), I wouldn't characterize it like this. The leaders of the project were two engineers, not a pointy hair on their heads (at least at first).
There were certainly plenty of us who felt like trying to cram this much into a low-end device was insanity (when was the last time you saw any web browser use under 128mb of ram?), and we definitely raised this objection. I feel like the pathology I observed was more planning fallacy / overoptimism on the part of engineering leaders than anything else (I'd certainly be the last to claim that I've never been guilty of that).
There's also another fallacy that I don't have a name for, which is basically "this is the only (way we see how) to do it, so we're going to make it work." That is, it was hard to imagine a FFOS device competing with a high-end device, so they decided to focus on the low end. That's the only way we can do it, so we'll make it work. But that causes you to perhaps lose sight of the real question: "can we make it work?"
It's not clear to me whether FFOS would have had a shot if not for the focus on low-end hardware. Having been there, I feel like the architecture itself was really hard to program against. Bugs that should have been easy -- "make sure the alarm clock actually goes off", "don't leak apps" -- required lots of specialized knowledge and time to fix. But certainly a lot of time was also spent on performance/memory optimization.
Just my two cents. A lot of smart people worked hard on this project for many years, and there were many impressive technical accomplishments along the way. Look up Nuwa if you're interested; that shit is nuts.
> They actually have a time-honored tradition of following in the footsteps of Opera when it comes to ways of making money.
"Opera had it first" indeed. :)
planning fallacy / overoptimism on the part of engineering leaders than anything else
So yes, Mozilla is simply a poorly ran organization.
I think it's worthwhile to remember at the time Firefox OS launched much of Android ran on the Dalvik VM, so it wasn't so clear cut that the approach was so doomed to fail.
The execution of the code, be it javascript on some modern engine or Java/Dalvik bytecode - that isn't typically the performance bottleneck. It is fast enough now.
I'm not an expert on this (this is where I thread on thin ice), but my understanding is that the HTML/CSS logdoc/layout tree model is inherently non-performant compared to a more traditional hierarchical windowed object oriented model. It is too easy to write HTML/CSS that is not performant (it's way too easy to accidentally cause performance issues), while it is a lot more natural to write performant windowing/OO code. And inversely, harder to write code that is not performant.
It depends a lot on what you're doing, and how much data you're processing. If we go by the premise that you're processing more data locally than you would in a web app (because you don't need to worry about the latency and you don't have a server to do the pre-processing and filtering of the data before it reaches the client), then actual VM performance is more significant. The last time I looked at any profiles of browsers on Gmail or FB, JIT'd code actually accounts for several of the most expensive functions (and you will notice if you disable the JIT). JS performance does matter—even if DOM performance dominates in the case of the common website (and note that Mozilla has actually been doing quite a lot of interesting work around teaching the JS VM more about the DOM, including rewriting parts in JS, which allows JIT optimisation to happen).
It's definitely true that it's easier to write non-performant code using HTML/CSS (and <canvas> and WebGL don't really help here—because it's hard to ensure data gets correctly passed to accessibility layers), but I think that the majority of mobile apps are simple enough for it to not be a concern.
but my suspicion is that it really is as simple as: even really-well-optimized html/css/js that needs to go through a browser core will suffer performance-wise compared to something with 10-15 less layers of indirection. (Like a traditional windowing toolkit.)
The Android UI toolkit isn't exactly efficent (ha!), but still seems to beat Firefox OS on super-low-end hardware judging from the reviews I have seen.
The internal windowing toolkit and java-like mini language with a VM that we made for Opera Mini 5/Opera Mobile 10 with both J2ME and C VM implementations was like 3x faster than the Android UI toolkit with Dalvik for typical windowing tasks. Without any super-fancy optimizations...
This is not to say that the browsers of today are optimally architected, of course. (In fact, I think they're quite suboptimally architected for 2015 hardware. The "it's too easy to fall off the fast paths" problem of HTML/CSS is a symptom of legacy browser architecture, not a problem with the layout/styling model.)
The problem is that the phones currently dominating the market in developed countries have native apps, with slick interfaces - enabled by mid to high end SoCs.
Trying to produce vaguely similar experiences with low-end SoCs is going to be very hard, even without the additional handicap of doing everything with web technologies.
If anything, the only way that could've worked in the current market is on ultra high-end phone hardware, and with a focus on privacy & security to attract the rich & technically savvy end of the market.
Started using Opera since ~2000 and really liked it. Really innovative (tabs, mouse gestures, download manager, ...) and fast! Even an email client was included :) !
But replaced it with Firefox by the time FF had tabs and was fast enough, due to 'trust/privacy' reasons. For the same reasons I do not use chrome.
And if FF keeps disappointing me and Opera gains trust I can imagine a switch :) (hmmh, but how if closed source?)
To his credit, Jon a year later championed that Opera Mini needed to be free/without "in your face ads" in the critical first couple of years. This allowed it to reach 250+ million monthly actives (it still has that!). And we did came up with really lucrative monetization models later on that worked without sacrificing the user experience.
I don't buy the argument about a lack of investment in Presto. IIRC there were like 90 (most of them really good) people working on Presto at its peak. And we still couldn't keep up. (And most of those issues were about lacking desktop market share, which caused sites to de-prioritize Opera, anyway.)
There's a fair overview available in the quarterly reports.
Thank you - I didn't know about this.