Erts PR for adding the ability to load shared libraries from memory

I implemented a feature in ERTS that is the foundation of adding the ability to escriptize applications that contain NIF shared objects. The current limitation of the BEAM is that it can only load shared objects from the filesystem, which makes it impossible to create a single-archive escript containers that have embedded NIF library dependencies. It should work on all flavors of OS’s.

I hope that Erlang maintainers could merge it some time soon. When merged, the rebar3 and mix could take advantage of it in their escriptize targets.

Regards,
Serge

8 Likes