3 ms·
I've literally run Javascript on smaller processors than that on college projects. Smaller scale Javascript (probably not the latest DOM or EMCAscript), but...
by dragontamer 3y ago
I've literally run Javascript on smaller processors than that on college projects. Smaller scale Javascript (probably not the latest DOM or EMCAscript), but... yeah. Its not actually that large of a language. Especially older versions. It helps that I did this back in 2008 as part of my college education when processors were smaller (and Javascript was smaller), but Javascript goes back to the early 90s in practice. There's surely some version applicable for this use case.
You know that OSes and extendable, multi-process systems were around in the 80s right? On 640kB of RAM and 20MHz processors right?
-----------
Anyway, my point is that code-extensibility is absolutely a thing. Some devices do deserve 3rd party code. I admit, none of my projects right now, though I'm hobby level. But I can _imagine_ a use of a standard OS with extendable 3rd party code modules where an API with the hardware would be helpful.
If you wanna implement Forth, VxWorks, custom Javascript or whatever... there's plenty of valid solutions. But you know what else is a perfectly fine, and probably the easiest, solution?
Straight Linux.
Maybe FreeDOS or Dr. DOS as well.