hot-swapping-state-machines Posted on Feb 21, 2023 An experiment in implementing remote hot code swapping, or dynamic code upgrade, for state machines. Background In Erlang it’s possible to seamlessly hot swap the code on a running process. Consider the following gen_server implementation of a counter which can be incremented and have its current count value retrieved: -module(counter).-version("1").-export([start_link/0,incr/0,count/0]).-behavior(gen_server).-export([init/1,handle_call/3,h...