- Fri Aug 14, 2015 9:22 am
#25963
I would love to have fully event-driven environment for microchips' programming. I believe the power of microchip can be better used, if everything would be event-driven. Only, and ONLY obstacle there might be is big and efficient enough stack handling of all yet-to-be-called event handlers. (For example if there's a hardware interrupt, it should be high priority (compared to timers for example), so it should jump to the top of the stack and so it would be handled next)
But you would eliminate all the wasted power towards polling. The chip can even power itself down to some kind of power-saving mode for some periods, if the calling stack is empty.
I've developed some JS+HTML5 games and JS is really great at building event-driven system. I love it and i would love it on ESP.