Live data from Hacker News

Chirimen, a Firefox OS-Powered IoT Single-Board Computer Developed by Mozilla

mozopenhard.mozillafactory.org

71–80 of 135 posts

Re: Chirimen, a Firefox OS-Powered IoT Single-Board Computer Developed by Mozilla

#71
post #30

Earlier quoted context omitted.

Most embedded applications consist of a tight loop of constant polling. People slow things down by using delays... But if you use the wrong sort of delay (read: the most popular one https://www.arduino.cc/en/Reference/Delay ), you'll end up executing nops instead of powering down the processor

What would then be the right way to sleep? I've always wanted to do something like 'sleep until event and do absolutely nothing till them', but end up using the delay every time.

Most microcontrollers let you configure a timer that runs while the processor is in sleep, then triggers an interrupt to wake you up.

In this style of coding you end up with

  main()
  {
  configure_interrupts();
  while(1)
  {
     do_irq_bottom_halves();
     sleep(); // "wfi" in ARM
  }
  }

Re: Chirimen, a Firefox OS-Powered IoT Single-Board Computer Developed by Mozilla

#72

Earlier quoted context omitted.

I agree with your general point, but saying Google has better engineers is a bit of an assumption.

I don't think it's an assumption. Just look at the contributions of some of the senior staff engineers such as Brad Fitzpatrick for GO, Jeff dean to name a few on their projects. I don't see any parallel at Mozilla who could rival them. Well, for really ambitious software projects, you really need someone who has tonnes of experience and can write really good code. Not to say that Mozilla doesn't have any, but I thin…

> I don't see any parallel at Mozilla who could rival them.

Are you serious? Patrick Walton, Alon Zakai just to name a couple.

Re: Chirimen, a Firefox OS-Powered IoT Single-Board Computer Developed by Mozilla

#73

Earlier quoted context omitted.

I don't think it's an assumption. Just look at the contributions of some of the senior staff engineers such as Brad Fitzpatrick for GO, Jeff dean to name a few on their projects. I don't see any parallel at Mozilla who could rival them. Well, for really ambitious software projects, you really need someone who has tonnes of experience and can write really good code. Not to say that Mozilla doesn't have any, but I thin…

Both Go and Jeff Dean's projects are meant for server-side work, so it is unsurprising that Mozilla is not a rival in this space. However, it turns out they are heavily innovating in the same space as Go with their stunning work on Rust. Additionally, they are building world-class next-gen products with their work on Servo and Daala. Not to mention fantastic tools such as http://rr-project.org/ . I believe your asses…

Well, you could say Servo is world class, but on what basis? Rust looks very nice but hardly anyone outside Mozilla is actually using in production as compared to Golang which has a very good adaptation in the community.

Re: Chirimen, a Firefox OS-Powered IoT Single-Board Computer Developed by Mozilla

#74
post #38
post #10

Creating an entire HTML page structure just to get to the code because you need a tag? Oh god.

You don't need to create the whole page structure like in the example though. html, head and body tags are optional under certains conditions. [1] I guess you could just write the example code like this : var v = 0; GPIO.getPort(196).then( function(port) { setInterval(toggleLight, 1000, port); } ); function toggleLight(port){ v = v ? 0 : 1; port.write(v); } Just having the script tags would also probably works in mos…

Just using script tags will work in every modern browser. I can't even remember how far back in IE you have to go for it not to work there.

Re: Chirimen, a Firefox OS-Powered IoT Single-Board Computer Developed by Mozilla

#75

Welp. Two hours in and the comments are shaping up as you'd expect on HN. Is it really so hard to empathize with people who have different skill sets than yourself? Yes, C would be more efficient. Yes, this wouldn't be very cost effective used in a high volume product. Yes, it's a little funky to write a web page just to plonk your script tag in there. But, if you spend all day doing front-end dev with jQuery and jus…

On JanOS it's possible to repurpose some of the GPIO pins, as I did here: http://blog.telenor.io/gonzo/hardware/2015/02/10/gpio.html

Re: Chirimen, a Firefox OS-Powered IoT Single-Board Computer Developed by Mozilla

#77
post #56

Welp. Two hours in and the comments are shaping up as you'd expect on HN. Is it really so hard to empathize with people who have different skill sets than yourself? Yes, C would be more efficient. Yes, this wouldn't be very cost effective used in a high volume product. Yes, it's a little funky to write a web page just to plonk your script tag in there. But, if you spend all day doing front-end dev with jQuery and jus…

I agree, and I come from an old-school C and embedded background. If you do it in C, you have the opposite problem: interacting with the hardware is easy, speaking to a web API becomes a huge pain. There's an "impedance mismatch", which has to be overcome somewhere. And computing power is getting cheaper and cheaper. We're at the point where if you have a little board in a case with some I/O connectors, the CPU will…

If you know C, you will love Arduino. It's very easy to "to speak to a web API". They are usually low power 8-bit CPUs with 16 MHz, exactly right for small projects like blinking some lights that should run on battery for years.

JavaScript/Python/etc on RaspherryPi or this new Mozilla thingy are interesting too, though will drain your battery faster. You need an OS on a 32bit CPU. If it's connected to the web you should also update the software stack.

Re: Chirimen, a Firefox OS-Powered IoT Single-Board Computer Developed by Mozilla

#78
post #3

"Make Real Things with Browser Technologies" How is that better or so different than making real things in C ? What problem would it solve? I get that js got very popular thanks to browsers, but does that mean we should use js for everything? Seems like mozilla is just trying to salvage firefoxOS.

I've developed a few things on my Espruino Pico[1] board, some Raspberry pi and also so arduino things. Just toys really. One of the nice this I've found with the Pico is because of the JS vm, when I don't do anything in the code all the power in the chip goes to sleep state, and just wakes up for me as I've got scheduled. Yes Arduino has sleeps but i've also go to go learn that as another thing, yes the Pi can be co…

The Mbed, which is the Arduino' "professional" brother, does support event driven sleep using callbacks:

https://developer.mbed.org/blog/entry/Using-the-new-mbed-pow...

Since this is a part of the new mbed-2.0 os , i think there are already 5 micro controllers that support it.

Re: Chirimen, a Firefox OS-Powered IoT Single-Board Computer Developed by Mozilla

#79

Earlier quoted context omitted.

Every year as December 31st looms, I sit down and parcel out my end-of-year donations to organizations I care about. Wikipedia, EFF, and of course some non-tech-related charities. Every year, I weigh whether I should throw some bucks to the Mozilla Foundation. I've been using their browsers, under one name or another, for over 20 years since the day I first discovered the web. It's been the most important piece of so…

This is a strange comment that starts in one place, and ends with your musings on the collapse of Mozilla. First off, Mozilla didn't have FF "fall into their lap" from Netscape. Netscape spun it off and gave birth to Mozilla. They absolutely do not consider Firefox legacy software and you'll need to back that up somehow for me to believe it. They may very well be a better company at $2M than they are at $300M, but th…

> First off, Mozilla didn't have FF "fall into their lap" from Netscape. Netscape spun it off and gave birth to Mozilla.

Not that this is a critical point worth arguing about or getting bogged down with pendantics... but I don't see any meaningful distinction in what we're saying.

Mozilla was bootstrapped with Netscape IP. They maintained Navigator/Communicator for awhile, then split its browser and email features into separate slimmed-down applications. My point was that their flagship applications come from inherited IP, and none of their original IP developed since the Netscape split has been remotely as impactful.

> They absolutely do not consider Firefox legacy software and you'll need to back that up somehow for me to believe it.

I struggle to name any meaningful developments in Firefox over the past 7 years that are not direct imitations of something done by Chrome. The situation with Thunderbird during that same window of time, and Mozilla leadership's view of it going forward, has been discussed at length. All major new initiatives and public visibly is directed toward mobile OS or IoT hardware unrelated to their flagship applications.

In my view, that is legacy software. The definitions and wordsmithing of others may vary, but that's the rationale behind my use of the term.

> the back half of your comment sounds bitter and angry at what appears to be Mozilla's recent announcement on Thunderbird

It is challenging to communicate in an online written medium, without being able to use voice inflection and body language to convey cues and emphasis on certain words as you would in person.

So if I capitalize a few words, or use Markdown formatting on a couple of phrases, that doesn't necessarily denote "anger or bitterness". Italics isn't a microaggression.

For what it's worth, I switched my personal domain's email hosting to Google Apps, and haven't used a desktop email client in years. I'm not personally bitter over the decline of focus on Thunderbird.

I'm simply wholly uninspired by everything that Mozilla leadership is trying to inspire me with today. The declining usage of their flagship applications, along with failure to gain traction for new initiatives, indicates that I'm hardly a minority. They need a more focused vision and identity.

Re: Chirimen, a Firefox OS-Powered IoT Single-Board Computer Developed by Mozilla

#80
post #77
post #56

Earlier quoted context omitted.

I agree, and I come from an old-school C and embedded background. If you do it in C, you have the opposite problem: interacting with the hardware is easy, speaking to a web API becomes a huge pain. There's an "impedance mismatch", which has to be overcome somewhere. And computing power is getting cheaper and cheaper. We're at the point where if you have a little board in a case with some I/O connectors, the CPU will…

If you know C, you will love Arduino. It's very easy to "to speak to a web API". They are usually low power 8-bit CPUs with 16 MHz, exactly right for small projects like blinking some lights that should run on battery for years. JavaScript/Python/etc on RaspherryPi or this new Mozilla thingy are interesting too, though will drain your battery faster. You need an OS on a 32bit CPU. If it's connected to the web you sho…

I thought Arduinos didn't come with Ethernet on the chip, and instead you have a Heath-Robinson addon board which you speak SPI to another microprocessor which has the TCP/IP stack, MAC and PHY on?

The only thing I've seen that seems to really be viable for remote battery operation is the ESP2866. I have a Pi in my cupboard reading the electricity meter.

I really ought to learn Arduino, simply because it's so popular.

Post reply on HN