3 ms·
Because people know it. That's the only reason, but it's a huge reason. ...though I'm not sure what languages you think are more high-level that are not there
by comex 11y ago
Because people know it. That's the only reason, but it's a huge reason.
...though I'm not sure what languages you think are more high-level that are not thereby made somewhat more difficult to use by beginners and/or on small projects, which would rather defeat the purpose, since the actual code running on these cheap microcontrollers is usually relatively small.
- sklogic 11y ago> That's the only reason, but it's a huge reason. Kinda stupid reason. > more high-level that are not thereby made somewhat more difficult Usually, the higher the level of the language, the easier it is to use. I would never call JS an easy language.
- cshum 11y agoJavaScript is weird and stupid to begin with. Until it becomes the most widely used, fastest dynamically typed language.
- sklogic 11y agoWon't ever be "fastest" in embedded, no way you can run your v8 on such devices.
- sangnoir 11y ago> Won't ever be "fastest" in embedded, no way you can run your v8 on such devices. V8 won't always be required for fast Javascript. If Web Assembly[1] pans out as planned, I can foresee embedded devices that can execute wasm code natively (or at least fast) 1. https://brendaneich.com/2015/06/from-asm-js-to-webassembly/ https://brendaneich.com/2015/06/from-asm-js-to-webassembly/
- sklogic 11y agoWeb assembly, as well as asm.js, is never meant to be manually written. It's a target for compilers. And even the most efficient ever implementation of web assembly won't make your plain old javascript any faster.