Reality check your library idea

Ok… Now for a super half-baked idea that I don’t want to work on (but if someone wants to do this and wants help I can give some help):

Serverless Elixir/Erlang

Compile a module, or a bundle of modules. Ship it to a service. Server disassembles the BEAM bytecode, identifies operations that need to be redacted (String.to_atom), or sandboxed (for example, calls to File modules, send, calls to Node module, Process module, etc), recompiles the module, and then launches it into the VM, co-tenanted with a bunch of other modules. Might be possible to do things like track reductions spent in modules, etc, if you wanted to make a hosting service out of this.

3 Likes