3 ms·
I think embedded programming could really benefit from async/co-routine programming, especially around interrupt routines. I’d like to be able to write an ISR f
by evancox100 3y ago
I think embedded programming could really benefit from async/co-routine programming, especially around interrupt routines. I’d like to be able to write an ISR function that looks like straight line code. It would enabled and awaits the interrupt, then returns back to that point once the interrupt is active, restoring the local function state.
- daagaak 3y agoEmbassy (https://embassy.dev/ https://embassy.dev/) is really close to that and really nice to use.
- graderjs 3y agoIt would be cool if Node.JS could be used to directly write to IoT (I mean, probably could with a native addon / extension / dot-node -- but maybe the API would be funky because of funky kernel level APIs?). But there are coroutine libraries in C.