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

Who is writing state machines without the pattern of generators/coroutines these days?


Who is writing state machines without the pattern of generators/coroutines these days?

I prefer the discipline and diagrams of regular state machines. Personally, I don't like the coroutine alternative because it takes away what is good and adds complexity.

Also as @R0b0t1 says, regular state machines are used in embedded:

- Draw a diagram

- Implement a state machine

These feels much more like engineering that messing with coroutines.


Embedded.


You can use async/await (and therefore generators) in Rust on embedded just fine.


Most people are not doing embedded with Rust.


So why did you bring it up?


GP wasn't about Rust, it's about people using state machines without coroutines.


Ah i see I had misread your comment as “most people aren’t using rust for embedded” rather than “most people doing embedded aren’t using rust”, sorry about that.




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

Search: