Skip to content

Create next post in OTP series: gen_statem example #146

Open

Description

@oubiwann

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

Activity

  1. oubiwann commented on Jul 6, 2020

    @oubiwann
    MemberAuthor

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

  2. oubiwann commented on Jul 6, 2020

    @oubiwann
    MemberAuthor

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

  3. oubiwann commented on Jul 6, 2020

    @oubiwann
    MemberAuthor

    Hrm ... what about agent-based modeling?

  4. oubiwann commented on Jul 6, 2020

    @oubiwann
    MemberAuthor

    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!

  5. oubiwann commented on Jul 6, 2020

    @oubiwann
    MemberAuthor

    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.)
  6. changed the title [-]Create next post in OTP series: FSM example[/-] [+]Create next post in OTP series: `gen_statem` example[/+] on Jul 6, 2020
  7. oubiwann commented on Jul 9, 2020

    @oubiwann
    MemberAuthor
  8. transferred this issue fromlfe/blog-redirectson Jun 3, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions