Is it possible to run the BEAM from C without compiling it first?
I’m trying to get Erlang and Elixir working in a mobile app. I am currently exploring Android NDK which has good support for C/C++ so it seems entirely possible that I should be able to use the BEAM source code here and essentially ‘extend the BEAM’ so when it compiles it wraps the whole app and the BEAM together into an Android APK. At the moment I’m trying Android but I’d like to get it working in iOS as well. I think it should work with a similar strategy.
I wouldn’t expect to have ‘command line’ access on the mobile device especially since I’m trying to build a proper app not for a rooted device so I wouldn’t be able to ‘install’ Erlang (or Elixir) for that matter.
I’ve already downloaded the Erlang source and am looking through the Makefile, etc for clues but I thought I might as well ask to see if someone else has some better knowledge.
My intent is to run the BEAM from C then somehow feed it
.erl files and eventually get Elixir working on it as well.
Any tips or direction would be helpful.
Edit: I found this alternative which would enable including the binary on Android but I don’t think it would work for iOS as Apple is… well Apple.