5 ms·
Can someone with a low enough level of programming knowledge do anything in Javascript that is not already really easy in C? Sure, some things like interrupts
by lbriner 6y ago
Can someone with a low enough level of programming knowledge do anything in Javascript that is not already really easy in C?
Sure, some things like interrupts and PWM control take a bit more work in C (although most uCs have libraries to encapsulate this) but if someone is that noob, are they really programming interrupts and PWM?
- rusticpenn 6y agoIts about accessibility for developers (js developers here).
- fulafel 6y agoYes, write programs without security vulnetabilities related to parsing untrusted inputs.
- petra 6y agoEspruino claims to do automatic power management.
- swiley 6y agoString manipulation and dynamic memory allocation are kind of awful in C (this coming from someone that's written a web browser in the language.) I'm not sure javascript would be my first choice of a replacement (really scheme is pretty amazing, and more general than C even. With a tiny amount of work you can even avoid the garbage collector and get pretty much every advantage C had with a more minimalist, general, and expressive language) but it's very popular and has most "normal" things that c lacks. Arguably these aren't thins you should be doing on a "micro controller" (IMO you're generally best off sticking to state machines and avoiding dynamic memory allocation.)