Re:Finite State Machines
by klibertp on Monday February 22, 2021 @10:26AM
(#26225552)
Function objects, including closures, can be serializable - they are in Erlang/Elixir. You can send a lambda/closure over to another node (on another machine) to execute. It's actually one of the basic building blocks of OTP.
[ Parent
| on HN ]
Re:Finite State Machines
by user-the-name on Monday February 22, 2021 @11:19AM
(#26226248)
I assume this only works if the functions are exactly the same. It would break between different versions?
Re:Finite State Machines
by rad_gruchalski on Monday February 22, 2021 @05:24PM
(#26231503)
It depends. It’s possible to provide a mechanism to switch versions but as it very often is: there are dragons.