Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Create next post in OTP series: gen_statem example #21

Open
oubiwann opened this issue Jul 6, 2020 · 7 comments
Open

Create next post in OTP series: gen_statem example #21

oubiwann opened this issue Jul 6, 2020 · 7 comments

Comments

@oubiwann
Copy link
Member

oubiwann commented Jul 6, 2020

Find a good, interesting, or fun example to implement in LFE ...

@oubiwann
Copy link
Member Author

oubiwann commented Jul 6, 2020

There are a couple in the book "Designing for Scalability with Erlang/OTP" ...

@oubiwann
Copy link
Member Author

oubiwann commented Jul 6, 2020

Some examples here, but nothing really captured my imagination: https://softwareengineering.stackexchange.com/questions/47806/examples-of-finite-state-machines

@oubiwann
Copy link
Member Author

oubiwann commented Jul 6, 2020

Hrm ... what about agent-based modeling?

@oubiwann
Copy link
Member Author

oubiwann commented Jul 6, 2020

Btw, from @rvirding in a private email:

Don't use gen_fsm, there is a new state machine behaviour, gen_statem, which has taken over. It is better and has some nice new features, like setting state timeouts and being able to postpone the handling of events to another state.

Fun! Didn't know about that one; looking forward to learning it and sharing!

@oubiwann
Copy link
Member Author

oubiwann commented Jul 6, 2020

Also, this topic should be split into two:

  • Basic intro to gen_statem
  • In-depth, fun example adapted from technical literature (modeling, simulation, artificial life, etc.)

@oubiwann oubiwann changed the title Create next post in OTP series: FSM example Create next post in OTP series: gen_statem example Jul 6, 2020
@oubiwann
Copy link
Member Author

oubiwann commented Jul 9, 2020

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant