3 ms·
> I think Python has _everything_ a language needs to be the future of Embedded Systems - except a compiler. My biggest beefs in this space are (not limited to
by bsder 9y ago
> I think Python has _everything_ a language needs to be the future of Embedded Systems - except a compiler.
My biggest beefs in this space are (not limited to Python):
1) So, far, every scripting language I have used is far too resource hungry for deployment (2-4K RAM/16K Flash or less).
2) No scripting language gives me good concurrency primitives out of the box.
3) Very few embedded languages are familiar enough to coders that they won't scream if they have to code in it. Forth is right out. Lua is a loser because of 1-based indexing (sorry, your environment is C--it's unfair, but I'm not going to bend my brain to undo 0-based indexing habits for anybody nowadays). Lisp and Tcl are marginal but are probably acceptable nowadays since enough people have experience (and Tcl is still one of the standard EE tool embedded languages).
4) No embedded language I know lets me connect an RS-232 terminal on the embedded device, inspect registers and call some functions, write some code, and then compile it to bytecode in flash when I'm done. I would kill for this in order to inspect state and find Heinsenbugs in the field.
- etiene 9y ago3) Sounds like a very lazy excuse. Many languages used to be 1-indexed and many still are.
- bsder 9y agoMany is technically correct, but is now a very low number. https://en.wikipedia.org/wiki/Comparison_of_programming_languages_%28array%29#Array_system_cross-reference_list https://en.wikipedia.org/wiki/Comparison_of_programming_lang... Julia(2012) appears to be the only language created in the last 20 years that is 1-based. The next one is Lua in 1993(!). For better or worse, at this point, the indexing debate is over and Lua is sadly on the wrong side.