News for hackers. Stuff that matters.
Re:Elixir/Erlang Hot Swapping Code by toast0 on Friday December 13, 2024 @12:08AM (#42406072)
> but is force upgraded after two consecutive hot upgrades, as only two versions of a module are allowed to exist at the same time.

Force upgraded is maybe misleading. When a module is loaded for the 3rd time, any processes that still have the first version in their stack are killed. That may result in a supervisor restarting them with new code, if they're supervised.

Re:Elixir/Erlang Hot Swapping Code by bitwalker on Friday December 13, 2024 @01:34PM (#42411072)
Ah right, good point - I was trying to remember the exact behavior, but couldn't recall if an error is raised (and when), or if the underlying module is just replaced and "jesus take the wheel" after that.