News for hackers. Stuff that matters.
Re:Bakeware – Compile Elixir applications into single execut... by hauxir on Thursday September 17, 2020 @07:54AM (#24503496)
does it support hot code deployment?
Re:Bakeware – Compile Elixir applications into single execut... by joshuakelly on Thursday September 17, 2020 @11:09AM (#24505560)
Can vanilla Elixir releases, for that matter? Not from what I've seen - would love to know if I'm wrong.
Re:Bakeware – Compile Elixir applications into single execut... by albatross13 on Thursday September 17, 2020 @03:04PM (#24508622)
I believe so.

I think this is what he was referring to: https://blog.appsignal.com/2018/10/16/elixir-alchemy-hot-cod...

Re:Bakeware – Compile Elixir applications into single execut... by ricketycricket on Thursday September 17, 2020 @05:23PM (#24510126)
Vanilla elixir releases do not support hot code reloading. Distillery releases do, however.
Re:Bakeware – Compile Elixir applications into single execut... by moocowtruck on Thursday September 17, 2020 @08:18AM (#24503673)
you can't have your cake and eat it too
Re:Bakeware – Compile Elixir applications into single execut... by vindarel on Thursday September 17, 2020 @10:04AM (#24504736)
Well in Common Lisp we can. We can build a self-contained binary, run it, start a Swank server, connect to it from home and code against the running program. We can even install new libraries without stopping anything.

Not saying it's great for software updates, but it definitely is possible, and helps (like, update users' config etc).

Re:Bakeware – Compile Elixir applications into single execut... by dnautics on Thursday September 17, 2020 @07:39PM (#24511270)
That's not hot code reloading in the erlang sense. Hot code reloading is having a NamedModule be replaced by NamedModule on the fly and have all of the processes executing functions in that module's (global) namespace respect the new binary code in accordance to the well-defined hot code reloading API that erlang has established, followed by kicking out the old namespace when it's dependent processes have drained of it.

This is not trivial considering that different processes may be holding onto that code for different lifetimes, and all must be managed sanely.