Tessel: The end of web development as we know it
slideshare.net
slideshare.net
See, Javascript maybe a 'bad' language according to many of you, but it has massive adoption unlike other languages. These board creators just want to ease the path for most web developers to become hardware developers. It not only opens up a whole new industry to work with, but also it creates a good 'filter' to filter out the bad ones. I will explain.
The thing about hardware products is that most people dont care about internals. Most of them care about the experience. I am NOT an Apple fanboy, but in this occasion I would like to cite the iPhone's sales as a good example. If you suck at programming in Javascript, it will show up, especially in the Hardware world, easily, and you/your product will be rejected.
Also, when you develop, say, a DSLR Quadcopter[1] with this board, people aren't going to ask you "What language is it running on?", "How slow is your language?". People are going to be asking about the footage you're going to film with it. Let's not dissolve ourselves into the hatred of a language. Instead, let's take the time to appreciate what these developers have achieved and what we can build out of these boards.
Cheers.
[1]A sample DSLR quadcopter for reference: http://farm7.staticflickr.com/6225/6868828438_e6d798c68d_b.j...
What exactly happened to the programmers who, upon realizing that they had to use a new technology, learned the new technology instead of feature-creeping something until it gets to their familiar JS boat.
I'm not going to rant that this is never going to fly. Were it based on technical consideration, the current image of Web 2.0 would have sunk like a rock, let alone even try to fly. But this is horribly inefficient and backwards that encouraging seems incredibly detrimental to our field.
Come on, people, it's not that hard. If you want to do embedded development, a reasonable subset of C is all you need to know, and it certainly takes less to learn that it took to learn half a gazillion JS frameworks. Ask your boss to give you a one or two-week leave and give you a break from your 70 hours a week streak, and learn something that's actually new for a change.
I would hate to try to code such a program in C for connecting to the web. Sure I could definitely do it if I took a couple weeks off, but from what it looks like I'll be able to code that program in under an hour using the Node.js I already know and the libraries that the open source community has already developed.
Anyway, that's why I ordered a Tessel and am looking forward to developing with it. If it turns out that I really fall in love with embedded programming then sure I'll bust out the C compiler and learn the low level coding. But in the meantime I welcome the chance to learn about Node.js in a familiar environment where I can get stuff built quickly using a toolset I already know.
Why would you want to connect a wall switch to the web in the first place? The Internet of Things doesn't necessarily have to mean the WWW of things.
For instance, you can always expose low-power devices through a low-overhead, low-power & short-range communication protocol to a <that-protocol-enabled> router. It also makes sense to have all of those devices configured from there (indeed, via a web interface exposed on the gateway) rather than having a web server on each of them.
nRF24 – low power wireless communication with mesh capabilities (good for tying lots of Tessels together without WiFi)
So one Tessel can be the web server to connect a cluster of Tessels communicating via nRF24 to the web. Or you could use one Tessel as the router to connect a bunch of nRF24 Arduino devices to the web.
Out of curiosity, what do you think about Lego Mindstorms? Especially the later versions which allow a large multitude of programming languages to be used?
If you use node.js, you have both JavaScript and native modules.
Use JavaScript for the non performance critical parts, use C for the parts that touch the hardware, and leverage the great node ecosystem.
Power consumption and, to some extent, board size have been very significant drags for the Internet of Everything. Mindlessly throwing libraries at them just to help people who are too lazy to learn a new programming technology is only adding a drag on it.
I certainly don't want to drag this into the mud. It's certainly a good learning platform which can provide exposure to a range of devices for people who would otherwise not even hear about them, or for whom the initial technological barriers would be too high to overcome in a single evening. But this is far, far from adding any kind of value to the struggle towards universal Internet connection.
Embedded dev is all about performances, power consumption ,etc ... it is about focusing on hardware , not about how much libraries you can throw at a problem, since you usually do not throw any,because of limited memory, computation power...
Let's be clear about it, the merits of the language have nothing to do with its adoption. It's widely adopted because Javascript has a stranglehold on the browsers and people don't have a choice. Nowhere in the software space would such a monopolistic position be acceptable, but hey on the web for some reason it's OK.
So yeah, it's the dominant language but not because it's oh so good or because people think it's awesome (though some of them do and I respect that), it's only because there's absolutely no alternatives.
Having a platform that is already out there and which you can execute against without even an install might not prove much more about the merits of a language, but it is a merit in its own right.
Of course, in this particular case... JavaScript isn't exactly widely deployed in hardware, and this device is what provides the platform so... yeah.
> It's widely adopted because Javascript has a stranglehold on the browsers and people don't have a choice.
That's not entirely true. People have had lots of choices. There was Java. There was Flash. There was even VBScript on IE (I bet you didn't know that), not to mention all the EMScripten fun that is now available. Time and again, people choose JavaScript if for no other reason than for its lowest common denominator qualities.
> Nowhere in the software space would such a monopolistic position be acceptable, but hey on the web for some reason it's OK.
If you consider the list of widely used languages for which there is an approved standard by an independent standards body and multiple independent implementations, you end up with a surprisingly short list (and some qualify but by the skin of their teeth). I think, sadly, this is actually quite widely accepted.
@document.query_selector_all(".fancy").each do |element| ... end
I find that annoying. That a few companies have tried to introduce proprietary extensions is another topic, it doesn't mean that there is a real choice for developers.
The point is that some people decided some time ago that scripting the web and accessing everything browser-ish (DOM, Canvas, SVG, WebSockets, Web Workers, etc.) meant Javascript and that was it. The lack of choice and variety at hand is absolutely ridiculous. In no other software space would people tolerate to be forced into a technology like that.
I spoke in the past tense because those were choices available to developers... JavaScript seems to have won out as a preferred choice. EMScripten opens up a lot of possibilities though...
> In no other software space would people tolerate to be forced into a technology like that.
I think history would beg to disagree.
Such a language also is dependent on HTML-standards.
We should see interpreters for other languages written in JS - or is that far fetched?
That's kind of Applet's 101: http://docs.oracle.com/javase/tutorial/deployment/applet/man...
Flash has similar (arguably much better) API's for this as well. There are graveyards filled with other attempts.
> Javascript absolutely is the only option, and people have no choice.
Being the most broadly supported and most integrated solution doesn't mean developers have no choices. It just means they JavaScript might be their best choice. On almost any platform there are going to be certain programming languages that are more integrated and better supported.
> That is why people invest so much time in writing LANGUAGE_X to javascript compilers, so they can write code in a less terrible language even though it has to be deployed as javascript.
And there you have it. JavaScript wins by virtue of being a better deployment platform in the browser space. At one time Java used to enjoy an even broader advantage. Acrobat, Flash, VBA, Bourne Shell, MSI, Unix DBM, SQL, sendmail, PHP, MySQL, Windows, Linux, C, POSIX, PostScript, XWindows, etc. have all ridden these kinds of waves. Some are more successful than others, and certainly the web browser is probably the most ubiquitously deployed runtime environment ever, but really, if anything this is normal and the broad diversity is not.
It's not unfair or unusual, so much as inevitable.
People arguing about programming languages are like people who focus more on cameras than on the art of taking good photographs.
Those of us defending JS or PHP or VB (in discussions which aren't about programming languages) aren't suggesting we should take a point-and-shoot (or a leica) to an action game.
Hmm... just to play on that metaphor: there are certainly camera choices that can make the process of learning to take good photographs easier or harder. Isn't that a relevant point?
For example, i used to have a little digital compact. It had autofocus; the autofocus wasn't perfect, or even particularly great, and there was no way at all to focus manually. I have countless pictures which were ruined by being out of focus, and there was nothing i could do about it. I now have a camera which lets me focus manually, which means that a picture's being in focus or not is now entirely in my hands. The former camera was not adequate for the photographs i wanted to take; this one is.
An interesting point is that a 40-year-old film camera would also have been adequate, although much less helpful in other ways.
This feels like it could be a good metaphor. C is a 40-year-old SLR covered in dials and switches, enormously capable but a nightmare to work with to anyone but a master; JavaScript is a digital compact which automates everything whether you like it or not. Java is a modern dSLR, capable and more automated than C, but still clunky. Rust is a Leica M9, still manual but modern in other respects. Go is a bafflingly-horrendous-to-outsiders Lomo camera. PHP is a Fisher-Price toy camera. Clojure is a Lytro, weird but capable of amazing things (but weird). Scala fans think their language an E-M5, but it's really an EOS M.
The language shape the minds, define the boundaries and the kind of solutions that can/can't be done in a reasonably time.
Look as pretending enlightenment to say that languages not matter, that only matter the man behind them. Well, is that is true, the mans behinds the languages mean nothing? Is only the work that create the ones using the languages that matter but not the work that make THAT possible?
The tool matter. You can build a city with only a hammer. But is stupid. Some languages ARE better than others. Some ARE faster. Some ARE more legible. Some ARE more performant. Some ARE safer. Some ARE more productive.
Maybe two languages too close in his objective give small returns, but surely exist order of magnitude improvements between different groups...
Javascript web code epitomizes the "long tail" of random ideas being articulated. The code is written quickly, needs to change a lot in response to user behavior and designer inspiration. It's usually < 10k lines, so its terrible medium- and long-term maintenance characteristics are manageable. It's written by millions of independent teams to bring to life millions of small ideas used by (typically) only a few users. And that's great, we really need languages for that.
But, humor me for a minute, and let's define "the C law": Anything important enough to be used broadly will eventually be replaced by something written in C(++). Why? Because solution X not written in C is always vulnerable to replacement by solution Y written in C with the equivalent feature set, and the demand is now high enough to provide the time and talent. See: every python module ever used by more than 1M people. See: every programming language implementation (incl javascript and luajit!) ever used by more than 100k people. See every operating system, every database used by more than 1 million. See every web server running top 1000 websites. See (almost) every tech startup that becomes a fortune XXXX company, and rolls through its infrastructure rewriting its ruby or its python or its perl in C/C++/Java. See why we're not all using jitted PyPy yet (hint: those pesky c modules make real world cpython often just as fast or faster and more memory efficient).
Languages that trade performance and correctness for productivity are fantastic when the project is young, small, and of dubious value (yet), or narrowly targeted and not generally interesting. Or the browser gives you no other choice.
Consumer hardware product development just doesn't align with this kind of thinking. It races right past the C law threshold. Physical stuff introduces serious economies of scale, design costs, significant difficulty of change, etc, where shipping a few hundred of something doesn't make a lot of sense (as a business; maybe as a hobby project).
So, if you're going to (aspire to) ship a million of something, investing in the software side to keep costs down, maximize battery life, mitigate risks related to a misapplied language runtime (not designed or heavily tested on embedded), guarantee performance and latency characteristics, etc, makes sense--the compromises that are appropriate for a website because you want to make a little gamble fast don't apply... you're making a pretty big gamble, and it will take awhile to get right anyway, and your capital needs are higher in general, so doing software "right" to save on COGS is just practical.
BTW, "C" here is usually C or C++, but it can very occasionally be Java [see: zookeeper] or some other JVM thing like Scala. Regardless, it basically represents the final state reached by the tool/language/platform/project race. If your project could be replaced by a version that says "like $project, but fast/battery efficient/cheap!", you are not yet at the end game, and the C law could always be invoked (if the demand was sufficient), and your project will probably ultimately lose the lion's share of the market (or open source mindshare, or some other version of "market").
So, maybe this project is betting on our lives transforming into everyone paying more for their hardware, and everyone using a lot more small/local/boutique type stuff created by small hardware teams. This doesn't really jive with the way technology products are currently marketed, hardened, and distributed, so I'm operating on the assumption that change doesn't happen anytime soon.
It could be useful/fun for hobbyists or prototyping, though.
But ultimately there is always a market below that point - people are selling arduinos now for surveillance or monitoring simply because the market is too small for anyone skilled enough in C to bother.
As the price performance of the hardware drops more of these markets will open up - today the "stuff it use C" point is maybe a 100 units or a thousand. tomorrow a million. then 10 million.
Forgive my hardware ignorance but imagine a system on a chip with the cpu and memory and buses of say today's MacBook Air. everything you want, on a thumbnail, just hook up electricity. If I could buy that for 2 cents I would be foolish if I decided to write almost anything in C till I got real time stats from my first 5 million users.
Twitter did not drop Ruby for Java till they were at the billions of messages level. There are an awful lot of markets and price points between 1000 units and a billion units.
(Especially now when we can realistically talk about every human being having a hand held in x years. which blows my mind but for good reasons)
ps - no I do not think Moores law will hold in terms of transistors in a chip for evermore. but we have barely scratched the surface of "everything on a chip".
(Would be interested on the feasibility of literally a PC on a chip ? If we took a literal count of transistors on say a model two years old and then looked at price to fab that many transistors today what would we see?)
edit: rereading it seems to indicate that there is hardware out there were C is the sensible option - I am just trying to say there is a spectrum of / 8 bit assembler / embedded C-like / DSLs / anything a PC might recognise and that climbing that spectrum is inevitable based on hardware price/performance
If your program in javascript takes 14 times as long to run than the equivalent C version and yet still manages to be performant from a user experience perspective, then you'd better be close to an outlet because we're talking about a beefy and energy hungry processor.
There's a sweet spot related to programming effort and power consumption. I don't think Javascript can hit that sweet spot yet for most devices.
I'd argue that the same problem, but to a lesser degree, is present in other non-mobile devices. I'll buy the one that costs $20 more but costs me $20 less per year on my energy bill.
I think we may even see a bit of a reversal in the current trend of programmer productivity over program efficiency. Clusters of cheap multi-core servers consume significant energy.
I agree, and this could be interesting for some of those small volume domains--but their copy in the slide deck is broadly encompassing and far reaching, implying mass-market products like Nest. I'm just taking them at their word and addressing that application.
The last time a mainstream OS was developed from scratch was the late 80's (1989 to 1993), with windows NT. Linux is just a kernel for an OS from the early 80's (gnu). OS X is a derivative of nextstep, also developed in the second half of the 80's. C was the state of the art back then.
The investment to build a competitive mainstream OS from scratch in a new language is huge. Probably 10x to 100x the effort to build windows nt, which took 250 people 5 years. I think there would be a lot of value in developing an OS in a programming language that deals intrinsically with the topics of security and multi-processing, but at this point it's too expensive to do that and match other OS's feature for feature.
EDIT: for an example, compare linux/drivers/ to linux/kernel/ (core kernel code, including process management and scheduling) and linux/mm/ (memory management) in Linux. The former is huge.
Doesn't or didn't used to?
> So, maybe this project is betting on our lives transforming into everyone paying more for their hardware, and everyone using a lot more small/local/boutique type stuff created by small hardware teams. This doesn't really jive with the way technology products are currently marketed, hardened, and distributed, so I'm operating on the assumption that change doesn't happen anytime soon.
So, didn't and won't. At least not mass-market. Maybe very specialized, low unit volume kind of applications.
js only.
no linux access.
obligatory wifi battery sink.
...its fine to blink a led or do something "dumb" as a thermostat. try to do signal processing in js and i will be slightly more impressed.
Also the performance JS delivers is already between 25% to 50% of clang (assuming you use asm.js).
Their concept is very very cool, and they look like they're having a blast while they're building it, too. Great job guys!
There is no way to really getting around learning hardware. Who is going to write the hardware interface drivers or driver/JavaScript bridge.
Power consumption will rule out the possibility of many portable devices, loss of performance will rule out many options as well as will latency caused by the garbage collected (non real time) nature.
Productivity and prototyping gains that allow you to proof of concept, manufacture and sell small runs of (expensive) toys, enables large scale investment to manufacture more mature products.
There's absolutely nothing wrong with this approach, and, honestly, the 'big bang' approach of writing it all in C and producing 500,000 units before actually getting them out to anyone is extremely risky.
That's why hardware doesn't get investment.
Just look at kickstarter; great ideas popping up, people wanting them, people getting them.
If you only ever end up making 5000 units for your 5000 backers, so what? Great idea. Prototyped a thing. People who wanted one got one. Not a mass market thing? Ok. We're not not $4,000,000 in debt.
How terrible.
What exactly leads you to believe that hardware doesn't get investment? Besides Kickstarter, I mean. Hardware development tends to be massively funded. You get less exposure for a lot more money, which is why Kickstarter is obviously not a good place to look, but in most projects I've seen it was software, not hardware that tended to be underfunded.
If you've got some links to incubators/hardware startup scenes, please share.
I honestly can't think of any hardware startups which have been funded off the top of my head; maybe Nest? MakerBot (weren't they privately funded by the founders)?
It's not like we haven't seen this play out before. Over and over again, flexibility, easy debugging, time-to-market and Moore's law have gone up against the 'real men' approach - and won hands down. History doesn't always repeat itself - but it's usually the way to bet.
Most web developers don't know javascript though. Even the ones who write javascript, I'd estimate fewer than 1 in 10 know the language even at a basic level. Most people are just grabbing messes of jquery infested crap and copy+pasting it. Then making random changes until it seems to work. That's why so much javascript out there is invalid according to the language spec, and doesn't work in less popular browsers.
Lua has by far the smallest, most portable, easy-to-integrate runtime of any embeddable language I am aware of. JavaScript has good implementations (V8, etc) but they are orders of magnitude larger, more complex, and imposing if you're linking them into your binary.
If this is truly a robust JS implementation, this means that there is now a tiny, easy-to-embed implementation of the programming language that powers the web. This could enable JavaScript to start making inroads in the "embedded language" space, and really become the language of both client and server.
If it can compile to LuaJIT bytecode also, it could also possibly be competitive in speed with other JS implementations, though some of that would depend on how efficient the resulting bytecode can be.
I think this would actually be a cool trend. Having a code-base that can run either in the browser or "natively" is a powerful approach. Though Lua is a cleaner language, JavaScript is a totally decent language if you use it right -- much better than a lot of people give it credit for. Hint: if you think JS sucks because of browser incompatibilities, what you really hate is bad implementations of the language, not the language itself.
Of course another approach to achieve "one language" would be to have a Lua->JS compiler (or Lua->asm.js, or a Lua interpreter in asm.js). But Lua the language is a bit more of a moving target; to preserve cleanliness and orthogonality they sometimes break the language in non-backward-compatible ways.
At the risk of going slightly off topic, this is true only if you have purely academic interests.
A programming language, fundementally, is just a document with a spec (for the sake of argument, let's ignore the languages that have a reference implementation as a "spec"). That spec is all there is to it for PL geeks.
Us engineers, however, we want to use a language. I don't care what's in a spec, I care about whether it works, and how. Whether it works is completely related to the implementations of the language that I need to consider, and completely unrelated to the language spec.
Besides bad JS implementations, Python is a fun example. It effectively has two mainstream implementations: CPython 2 and CPython 3. If you want to support both, you face all kinds of hurdles, much like cross-browser JS programming. Does this mess badly reflect on the language itself? Hell yeah.
This is indeed a hard problem, and is precisely why the ECMAScript specification exists. Whether it's precise enough in all instances is another question. In other realms, the same problem is faced by Java, and there the implementation is split into the compiler and the JVM. Breaking it into two pieces at these boundaries has advantages - compliance suites can test that the compiler generates valid bytecode (the Java equivalent to native machine code) and further test that the JVM behaves as expected with known bytecode.
As for Python 3, if they hadn't made breaking changes, people would complain instead about the various warts the language has acquired over the years that they refuse to fix for the sake of backward compatibility. There's no solution that makes everyone happy, but I'm glad that the python community is still willing to make high risk / high reward decisions about the language's evolution. That's a sign that it's not yet set in its ways.
I don't think that it's at all the same as the current JS problems. Most Python devs (myself included) are sticking to the newer 2x releases because
- things work perfectly well in 2x - 2x is still actively developed - we can pull down 3x behavior from 'future' when wanted - no one is putting a gun to heads to make people upgrade - python isn't client side. if you can't make up your mind or ship correctly, that's on you, the dev
Which is to say, I don't see how this reflects poorly on the language. If a developer feels that he needs to support Cpython 2 and 3, that's his own deal because he could pick one and bundle his application appropriately.
Now for JS, you don't really get a say as a front-end dev because the client is in charge of what interpreter he brings to the table. You don't get a say, unless you know what browsers you can get away with targeting (e.g. ie6 users aren't likely to be shopping for the latest android device).
- is it full Javascript? If not, what is missing?
- how fast does that Javascript run?
The latter, in particular, is important. If there is runtime translating Javascript idiosyncrasies to Lua, performance may be really bad. For example, it may be a lot of work to map Javascript's == with all its quirks (http://www.rossgledhill.co.uk/2011/10/12/javascript-quirks-e...), where the integer 3 equals the string "3" to Lua's equality operator (http://www.lua.org/pil/3.2.html), which behaves like Javascript's ===: "If the values have different types, Lua considers them different values."
And no, that does not stop at "but no sane person should use == in Javascript". '<' is different, too: "To avoid inconsistent results, Lua raises an error when you mix strings and numbers in an order comparison, such as 2<"15"."
I want a computer that can open and close my chicken coop door on a schedule. We're not talking rocket science for this to be pretty valuable.
This is why the presentation keeps talking about web developers. There are more web developers than there are any other kind of programmer. If you want to make your programming platform accessible, make it accessible to web developers.
I'd be more interested in what embedded JavaScript would allow to be done that other existing tools can't currently do. After all, if you're a JavaScript person and you needed to do something on a device or platform, you wouldn't wait for a language runtime to become available, you'd just go learn the existing language/tools and build it?
It's not hard.
But given a choice between Platform A which says "write in a language that all of you already know", and Platform B which says "write in this language most of you don't already know and would have to put in time and effort to learn before you could do anything useful with this platform"... which one would you bet on?
Is there any data to back this up? I would think Java or VB or C++ programmers far outnumber web developers.
ftfy.
That being said, the community is small and there are indeed way too few libraries available in LuaRocks (slightly over 300). We have been discussing that on the language's mailing list and I will probably talk about it at the upcoming Lua Workshop (http://www.lua.org/wshop13.html).
x = 5; // global
var x = 5; // local
Lua just replaces var with local: x = 5 -- global
local x = 5 -- localIn order for "debug" (not just writing/copy-paste some demo code) any "real" project with that, you have to to be expert in Java, Javascript and all the tiniest details of GWT framework. Any crash, stack trace involve stack trace thru the JAVA framework, javascript stack and all the wonderful translation, compilations, VM layers.
The only few programmers who can really do that is probably the few folks who wrote GWT.
Have been programming C, Linux Kernel Driver, Embeded, VB, Tcl, Python, Android/Java, JS, SQL, for past 20+ years, one thing I still love is KISS - Keep It Simple Stupid.
The traditional way of debugging GWT is in eclipse as java emulating javascript emulating java. This actually worked surprisingly well most of the time, but sometimes you did have to step through the compiled code in the browser. Luckily there was a "pretty" compile option.
This is all fun for sparking creativity, but it always seems like a massive diss to the EE's in the crowd when web devs run around fronting that they are going to disrupt the embedded world with their transpiled bloatware. EEs are so stupid and use such crap tools!!! Put some damn Bootstrap on that circuit-to-PCB layout tool. It's so not even flat OR responsive! How the fuck am I supposed to drag-n-drop my codez?!?!?!
My favorite is when someone posts a vid of LED PWM or, worse, just basic blinking... You spent how much time and money on what? And you created the embedded version of the blink tag? Definitely a web developer.
Tester board acquired. Let's go find some problems!
Can't wait until craigslist is full of requests for bringing a dream device to fruition... It'll be an iPhone-killer that also sets the temperature of your house and blinks to let you know your dog bowl just tweeted you and donate a bitcoin to the NSA because you forgot to put the induction recharger next to the eFacuet controller this morning. Equity only. NDA required.
One person converts an arduino or whatever to a red-inked start-up that gets taken out for $1B and it's on...
See getting into full EE is a serious amount of work (I get it, whilst I work on ML stuffs I have spent time in the embedded space; and the web crowd could learn a lot from the embedded folks). I do however wonder how many people would be willing to undertake the effort if they had a toy to hook their interest at the start.
Me, I will happily stay with my FPGA's and verilog, but then I grew up on computers that were meant to be messed with (e.g. the spectrum), in an era where my parents encouraged me to take apart, _understand_ and mend electronics.
Today it feels like this is no longer the case and that bugs me.
Maybe as a toy this fulfills that niche ?
Is that time now, maybe not. But it seems like a great tool to prototype with. I'm really confused how enabling a whole legion of programmers to get creative with hardware invokes such bitterness in you.
I'm sure what you do is very special, and this is no direct threat to that.
MCU's are getting faster at the expense of getting power hungry. Plus there are a several other things that need low level optimization that C provides. There is a reason why C has such a invincible death grip in the embedded domain. It will take you trillions of dollars worth of investment and nearly two decades of effort if you have to dethrone C from there. Nearly every stake holder, is so deeply entrenched in C its not even pragmatic to think you are going to replace at anytime sooner.
>>I'm really confused how enabling a whole legion of programmers to get creative with hardware invokes such bitterness in you.
All programming, is creativity with hardware. Because the form factor got smaller doesn't mean a thing here.
This is the gripe I have with many Rasberry Pi Users, who call printing hello, world 10 times with a python script as 'hardware hacking'. The situation is so super hilarious.
Say you wrote the same Python script on a laptop with the cover removed, now that you see the electronics inside the laptop and you are also running the python script, did you just got magically creative with hardware? Why wasn't it magic when the electronics wasn't visible.
And yes, for any real creative thing of production and mass deployment value. All the best trying to do it in anything apart from C.
When the target embedded circuit needs (and energy needs) are far, far tidier, it is laughable to think that a bunch of wasted IC overhead will undercut any advantage to developing the prototype on a board like this. Simple things can and will be simple.
ATMEGA's are looking for problems. General devices don't compete with specialized. See CPU vs. ASIC's in bitcoin. Hi bitcoin miners with GPU's... show me your hands. Here's your ass back.
And I think that's the comment's point. These prototyping platforms are nice for some narrow band of testing ideas, but don't translate for the "hacking the internet all the things!!!" when compared to what the trained circuit-designers do in their sleep and get mass-produced by morning coffee.
I can make drop-shadows in photoshop and you use CSS3? I'll just use the data layer plugin to make the bestest sites evar!
Originally, web applications were best written by Unix developers; but PHP and the likes allowed to write them without growing a neckbeard, and took pretty much everything.
And if there's one thing EE's hate it's fun.
http://www.infineon.com/cms/en/product/microcontrollers/deve...
Of course its all written in C, but you get the idea.
Otherwise it wouldn't be much of an 'embedded system'. It would be a general computer.
Drag and Drop code generation doesn't work in embedded programming for the very same reasons it doesn't work with higher level languages. Its far too inefficient,code subject to total redesign for small changes in feature requests and beyond all its not economical.
Some day we may get there. But some day we may not even have the need to program anything. Forget embedded systems, but programming in general.
webdev and embedded dev are totally different fields of programming.
And hardware manufacturers dont need 100x new programmers, if these new programmers cant even work with C or ASM...
I applaud the spirit of what they've done, but that's a shrinkified version of a rack server, not a smartened version of a light-bulb. The Internet of things is more about swarms and emergent behaviors and less about turning everything into a tiny stand-alone version of our datacenter servers.
That's a crap-ton of computer and the sysadmin that goes with it to flip a switch. I don't have a beef with programming the 'net of things in java or lua or even pascal. What I'm saying is that that's way too much computing too far down the stack. The closer we get to the GPIO pin, the less computer, expense, and electrical requirements there should be.
I'm just saying that the thing that should be hitched to the actual GPIO pin ought to look and function more like an RFID tag and less like a mini rack server.
I have not been so child-like excited for years.
by throwing a wasteful amount of computing power into just turning on a light, we put this in the reach of more and more people.
we could have web servers in assembly language, and it would be more efficient use of computing resources - but that's not been the optimal way and it won't be here either
and probably wildly popular.
Everything involved in moving servers downstream is getting smaller and smaller and less and less expensive. Why not have the end node with as much computing power it needs so that it can control and communicate with swarms, rather than the swarm being controlled by a centralized server.
Its not really a swarm being "controlled by a central server", its nodes discovering each other and creating a de facto, discoverable api amongst themselves without overt configuration. LivingRoom.Lights.Bright=5 will cause modules you've tossed in your living room to say "hey, I'm a light, I'm in the living room, I should be brightness 5 now!"
A bit more generally, I'm just not sure how a light can be all the things you want it to be without having a pretty complicated stack underneath it. This is a hard problem, and there's going to need to be a bunch of technology in there. Even a common stack of technology. In fact, a web server seems like it would be exactly how you'd want here, because it presents a simple, consistent interface for communication. Generalized interfaces between diverse systems is exactly what HTTP has been so successful at. What are the alternatives and how would they make these devices less computery?
It sort of sounds like your objection is that many web servers aren't simple enough in the sense that they have the complicated configuration APIs which are used by their admins, who want to make really specific human-targeted applications out of generic but wide frameworks built specifically to make that possible. Routing and same-origin policy and access control and extension points and caching and whatnot. Perhaps you're about that, but it's not really a problem with the depth of the stack, and none of that is central to being a web server, or even part of NodeJS.
I think that once you factor in things like battery life, mass production price and complexity, they are.
You can have a swarm of lamp-toggling or temperature-showing things built with two reasonably unpretentious chips and a very simple production process, that allows you to build them cheaply and reliably, and have little enough processing power that you can run them off a small battery.
Throw in the stuff you run Node.js on (of all things...) and it's suddenly not such an unpretentious chip that also ensures running them on battery is out of the question.
A lot of people think hardware design is all about milking the processing power. Part of it is, but there are a lot of things that don't get much exposure because most software developers take them for granted. Battery life (and its cost) is a prime example.
Javascript is a good programming language, in that it's expressive, fast (much faster than Python), and more importantly it runs everywhere. No ecosystem can grow without developers, and the success of Node.JS clearly shows that developers like a system they can dive into without much prior effort, using skills they already have.
Tessel allows web developers to use skills they already have to do new things. How could that possibly be a bad thing? Just because Javascript has '==' and '===' and both 'null' and 'undefined' and {} + [] !== [] + {}? I swear, everybody seems to have seen the 'Wat' talk and thinks they're now experts on Javascript development.
Javascript, like many languages (even PHP!) can be written in a 'good' way and a 'bad' way. Thankfully, it's not very hard to write in a good way and it lends itself very well to I/O bound applications like webservers. Embedded devices, depending on the application, could also be very I/O bound, waiting on sensors, cameras, wifi, etc.
Javascript is actually one of the fastest interpreted languages in existence and thousands of new programs are being written in it daily. It's easy enough for a total beginner to use yet powerful enough to port Unreal Engine 3 to it. Get over your biases and recognize that JS brings with it something that Haskell, Scala, etc., will never be able to match: large numbers of ready developers.
It's not the best tool for the job. It's also not the worst tool for the job, and it's an extremely popular language. If it brings more people into the hardware space (which is its expressed goal), it will be a success.
Wait... when did we get to the point where things that were faster than Python were deemed "fast"?!
And of course, "fast" isn't the right term for embedded systems. The right term is "efficient". In embedded terms, Java barely qualifies as passable, let alone Python.
Javascript only has so much room for the bad to hide in--it's a little quirky, but isn't half as open to WTFs as, say, C++ (any generation thereof).
Don't be hating just because these new kids don't have to bang their faces into machine code or shitty C macros--it's great to have a way of trying different programming techniques for embedded systems.
You know, I only know JavaScript about a fraction as well as I know C++, and I can say with a great deal of confidence here... no.
C++ has lots of WTF's in strange little corner cases (mostly around the C compatibility issue). C++11 has done a good job of cutting down WTF's. In JavaScript you needn't go to the corner cases... it's right there in the normal cases.
We're talking about a language that still doesn't have a standard way of reading and writing bytes... for talking to hardware. Think about that for a moment.
> Don't be hating just because these new kids don't have to bang their faces into machine code or shitty C macros--it's great to have a way of trying different programming techniques for embedded systems.
Honestly, I'd not have blinked if the idea was to use Java (even with its lack of unsigned arithmetic), C#, Objective-C, Lua, or even say Go to do the job. I mean, you need to use some kind of a language and you want it to be something that a lot of programmers will find accessible.
But picking JavaScript for this job is kind of like picking Forth to build the new, more accessible database query language...
Wrong. Javascript has typed arrays. When's the last time you actually looked at Javascript? 1998?
"Honestly, I'd not have blinked if the idea was to use Java (even with its lack of unsigned arithmetic), C#, Objective-C, Lua, or even say Go to do the job."
They are using lua. They just have a front end to lua that uses javascript syntax, it would seem. Because languages without curly braces are scary, and the goal is to make this stuff accessible.
To the expert, making your niche accessible to plebes is scary. I understand.
See comments here: https://news.ycombinator.com/item?id=6468339
As recently as a few months ago I had to base64 encode a binary protocol because the JavaScript guys couldn't handle decoding the raw bytes.
> They are using lua.
Yes, but it seems like lua is merely used as a target rather than a programming language. What language people actually code in is highly relevant if your goal is to make a domain more accessible.
> They just have a front end to lua that uses javascript syntax, it would seem. Because languages without curly braces are scary, and the goal is to make this stuff accessible.
There are a lot of languages with curly braces that aren't half as scary as JavaScript.
> To the expert, making your niche accessible to plebes is scary. I understand.
I appreciate your "understanding". Next time you are trying to make the big "I can read your mind" power play, you might want to read the context a bit more carefully.
I don't generally do programming that talks directly to hardware, so even by your rationale I have no reason to be threatened, and I'm all for making this niche more accessible. I've seen excellent jobs of making hardware accessible to novice programmers using Java, Smalltalk, and even things like SCRATCH and Alice. I think that stuff is great. As you put it, "making a niche accessible to the plebes" is a great endeavour and what I have spent most of my career striving for. I've learned a thing or two about that path along the way. This isn't the first time a choice like this has been made. I thought I'd share that this particular choice, if anything, undermines the goal.
Regarding the limits of how far this Lua / javascript combo can or should take us I refer you to the words of Roberto Ierusalimschy, creator of Lua, himself (I agree with him):
> I must confess that I would be very reluctant to board a plane with flight control implemented in Lua or any other dynamic language.
http://lua-users.org/lists/lua-l/2008-10/msg00405.html
I think if the goal is to make little gadgets that put large block letters over jpegs of cats and post those jpegs to social media sites, Tessel's software side is on the right track. It might not be so great for "internet of things" gadgets that interface with the real world, in real time, in novel ways.
(in fairness their hardware looks interesting, though currently overpriced)
Happy?
And of course, C++ isn't exactly a great choice for making hardware programming more accessible. I hear tell that's how a lot of it is done already. ;-)
No. Don't compare the unalduterated failure that Javascript is to the sound reasons behind C++ messiness.
The road to Hell is paved with good intentions.
C++ isn't merely messy--it's a bloated festering gibbering idiot swimming in a fetid pool of infectious waste, the true depth and horror of which is hidden beneath a tapestry of warts and scabs. For the unwary, it seems sound enough, and then a few steps and templates later and the whole rotten structure has given way beneath their feet, plunging them in over their head in offal.
Again, Javascript is a relatively tiny language compared to C++.
I am concerned that many of these products will not hit practical state until issues like power consumption and cost can be addressed. I don't want to have my device wired and I don't want my $1 dollar light bulb to cost $40.
If these guys insist on using JS they should compile it to 8bit code, so that we can better address to cost and power issues. Right now they have something that is larger than an Arduino. My gut reaction is that python might be a better fit.
Using JS for hardware is an audacious, repulsive, brilliant, horrifying idea - maybe people don't want to call it web assembly language, but it's certainly web lingua franca. If you want to execute in the client, you have to use it. If you don't like it, everybody is writing frontends that compile to it (e.g. coffeescript), asm.js to compile it to, and writing books about the "good parts". So... every web developer knows javascript... and assuming it's they who will make the "web of things"... it makes sense to harness all that work and future work around JS (though I'd think the "internet of things" would be made by more hardcore folk, like the TCP/IP designers).
I don't know if this will pay off for them, but kudos for the chutzpah to actually do it (and for even considering it!) But it really could work out - whoa dude, awesome leap of faith!
Javascript is basically Scheme/Self with a C-based syntax[1][2], and both Scheme and Self are well regarded.
It has a bad reputation because of the terrible code people write using it in web browsers, but as languages go, it's pretty nice.
Browser/DOM APIs OTOH are historically pretty awful.
I suspect many of those who think it is terrible do so based n language snobbery, or they cannot separate the language from what it has been used for.
I may well be wrong, though - what actually makes it a bad language in your opinion?
Javascript has first class functions. It has closures. it has nice object/literal syntax. If you don't consider it cheating to use a library, it does have macros if you use sweet.js. It has a metacircular evaluator, from the very beginning called "narcissus", and if it had homoiconicity, it would be even more direly hated than it is now. Having syntax, for better or worse, is a strength that means that people actually use the language. For reals. Not just that one time at college.
The real question is how are any of those features actually useful from anywhere but a theoretical purity standpoint? We're not exactly writing AI systems here. At the end of the day the language is there to write programs. And the sophistication of the programs you need to write in javascript doesn't really need those things most of the time.
Remember, I was recruited to "do Scheme", which felt like bait and switch in light of the Java deal brewing by the time I joined Netscape. My interest in languages such as Self informed a subversive agenda re: the dumbed down mission to make "Java's kid brother", to have objects without classes. Likewise with first-class functions, which were inspired by Scheme but quite different in JS, especially JS 1.0.[1]
I presume you saw the word basically in my post? There's no doubt it is simplified, but that's a strength as well as a weakness.
But anyway:
A metascircle evaluator: https://github.com/mozilla/narcissus
It's not Homoiconic, and nor does it have macros - but a number of the languages the OP named as "good" languages lack both these features too.
I stand by my point: Javascript is a perfectly good language.
At the same time it's a double edged sword - because it looked so similar to C, it most likely was so successful.
I'm talking historically as someone who was the typical C / Perl programmer back in the 90s when the web took off and made this exact mistake.
You forgot to mention "and without a native way to read and write bytes", which is one of just a few highly relevant examples of why it might not qualify as "a good programming language" for the job. (Others might include having a probabilistic parser...)
Oh, and look here:
http://www.khronos.org/registry/typedarray/specs/latest/
We have an "editor's draft", updated on July 2013, littered with "non-normative" sections, and not on the ECMA site.
You can check out the language standard itself and searching for "typed arrays" there: http://www.ecma-international.org/publications/standards/Ecm...
So yeah... not standard.
Javascript is not a choice for many web-devs and for all front-end devs, that's basically the only thing you can use in a browser. And even if one uses a transpiler, 3rd party scripts are still in JS. That's why the hate. Otherwise people would not give a damn about wether it is good or bad. When one is used to something better (like Scala), one doesnt want to spend its time in this poor ecosystem.
DOM apis are quite good ,that's the only reason why most people are using JS today. They are just still inconsistent between browsers.
That is an absolutely absurd claim. Javascript shares similarities to smalltalk, perhaps you confused it with scheme?
I shouldn't have said this, but it's not a very inappropriate response to your comment.
JS sure has its warts. But it isn't really that hard to know what to avoid. Once you do that, it is expressive enough to write apps without sacrificing productivity. It has all the basics you'd need; higher-order functions, closures, decent performance etc. The big win though, is that it is the only truly cross-platform language available today.
The major difficulty today (on the server-side) is that JS has no language support for handling callback interspersed code. This will be mostly resolved in ES6, due next year. We use ES6 features today, via flags.
I also have no problem with a Javascript Kiddie programming my oven in Javascript. AS LONG AS HE/SHE COULD HAVE ALSO DONE IT IN SCALA/OCAML/CLOJURE/HASKELL.
What are you getting at with that?
Really.
Someone has spent a lot of time trying to innovate. This is all you have to contribute?
It's not about bandwidth. It's about latency.
No one is even suggesting that Node is a suitable substrate on which to build, for example, a flight control system, and reduction to absurdity does nothing to improve your argument.
No one except parent.
I don't want to come off as a spoil sport, but can you please edit your comment into something insightful and/or constructive?
As for myself, I will spin this into a question: What existing javascript library or program would most likely benefit from being able to run on this device? Is it just appealing to web devs? the presentation doesn't really get into what compelling use cases this device enables.
Scala (http://www.scala-lang.org/) Clojure (http://clojure.org/) Haskell (http://www.haskell.org/) OCaml (http://caml.inria.fr/)
As much as I dislike it, sometimes PHP is "the right language".
Single threaded. Concurrency via processes, impossible to share state. And, among the more efficient dynamic languages out there now due to the browser performance race.
It's practically C and everybody likes C!
Once upon a time Javascript was this fragmented language, mostly associated with blinking effects, pop-ups and lame attempts to protect a web page from being viewed as pure HTML. After years of misery the community was tired of how things was and said, "No more"! And so html-tables and javascript was sent to a zip-drive (you probably won't remember those, think of it like a SD-card) to never be seen on the web again.
But evil people who sold out to the dark forces was destined to bring javascript back. By making frameworks they masked the incompatibilities of the language, making it seem like a friend. And the young people who never fought the war, they welcomed this new technology with open arms.
But seriously, we took a typesetting language made for writing documents (just like word) and turn it into a technology for making software. It turned out into a total mess, and now you wonder why taking a language made for manipulating the DOM and using it for manipulating the stack is a bad idea? "When all you have is a hammer..."?
A lot of people are building awesome things with it. JS haters used to say that it was because it was the only choice for the web browser, but now we see more awesome stuff outside the browser: on the server with node.js, for windows apps, and now on embedded devices.
Seriously, a language that allows you to write awesome things could not be such a bad language. Ranting about people using a language that's not your favourite is a waste of energy.
I code Javascript only because I have to, but its a miserable language.
The same could be said of Visual Basic. I still wouldn't want my thermostat running VB.
"Another major advantage of Javascript is that it is continuously optimized in the ongoing race for performance in the browser"
In an embedded system like this, what you want is something continuously optimized to be bug free and work without fail, not something optimized to be mostly ephemeral and need to work in an environment where if you leak memory for 45 days, people rarely notice.
Browser performance is also not optimized for anything that matches the application workload of this kind of device.
Anyone who tries to bring a product to market with this will presumably be crushed by those who can use less expensive components from better optimized code. At scale, even a few pennies per unit can make a huge difference in your profitability. It seems quite unlikely, for at least the foreseeable future, where you will buy an off-the-shelf thermostat with one of these inside - or anything else running Javascript for that matter - simply due to component costs, if nothing else.
But if you are a web developer who wants to hook up a light that flashes when someone visits your web page, something like this might be a reasonable choice. Being able to build something that works reasonably well with minimal effort is appealing. Who cares if it adds $30 to your BOM and maybe doesn't work every single time?
Personally, this is probably not a device I would be interested in. Playing with embedded systems at a low level is what makes it fun for me, but not everyone wants to learn C and assembly just to throw together a project in their spare time. I think this could be a pretty great product for that certain niche.
You mean like this [1]? These guys have been around for years. How do you know your microwave doesn't already use one of those?
[1] http://www.basicstamp.com/catalog/microcontrollers/basic-sta...
Besides, you can choose sensible things. if you need something stable you stay on a known stable version of node (which has it's own issues of course).
Mechanical engineering doesn't seem to be blocking point for any of those except maybe the washer/dryer and food related stuff. I could definitely see the opportunity to have a device that could portion out N grams of rice per person and then have it ready to eat when I get home, but for the rest, I don't see it as the stumbling block.
http://gigaom.com/2013/09/26/designer-don-norman-on-his-stea...
With their product, the "the end" is now hardware/devices/etc.
If you object to javascript being used, by all means go back to building your 555 timers by hand or feel free to construct a competing unit in whatever religion...I mean language...you feel is the one true answer.
It is so easy for the people here to criticize and make a lot of judgements over a few slides and their lack of knowledge of how things work in your product. Don't listen to their prejudgement, these people are obviously not your product's target.
There seem to be a lot of close-minded commenters on HN on the weekends.
1. For most people, Arduino would be easier to use (being that many Arduino guys are non-programmers to begin with), with a great ecosystem and a variety of hardware.
2. On the other hand, no one would ever use this hardware for an actual product. Cost is too high, power consumption - I assume - is also up there.
3. As opposed to Arduino, this is not a "hard" real time system. It's severely limits the development of applications featuring, for example, motor control or orientation sensing (gyros/IMUs). And from what I'm seeing, even Arduino didn't make great strides in the commercial market; product development often requires very precise level control over your hardware as well as real development tools (namely a JTAG debugger).
So we're left with an interesting experiment, the longevity of which mainly depends on the community acceptance. It basically targets web developers that want to turn LEDs on and off. This is as far away from the "internet of things" as one can imagine, unless these things are one-off hobby projects.
Yes, embedded development sucks, and product development can be an exercise in futility and despair - but this is not the answer.
not many embedded devices are going to need jquery.
Could that Cortext M on Tessel handle tons of dynamic DOM and events?
"Any application that can be written in JavaScript, will eventually be written in JavaScript."
[1] http://www.codinghorror.com/blog/2007/07/the-principle-of-le...
http://www.oracle.com/technetwork/java/embedded/overview/get...
Java is pretty simple. I think that someone that can program in Javascript can handle it.
1. JavaScript means developers don't have to understand manual memory management to program their hardware (and many developers simply _can't_ grok manual memory management these days)
2. node.js gives access to the npm package ecosystem - which opens up a huge potential "common lib" to hardware developers (potential because incompatibilities e.g. node.js network support vs luasocket will need to be handled)
Hardware hackers are generally a very curious bunch - they're not afraid of learning a new language on the software side, so it's not really _JavaScript_ per se that is Tessel's advantage here.
Straight to Lua could have been a second choice, but the package ecosystem in LuaRocks is hugely immature.[2] Because Lua execution in a LuaRocks-supporting environment is the exception, not the norm, most developers continue to manually bundle dependencies[3], which again doesn't encourage the package ecosystem to grow.
[1] https://github.com/snowplow/snowplow-arduino-tracker [2] http://luarocks.org/repositories/rocks/ [3] https://github.com/snowplow/snowplow-lua-tracker/tree/master...
1: http://www.kickstarter.com/projects/48651611/espruino-javasc...
2: http://makezine.com/2013/07/20/javascript-powered-arduino-wi...
If people truly want the better languages and frameworks that you mention, then the products that come out with those choices should win out in the marketplace eventually.
The iterative change is constantly restricted by past decisions, abstractions and investments. It's very hard to come up with nothnig but "good enough, sort of" solutions in this kind of a model.
I don't even know why I care. Psychology is a bitch, and I suffer. :(
By the way, the DOM part of javascript is to what's used in a browser. The rest of the language can't be more agnostic.
Technology is reaching a place where I can eventually start doing embedded programming with Ruby. I can't wait for that to happen - I am sure it will.
Makes me very excited for the next 10 years.
Ok.
> but always hated the languages I had to learn to do it properly (java, c++, c, assembly, etc.)
Then you weren't interested in hardware programming; not one iota. You were interested in playing around in fashionable languages.
That is a bit of a leap. I read what (s)he meant as more "interested in programming hardware" - as in controlling hardware and making it do things. That doesn't mean you need to be interested in the low-level hardware side of things to be interested in making the hardware do stuff.
"no this product i want to exist is impossible because I can't be bothered learning something new or because I have a non-technical and non-financial hipster-hued-bias against the existing commoditised technologies that lead me be able to solve the problem."
Who said anything about solving problems? Viable business cases?
I am interested in making hardware do cool stuff though.
Never realized I needed an interpreter for that - but you did a great job!
You wouldn't be learning it "for the sake of learning the language". You would be learning the language so you could "make... hardware do cool stuff"
Maybe the performance is not yet on par with C. Maybe it will never be. But using JS means we can use this for very rapid prototyping and move on to C when we do need the performance.
The people complaining about performance are the same ones who build very fast and scalable products that nobody uses.
And about JS, let's remember there are two types of programming languages: the ones which everyone complains about, and the ones nobody uses.
1. The lack of consumer grade sensors that can detect human presence and behavior patterns.
2. The lack of robust models and open source software describing patterns of human interaction with environment.
3. Insufficient and incomplete solution to power supply and interconnection problem.
I see any advance in these fields an order of magnitude more important than any new board running [modern language interpreter].
I dont think the point is really the "internet of stuffs". Just to fool around or to do installations or prototypes.
I dont like the NodeJS logo ripoff though.
No matter how flawed their concept might be, or how shitty JS is as an embedded language, people are out there that want to run with this idea. And when they run with it (one of Tessel's major goals seems to be getting their users to be able to get up and running fast, to boot) -- things will get made. When things get made, lives change, markets get shaken up, simple as that.
Tessel looks like another implementation that attempts to bring the same technology to another demographic. Their fancy new system (the developer doesn't touch the Lua parts), should have a broad appeal and running NodeJS provides a lot of room to extend the system in the directions needed.
I see a couple problems with IOT and another that's more specific to Tessel ... if these problems have been addressed, perhaps I haven't noticed! Tessel is based on Javascript, but there is no standard for interacting with hardware (performing I/O) in Javascript ... I think the eco-system would be healthier with a whole slew of companies like Tessel, but is anyone working on this standard? The IOT problems are more social (since we have uC that connect to the Internet today). 1) Are we ever going to take the security of devices that cost pennies seriously enough? You might not care if your water heater is rigorously protected when Internet connected, but a few thousand of them that are programmed to turn on at the same time is an issue for the power company. 2) Do I want everything around me to be that "aware". Privacy can be lost in little dribbles and we've seen our increasing power to correlate this data into your identity.
With that background, complaining about javascript is a very "No wireless. Less space than a nomad. Lame." remark.
I haven't dabbled with any microcontrollers before, but if I ever felt like it, Tessel would be on top of my list of things to try.
One suggestion: there are now several successful platforms for prototyping embedded systems: Arduino, Raspberry Pi, Beagle Board/Bone, etc. What has yet to emerge is a platform that is actually viable for low volume production. If you want to be truly disruptive, find a way to build the other components that are necessary to create real solutions: 12 volt interfaces that can be plugged into a car's accessory port and fire up when the car starts and can cleanly shut down when the power cuts; cases that not only mount the Tessel and its daughter-cards securely, but which pass standard RF emission tests; simple but secure methods for updating firmware on production systems. Make something that not only helps people get started, but helps them to build a business.
Only to find out that it's about yet another hardware board with a bloated software layer so people don't have to deal with pointers.
Meh. Sorry for being grumpy but I haven't had my morning coffee yet.
http://www.ti.com/lit/ds/symlink/cc3000.pdf
If you're trying to build the Internet of Everything with 40 billion devices, you're using the wrong equipment.
No they generally don't. They are just pretty hard to use but once you get over the learning curve they are just as easy as any other program. Yet of course you still need the electrical engineering knowledge to create something useful with it.
Apart from that: neat ideas.
That said, I don't think it's going to replace said optimized design. There's a big difference between using high level languages on general purpose computers, and using it on embedded devices, and that difference is marginal cost. The marginal cost of distributing a program for a general purpose computer is independent of the performance of the program. The marginal cost of distributing a program that runs on a device you are selling is strongly dependent on the performance of the program. The slower your program, the more expensive the hardware you have to put it on.
I mean I hate the limitations of C macros and the esolang that C++ can become, as well as facets of every language, but seriously, if language is a barrier then how did anyone learn javascript? It's been said that JS is one of the languages that people think they don't need to know in order to use. Every language is like this, honestly. You write hello world and abstract away from there.
Look at it, clearly, without surrounding distractions:
---Nobody, I mean nobody, thinks they need to know JS before they start using it, and lo and behold everyone, and I mean everyone, can learn to use it--- What a phoking coincidence!
To some degree isn't the community holding itself up by pretending JS is a security blanket instead of cough that thing that Node is written in that is apparently graduating to a real language? Is anyone going to get absolutely worse at JS when it becomes totally real?
Now, when it comes to setting some pin to hi-state, it becomes very important to be able to execute some instruction to move some register value to some memory address. Do it once. Put it in a C function. Bind C function into Cython. Call Cython from Python. You never have to do engineer your code precisely once you've given the low-level part an API into a high-level language. Let me think about the barrier to entry into writing Cython. Serously, it takes 5 min. Reading the documentation on calling the function that does that thing you need to do takes 5 min.
An understanding of the device and its limitations becomes very helpful when it's breaking. That's something I don't want to figure out from the Phonegap API. I want to reduce my problem to hello world in C, the world where nothing happens if I don't do it, the clear void from which a single expression can be tested without a complicated data-model below it. VM's don't tell you about real devices. I'm not asking anyone to get their RAM emulator out, but can we get over this BS about JS and web being something for everyone but all that code architecture stuff being only for people who double-majored EE and CS? Study a line of brainfuck. Read a minimal program written in LLVM IR. Write a program that outputs '1'. You're programming in that hard stuff. I assure you, you didn't just give away four years of your life and 50k in student loans.
Meanwhile JS/HTML/CSS, while ubiquitous, suck pretty hard. JS is the least sucky. I hate HTML like I hate metastasizing pancreatic cancer. <hello><twice><everything/></hello></twice>. CSS, that language that accepts no math because expressions are hard and Photoshop is easy so only programmers end up using CSS and designers who would benefit from something easier can't be bothered to even learn that(!?!?!?!).
I maintain an application framework that uses data-binding in a terse format, Cython for fast/low-level things, and Python for the development API. AMA. =D
I do want to add on top of this criticism that I was impressed by the work and do applaud the pro-activeness going on. Openness and accessibility are very important. I just think it's very important to constantly, persistently, call "nonsense" at perceived barriers that prevent the community from bootstrapping itself in any way whatsoever. There is a way. It's okay to say JS and C++ are both crap. It's not personal. We can all learn tons of languages and have that one that we use to think in.
Slides 45 to 51 illustrate the idea.
I'm with the 1% of EEs who have no major issues with Tessel... except that I'll be facing 1000s of friends who want me to write device drivers for peripherals that aren't in the stock lineup. :)
In fact, I think it's what the "internet of things" needs: many open & low cost hardware.
I think the commenters here are missing the point: this is a great system for prototyping. Perhaps as software developers, we take prototyping for granted (too damn easy?) but prototyping in hardware is a huge business and this board is great idea.
Bluetooth avoids all that. Use a smartphone as a proxy to the web. If he doesn't have a smartphone, you could even use Twilio with MMS to send data to the 'cloud'.
Other than that, really cool idea/product. Heck even though I'm a compE I will always choose JavaScript over C/C++.
EDIT:
Finally I google reverse image searched and found it's the August Smart Lock: http://www.august.com
Just adding a .com to the august would have done it as well ;)
The successful funding shows that there are well enough people interested in this.
The campaign was massively successful and a lot of devs I know are excited by it and have ordered 1 or 2 to play with. We've even ordered a couple for the office just for our devs to play with when they need distraction from their work.
Apple allows for JS in iPhone because they need to have it anyway. Anyone else should do better. At least, no JIT.
This would enable to write nginx/lua applications in javascript.