News for hackers. Stuff that matters.
Re:Schrödinger's Firefox OS by hardwaresofton on Saturday January 09, 2016 @09:43PM (#10873901)
There's no Schrödinger about it, FFOS is alive. (that's kind of a tl;dr for the article itself, but good article so I recommend the read)

I actually think FFOS is an amazing choice for connected devices, and I really want to use it on an IoT project (of course, that project is stuck behind at least 3 others, one of which is an app for FFOS).

To expand on why I think it's an amazing choice:

- As FOSS as you can get, with mobile OSes

- Easy to reason about architecture

- Will evolve with the web (as well as the web's capabilities)

- Galaxy-level ecosystem for HTML/CSS/JS

Re:Schrödinger's Firefox OS by Matthias247 on Sunday January 10, 2016 @02:47AM (#10874597)
Can't agree on the amazing choice part:

Most IoT devices will be headless. The will act as sensors, actors or gateways, but information will be displayed on other devices (your PC, Tablet, Smartphone, and probably a very limited number of control center things which actually embed a display).

For headless devices I can't yet see the benefit of Firefox OS over the Linux distribution of your choice (or even a custom one, e.g. with Yocto) plus Node.js (if you wan't to program in JS) or any other programming language of your choice. I would for sure prefer to use Node APIs (where the ecosystem is in the meantime really big and development and prototyping can be done on most platforms) against some other FFOS APIs (which I don't know - so it might be not a problem if porting node libraries is easy - but it could also be a big problem if FFOS specific BSPs are needed).

For devices with displays: Well, here comes the question again where the benefit of FFOS is against existing platforms for that solution. Of course, iOS is out there, but you still have the choice between Linux + Browser or a classical GUI toolkit (GTK, QT), an Android based device and now also Windows 10 for IoT.

If portability is a concern then I would create the fronted simply as a web app which can run on any of those OSes with a decent browser. And the actual system runs in $programming_language_of_choice and exposes HTTP/WS APIs.

Re:Schrödinger's Firefox OS by hardwaresofton on Sunday January 10, 2016 @04:46AM (#10874818)
Ah I definitely should have qualified my statements -- I was thinking more fridges/microwaves/things with screens. Most of the benefit is that they don't have to try and build some frankenstein of a view layer if you go with FFOS.

FFOS is definitely just about useless for IoT applications if it doesn't have a screen -- I completely agree with your point, it's just a fork of AOSP at that point.

Re:Schrödinger's Firefox OS by chris_wot on Sunday January 10, 2016 @06:27AM (#10874983)
If you think that Firefox will win by powering fridges, microwaves and toasters, then I'm not entirely sure how to respond.
Re:Schrödinger's Firefox OS by hardwaresofton on Sunday January 10, 2016 @12:03PM (#10875997)
Well define "win"? I'm not suggesting that FFOS will immediately take the IoT world by storm, but I'm saying it's decent option (for reasons that are unique to FFOS).

If mozilla can get to manufacturers and IoT companies fast enough, and integration is easy enough, it might catch on.

Re:Schrödinger's Firefox OS by chris_wot on Sunday January 10, 2016 @12:42PM (#10876187)
Your second sentence just directly contradicted your first.
Re:Schrödinger's Firefox OS by hardwaresofton on Sunday January 10, 2016 @02:57PM (#10876881)
Catching on != taking a sector by storm.

Let me make it simpler: While it is unlikely that every vendor will instantly switch to FirefoxOS for IoT devices, it is likely that more than zero will find it useful.

Re:Schrödinger's Firefox OS by elioqoshi on Sunday January 10, 2016 @07:22AM (#10875084)
That's one way to frame it! :D
Re:Schrödinger's Firefox OS by Cyberdog on Saturday January 09, 2016 @10:35PM (#10874028)
> There's no Schrödinger about it, FFOS is alive.

Is it, though? It's pivoting from being an OS for mobile phones, which is something that billions of people use and understand, to being an OS for "internet of things" devices, which are… uh… internet-connected thermostats and refrigerators and stuff? I guess?

But even if smart fridges are really going to become a thing, are we not not anticipating Firefox OS not facing the same challenges it did in the phone market? That is, if I'm gonna make a smart fridge, why would I choose FFOS over Android, especially since devs for the latter are far more common?

Re:Schrödinger's Firefox OS by hardwaresofton on Saturday January 09, 2016 @10:59PM (#10874077)
Obviously, I'm incredibly biased, but I think it's reasonable to see the shift as applying FFOS to a different thing. The OS they've created is flexible enough to go on a completely different device, where as I don't think android belongs many places outside of phones and tablets.

I think that flexibility is what lets them avoid calling this a failed project, and more of a pivot. By the way, FFOS hasn't become any LESS of a phone OS just because they're focusing on applying it to IoT stuff -- It still runs great, and you can flash it to a lot of flagship phones without any problems.

The best thing about FFOS is that it doesn't require buy in to some closed platform. Your connected fridge apps and your connected microwave apps are just going to be webapps, which take advantage of an in-browser (knowing the devs at mozilla, most likely well documented, open an reasonable) API.

While I definitely don't know what manufacturers actually go through (I'm not one), I might choose FFOS over android because of ease of app creation, lack of having to deal with Google, and more thoroughly open OS. If I want to spin my own version of gaia (the frontend for FFOS), it's incredibly easy (and of course, styling HTML/CSS, and adding some JS is in my opinion, easier than dealing with the Android ecosystem)

