Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

Most MCU code I've seen targets single core single thread especially that for hard real-time. Maybe the author can outline more of the thinking behind coroutines, fibres or green threads or whatever they considered. In a real time if you have callbacks triggered by physical events that may offer more certainty than coroutines doing stuff that might finish, sometime.


> Most MCU code I've seen targets single core single thread

That's actually a good fit for coroutines! Cooperative multi-tasking can be very useful in single-threaded environments; it's basically syntactic sugar for a state machine. Lua has had coroutines since 2003, so I'd be curious why Berry chose to omit them.




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: