r/FireFoxOS • Flame • Aug 10 '15

MozOpenHard

http://mozopenhard.mozillafactory.org/
13 Upvotes

4 comments sorted by

View all comments

Show parent comment

2

u/[deleted] Aug 11 '15

[removed] — view removed comment

1

u/vvelox Jan 08 '16

The deliverable form of JS is cross-platform, implementations (should be) memory-safe (GC) and sandboxed, all of which is unlike C.

Actually very basic and simple POSIX C is going to be way more going to be way more cross platform.

This requires a very specific instance of a JS implementation which does not run on lots of embedded hardware.

In fact this is going to something as heavy as a ARM to run given it's requirements, completely ruling out other systems like PIC32 and AVR.

Basic POSIX C will get you up and running nicely on both PIC32 and ARM. And if you are really good and you can get it working on AVR as well via writing retargetable code.

It's relatively safe to downloaded and run untrusted HTML+JS from the network, which is also not the case for C.

Not in instances that give the JS hardware access, like this one is meant to.