Yes, I believe this to be doable. With some changes to erts itself, it’s probably doable to just compile into a single binary and embed the modules inside of it - it already embeds the code for the “core” modules like erlang
or init
, etc. The primary reason why this is not happening is probably just because nobody did it yet.
3 Likes