3 ms·
I'm not a fan of Javascript on microcontollers, but you can't ask that question without asking "Okay, so which language?" Your really small language alternativ
by bsder 6y ago
I'm not a fan of Javascript on microcontollers, but you can't ask that question without asking "Okay, so which language?"
Your really small language alternatives:
1) BASIC--Okay, but not exactly mainstream nowadays
2) Tcl--My favorite on small devices, but it's more like a Lisp than a mainstream language so there's a barrier
3) A Scheme/Lisp--again sufficiently different that it presents a barrier to entry
4) Forth--For those who don't find Lisp different enough
5) Lua--1-based in a 0-based world AND you have to add so many "extensions" that its no longer "small" when you finish.
And ... ?
As opposed to:
A) Espruino aka Javascript--everybody and their dog can put together 10 lines of Javascript and make it work. Resources are everywhere. You're probably not building anything large enough to activate most of Javascripts negatives (generally related to concurrency and building in the large)
B) Micropython -- a lot of people with scientific background can throw together a couple dozen lines of Python and connect to something in their lab. Lots of resources and help available.
MY problem is that I would like something like one of these languages but that runs in <4K RAM and <16K FLASH. I want an actual small language that runs in something smaller than an Apple IIe, thanks.