{"id":2428,"date":"2022-08-30T15:24:47","date_gmt":"2022-08-30T15:24:47","guid":{"rendered":"https:\/\/unknownerror.org\/index.php\/2014\/01\/12\/hierarchical-state-machine-implementation-in-erlang-collection-of-common-programming-errors\/"},"modified":"2022-08-30T15:24:47","modified_gmt":"2022-08-30T15:24:47","slug":"hierarchical-state-machine-implementation-in-erlang-collection-of-common-programming-errors","status":"publish","type":"post","link":"https:\/\/unknownerror.org\/index.php\/2022\/08\/30\/hierarchical-state-machine-implementation-in-erlang-collection-of-common-programming-errors\/","title":{"rendered":"Hierarchical state machine implementation in Erlang-Collection of common programming errors"},"content":{"rendered":"<p>I am the original question author (in fact I would like to claim the question as mine, but I don&#8217;t know how).<\/p>\n<p>I already know about all the things OTP offers, gen_fsm included.<\/p>\n<p>The idea is to use a HIERARCHICAL state machine, and gen_fsm is a plain state machine. To keep track of the game turns, phases, etc, I don&#8217;t think a plain state machine as gen_fsm would be enough.<\/p>\n<p>Anyway, I have been investigating further, and I think that I will use erl-lua so I can use Lua for all the game logic. Once it is working I can search for bottlenecks and move them to a C implementation or whatever.<\/p>\n<p id=\"rop\"><small>Originally posted 2014-01-12 20:26:00. <\/small><\/p>","protected":false},"excerpt":{"rendered":"<p>I am the original question author (in fact I would like to claim the question as mine, but I don&#8217;t know how). I already know about all the things OTP offers, gen_fsm included. The idea is to use a HIERARCHICAL state machine, and gen_fsm is a plain state machine. To keep track of the game [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[],"class_list":["post-2428","post","type-post","status-publish","format-standard","hentry","category-uncategorized"],"_links":{"self":[{"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/posts\/2428","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/comments?post=2428"}],"version-history":[{"count":0,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/posts\/2428\/revisions"}],"wp:attachment":[{"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/media?parent=2428"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/categories?post=2428"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/tags?post=2428"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}