3 ms·
> Or would that need to have the code for F already on those remote vms yes. but you can also send the code to the remote VM for example in Elixir you can `C
by peoplefromibiza 3y ago
> Or would that need to have the code for F already on those remote vms
yes.
but you can also send the code to the remote VM
for example in Elixir you can `Code.compile_string` which returns the name of the module and the code as binary (beam bytecode)
You can then send that bytecode to another VM and load it in the remote VM using
:rpc.call('node@remote_host', :code, :load_binary, [the_module_name, "filename_doesnt_really_matter", binary_code])
and then spawn it
spawn('node@remote_host', my_module, my_function, [args])