Comment

Comment by ehvatum

A few years ago, I was astounded to find that I can write modern C++ code for arduino. It’s pretty great; rvalue && parameters, classes, even STL string manipulation all works perfectly. C++11 and later added all kinds of useful syntax for writing fast, small code. In particular, I don’t need nearly as much preprocessor macro crap, because it’s easy to make the compiler compute constants, even when those constants are produced by manipulating STL data structures.

Compiling expressive syntax through a powerful optimizing compiler to produce binaries run by microcontrollers is really sweet. Definitely the way to go, if you want to get the most functionality from limited hardware, without going all the way to assembly.

I guess JavaScript could be good for people who want to do very simple things, and then invest lots of time fighting limitations as their ambitions grow, rather than learning something useful. Like people do with Excel.

Which brings me to my next question: why not take it to the limit, and make microcontrollers programmable purely in Excel macros? That would be maximally accessible. Lots of people know Excel and can’t get enough pain.

parent ehvatum 6 years ago

Discussion

Live from the official Hacker News API

A modern reader for Hacker News · SvelteKit + Skeleton