[erlang-questions] Dynamic Code Loading in ERTS

Paul Davis <>
Tue Feb 19 19:14:23 CET 2013


Tyron,

Bob's also a got a pretty easy to understand example in mochiglobal
[1] that helped me pick up on some of the compilation parts.

[1] https://github.com/mochi/mochiweb/blob/master/src/mochiglobal.erl

On Tue, Feb 19, 2013 at 12:08 PM, Bob Ippolito <> wrote:
> http://www.erlang.org/doc/man/code.html#load_binary-3
>
>
> On Tuesday, February 19, 2013, Tyron Zerafa wrote:
>>
>> Does anyone know of a way in which one can execute a function's abstract
>> syntax tree WITHOUT using erl_eval?
>>
>> The only (naive) way I have managed to come up with so far is to write the
>> function to a file, compile and load it? Is there a practical way which
>> avoids this overhead (of writing to a file) allowing code to be loaded
>> directly in the ERTS??
>>
>> Thanks for all your help :)
>
>
> _______________________________________________
> erlang-questions mailing list
> 
> http://erlang.org/mailman/listinfo/erlang-questions
>



More information about the erlang-questions mailing list