Re:Schrödinger's Firefox OS by epoch1970 on Sunday January 10, 2016 @12:15AM (#10874279)
> The OS they've created is flexible enough to go on a completely different device, where as I don't think android belongs many places outside of phones and tablets.

I'm confused by this claim.

Doesn't Firefox OS use the Linux kernel, like Android does?

Doesn't Firefox OS incorporate part of the Android HAL into Gonk?

And how does Gecko really differ that much from Blink in this scenario?

I find it strange to think that Android isn't suitable for this use, but somehow Firefox OS is, although they're so similar.

Re:Schrödinger's Firefox OS by soapdog on Sunday January 10, 2016 @04:46AM (#10874817)
The main difference is that gecko with the web apis to access hardware features provide a very nimble layer that makes quite easy to develop apps with JS that previously could only be developer with Java or Obj-C/Swift. Its like phonegap without wrappers.

Imagine if your web app could directly talk to hardware sensors, disk and phone features if the user gave it permission.

The difference is that blink does not offer such APIs not this tight integration with the OS to the point where gecko is the OS. It used to be called "boot 2 gecko" for a reason

Re:Schrödinger's Firefox OS by digi_owl on Sunday January 10, 2016 @02:44AM (#10874591)
Actually FFOS uses everything Android that is below the Java VM.

I think recently there was an apk released that allows you to try out the UI part of FFOS as an Android launcher.

Re:Schrödinger's Firefox OS by hardwaresofton on Sunday January 10, 2016 @12:21PM (#10876072)
Yes:

https://www.mozilla.org/en-US/firefox/os/2.5/

2.5 allows you to download an Android app and try out FirefoxOS

Re:Schrödinger's Firefox OS by hardwaresofton on Sunday January 10, 2016 @12:19PM (#10876063)
You're right, it's a weak/bad point.

What I wanted to convey was that with the flexibility in layout/design that HTML/CSS brings, along with the relative simplicity of the FFOS code base, I think it would be easier for someone writing custom UI to do it on FFOS (like a custom fridge UI) than it would be on Android.

What I'm assuming is that whoever is writing something like a fridge UI might have a tendency to go outside what android allows you to do is going to want to go outside what Android lets you do in a view. But I dunno, a case could be made that they're just equivalent but different troubles.

There's also the case of qualifying for gapps and what not, there are less strings attached to FFOS.

Re:Schrödinger's Firefox OS by purpled_haze on Sunday January 10, 2016 @12:20AM (#10874291)
> why would I choose FFOS over Android

Updating JS apps is a bit less tricky than updating Android apps perhaps?

The primary problem with the IOT though is updating the firmware/OS and/or apps on all the devices in an ongoing and secure way. Neither Android or FFOS solve that.

Re:Schrödinger's Firefox OS by creshal on Sunday January 10, 2016 @02:29AM (#10874570)
> Updating JS apps is a bit less tricky than updating Android apps perhaps?

Except that FFOS already has a worse fragmentation than Android, because no hardware vendor ever bothered to properly support their FFOS phones. It's been dead on arrival as far as the mobile market is concerned.

Re:Schrödinger's Firefox OS by bobajeff on Sunday January 10, 2016 @12:21AM (#10874292)
If I'm not mistaken the pivot is from being a branded platform with a central app store to being a "white label" platform that any company can build their own system with (like what J2ME was).
Re:Schrödinger's Firefox OS by empressplay on Saturday January 09, 2016 @09:55PM (#10873931)
I'm still struggling to understand how an interpreter is any good for IoT uses? Isn't using a language that can compile to bare-metal much more efficient?

And if we're talking about the UI on say the front of your fridge, isn't there a squillion other toolkits out there already for that?

