News for hackers. Stuff that matters.
Re:Firefox OS Simulator – previewing version 3.0 by anon1385 on Wednesday March 13, 2013 @11:47AM (#5369202)
>you just have to write it up in HTML + JS, like every other app on the device.

Except the browser.

Mozilla could build Firefox for iOS using the technologies available to other third party apps on iOS. They (rightly) don't think that is good enough because it means they can't build a browser that is competitive performance wise with the built in browser.

http://news.cnet.com/8301-14013_3-57573440/mozilla-says-no-p...

The sticking point for Mozilla is not being able to carry over its sophisticated rendering and javascript engines to iOS. Essentially, the organization doesn't feel like it can build the browser it wants to for Apple's platform, Sullivan told CNET.

Re:Firefox OS Simulator – previewing version 3.0 by callahad on Wednesday March 13, 2013 @11:55AM (#5369244)
> Except the browser.

Actually, Firefox on FirefoxOS is written in HTML + JS. Here's the source: https://github.com/mozilla-b2g/gaia/tree/master/apps/browser

Sure, the HTML + JS runtime on FirefoxOS is Gecko, but that's an implementation detail. The browser itself, as users will experience it, is Just Another Webapp.

Re:Firefox OS Simulator – previewing version 3.0 by pifflesnort on Wednesday March 13, 2013 @02:38PM (#5370227)
> Sure, the HTML + JS runtime on FirefoxOS is Gecko, but that's an implementation detail. The browser itself, as users will experience it, is Just Another Webapp.

Except that it's NOT, because the core of the whole thing -- HTML + JS -- is native.

Apple does the same thing on iOS -- you can use UIWebView to render HTML/CSS, and to execute JS. Yet that wasn't good enough for Mozilla -- why?

Re:Firefox OS Simulator – previewing version 3.0 by callahad on Wednesday March 13, 2013 @04:39PM (#5370982)
> you can use UIWebView to render HTML/CSS, and to execute JS. Yet that wasn't good enough for Mozilla -- why?

One issue is that Apple gives themselves a much faster version WebKit, but doesn't let anyone else use it. If you want to be a browser on iOS, you have to use an intentionally crippled engine.

Another is that Apple's iron grip on iOS is in direct opposition to the Mozilla Manifesto. Mozilla simply can't be a party to that platform without compromising its values.

That second issue is at the heart of FirefoxOS.

Re:Firefox OS Simulator – previewing version 3.0 by sp332 on Wednesday March 13, 2013 @03:07PM (#5370425)
Apple doesn't allow 3rd party apps to use their JIT, which means all the JS is slow. http://daringfireball.net/2011/03/nitro_ios_43 And they're not allowed to make certain calls into the OS to make a fast native JIT, even if they wanted to make their own browser from scratch. So due to artificial policy decisions, it's doomed to be slow.
Re:Firefox OS Simulator – previewing version 3.0 by pifflesnort on Wednesday March 13, 2013 @03:14PM (#5370467)
> And they're not allowed to make certain calls into the OS to make a fast native JIT, even if they wanted to make their own browser from scratch. So due to artificial policy decisions, it's doomed to be slow

Yeah, and Firefox doesn't allow native code execution at all either, so, also slow. Mozilla doesn't have the moral high-ground here, in that they're also creating two tiers of developer: Mozilla, and everyone else.

Re:Firefox OS Simulator – previewing version 3.0 by sp332 on Wednesday March 13, 2013 @03:29PM (#5370552)
At least if Chrome made a version like they did with iOS (just a wrapper around the native web engine) it would have a JIT. That would be an improvement over the iOS version.
Re:Firefox OS Simulator – previewing version 3.0 by pifflesnort on Wednesday March 13, 2013 @03:50PM (#5370713)
That's pretty much splitting hairs. Let's say Google wants to push forward dart, NaCL, or something Mozilla has never thought of, or would never agree with.

Now what?

Re:Firefox OS Simulator – previewing version 3.0 by sp332 on Wednesday March 13, 2013 @03:57PM (#5370758)
That is already the situation with native apps. That's what the real competition is! Not Firefox vs Chrome but open standards vs closed platforms. The point of the Firefox OS project is to make standards-based HTML+JS the most appealing platform for developing and deploying mobile apps. They need to make it better than native apps on any platform, and at least as good as any non-standard web technology. There is very little point in making a Dart app when a JS app is within 10% as fast and runs on every platform.
Re:Firefox OS Simulator – previewing version 3.0 by pifflesnort on Wednesday March 13, 2013 @04:24PM (#5370896)
Except for the fact that world-changing technologies like the web would never have existed if nobody was permitted the first web browsers because platform vendors limited everyone to gopher.

I don't want to live in that two-tier world of web vendors and everyone else.

Re:Firefox OS Simulator – previewing version 3.0 by sp332 on Wednesday March 13, 2013 @04:34PM (#5370958)
Maybe that's true, but it's really a different conversation. We were talking about getting your choice of web browser on a mobile OS. You're always going to be at the mercy of a platform vendor - Mozilla, Apple, Linus Torvalds, Intel. Honestly at least Mozilla are trying for an open development process, more than anyone else. Even Android's source only gets published after the code has already shipped. I trust Mozilla more than anyone except maybe the Linux project itself to do right by application developers.
Re:Firefox OS Simulator – previewing version 3.0 by sp332 on Wednesday March 13, 2013 @11:54AM (#5369234)
I'm not sure what you mean. Apple rejects apps which duplicate native functionality. It took years for Google to get their Maps and Chrome apps into the App store. And guess what Chrome is on iPhone? It's just a wrapper around the native iOS webkit engine, exactly the same as the Firefox app is a wrapper for the native gecko on FirefoxOS.

Also, the reason you can't get good performance on a 3rd-party iOS browser is that Apple artificially restricts JIT to first-party apps.

Re:Firefox OS Simulator – previewing version 3.0 by MatthewPhillips on Wednesday March 13, 2013 @12:52PM (#5369562)
> Mozilla could build Firefox for iOS using the technologies available to other third party apps on iOS.

That's not true, Mozilla could build Firefox for iOS the way they want to, they just can't release it on the App Store. It's an imposed limitation, not a technical one.

As others have said, if you can compile WebKit with Emscripten you can build a WebKit-based browser for Firefox OS that gets 2x performance vs. native.