A source for examples is often the test suites. In this particular case it could be hard to find.<div><br></div><div><a href="https://github.com/erlang/otp/blob/master/erts/emulator/test/code_parallel_load_SUITE.erl">https://github.com/erlang/otp/blob/master/erts/emulator/test/code_parallel_load_SUITE.erl</a></div>
<div><br></div><div>Uses dynamic a dynamic generate and load approach. Not really meant as a tutorial but could give a few pointers. =)<br><br>// Björn-Egil<br><br><div class="gmail_quote">2013/2/19 Paul Davis <span dir="ltr"><<a href="mailto:paul.joseph.davis@gmail.com" target="_blank">paul.joseph.davis@gmail.com</a>></span><br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Tyron,<br>
<br>
Bob's also a got a pretty easy to understand example in mochiglobal<br>
[1] that helped me pick up on some of the compilation parts.<br>
<br>
[1] <a href="https://github.com/mochi/mochiweb/blob/master/src/mochiglobal.erl" target="_blank">https://github.com/mochi/mochiweb/blob/master/src/mochiglobal.erl</a><br>
<div><div class="h5"><br>
On Tue, Feb 19, 2013 at 12:08 PM, Bob Ippolito <<a href="mailto:bob@redivi.com">bob@redivi.com</a>> wrote:<br>
> <a href="http://www.erlang.org/doc/man/code.html#load_binary-3" target="_blank">http://www.erlang.org/doc/man/code.html#load_binary-3</a><br>
><br>
><br>
> On Tuesday, February 19, 2013, Tyron Zerafa wrote:<br>
>><br>
>> Does anyone know of a way in which one can execute a function's abstract<br>
>> syntax tree WITHOUT using erl_eval?<br>
>><br>
>> The only (naive) way I have managed to come up with so far is to write the<br>
>> function to a file, compile and load it? Is there a practical way which<br>
>> avoids this overhead (of writing to a file) allowing code to be loaded<br>
>> directly in the ERTS??<br>
>><br>
>> Thanks for all your help :)<br>
><br>
><br>
</div></div>> _______________________________________________<br>
> erlang-questions mailing list<br>
> <a href="mailto:erlang-questions@erlang.org">erlang-questions@erlang.org</a><br>
> <a href="http://erlang.org/mailman/listinfo/erlang-questions" target="_blank">http://erlang.org/mailman/listinfo/erlang-questions</a><br>
><br>
_______________________________________________<br>
erlang-questions mailing list<br>
<a href="mailto:erlang-questions@erlang.org">erlang-questions@erlang.org</a><br>
<a href="http://erlang.org/mailman/listinfo/erlang-questions" target="_blank">http://erlang.org/mailman/listinfo/erlang-questions</a><br>
</blockquote></div><br></div>