Type: New Feature
Affects Version/s: None
Fix Version/s: None
We want to be able to load nif code from archives.
The fallback approach to this would be to create a temp file that we dlopen and then unlink directly afterward.
For most platforms, we should be able to load the memory directly by using some platform specific features/hacks:
Linux: memfd_create + dlopen of /proc/self/fd/%d
OS X: https://stackoverflow.com/questions/11821955/load-dynamic-library-from-memory
There is also a bit of discussion here: https://github.com/erlang/otp/pull/3002