I just can't see this working.

Re:Schrödinger's Firefox OS by hardwaresofton on Saturday January 09, 2016 @11:02PM (#10874083)
Valid concern! JS is not your traditional choice for embedded systems, but in many ways, it's becoming (is, I think) "good enough".

- JS can achieve some serious speed with the enormous amount of work and JIT smarts that have gone into the various JS engines.

- Size/memory constaints on embedded devices are only going to get looser, and I think the kind of IoT devices that the FFOS is targeting are the type to have more than a simple microcontroller

- I'm not sure what you meant by toolkits out there for fridges... Do you mean the OSes that run on the smart-fridges? If so, in my other comment I noted how FFOS's web-apps-are-apps approach is fantastic -- exposing a simple, unified, easy to use javascript API is an extremely easy way for people to write webapps that target things like fridges, without having to learn some random new platform.

Re:Schrödinger's Firefox OS by chris_wot on Sunday January 10, 2016 @09:09AM (#10875326)
There are already numerous choices in the embedded marketplace for an OS. The issues on embedded devices appear to me to be considerably lower level than the browser.

I think your average embedded systems engineer might be very surprised to hear that Javascript is "good enough" for their microcontroller...

Re:Schrödinger's Firefox OS by hardwaresofton on Sunday January 10, 2016 @03:02PM (#10876910)
I did not say to put javascript on a microcontroller -- this is precisely why I mentioned form factors that have MORE than a simple microcontroller, which would make JS more viable.

Also, the numerous choices in the embedded marketplace also imply numerous specialized choices for display, sandboxing model, API conventions, etc. I think FFOS has an edge in this area because it just reuses the work people have already done pushing the web forward.

Re:Schrödinger's Firefox OS by sunfish on Saturday January 09, 2016 @10:43PM (#10874050)
JS isn't just about interpreters these days, but at the same time, IoT isn't just about efficiency. It's also about integrating with ecosystems, so that each IoT device isn't an island of itself, but can join a bigger picture.
Re:Schrödinger's Firefox OS by epoch1970 on Saturday January 09, 2016 @11:58PM (#10874243)
> It's also about integrating with ecosystems, so that each IoT device isn't an island of itself, but can join a bigger picture.

So why is JavaScript critical for this?

C, C++, Go, and pretty much every other language out there seeing use today is capable of working with JSON, making HTTP requests, and so on, in addition to supporting communication far beyond those technologies.

How are they any less capable than JavaScript in this case?

Re:Schrödinger's Firefox OS by hardwaresofton on Sunday January 10, 2016 @12:08AM (#10874266)
Javascript isn't strictly critical for IoT, but it does benefit for being the language of the web. FFOS is in a great position to take advantage of this, because FFOS's "apps" are what we generally call web apps.

Mozila doesn't have to reinvent wheels (though they will of course have to extend what we think of as the web) to handle mechanisms that have already been discussed/implemented/proven on the web.

I think if you wanted to do stuff with those other languages, you'd have to build up a little bit of tooling, libraries, and other odds and ends, and you can skip at least a little of that by using JS+HTML+CSS

Re:Schrödinger's Firefox OS by Sanddancer on Sunday January 10, 2016 @02:01AM (#10874520)
MS's IoT platform lets you use JS where it's appropriate, but at the same time, doesn't pin you down to it. You can also write things in C#, C++, etc, even mix as needed. The problem with Firefox OS is that it's just javascript, no escape hatch, no way to talk to the rest of the non-web enabled world.
Re:Schrödinger's Firefox OS by soapdog on Sunday January 10, 2016 @04:49AM (#10874825)
JS on Firefox OS can talk to non-web enabled world. You have APIs to do TCP, Bluetooth and USB. Also APIs to do GPIO and I2C from JS are being developed. You can talk to more things than just http servers.
Re:Schrödinger's Firefox OS by hardwaresofton on Saturday January 09, 2016 @11:07PM (#10874095)
I agree, many of the IoT devices are certainly large enough to have at least a raspberry pi form-factor device in them (if not bigger) -- I would expect a bunch of the "smart-home" related IoT devices to have decent specs, at least ODROID or raspberry pi level.

Also, the web as a platform is obviously very very well-known and popular. Mozilla just has to craft and expose the right APIs, and support the right devices (and handle the fragmentation), and they could have a great easy-to-use, robust platform almost overnight.

Re:Schrödinger's Firefox OS by ndesaulniers on Saturday January 09, 2016 @11:10PM (#10874110)
> Isn't using a language that can compile to bare-metal much more efficient?

Let me introduce you to my friend, WebAssembly.