<div dir="ltr">Good to know. I'm ever impressed by the Mochi libraries :)<br><br><div class="gmail_quote">On Wed, Aug 13, 2008 at 3:01 PM, Matthew Dempsky <span dir="ltr"><<a href="mailto:matthew@dempsky.org">matthew@dempsky.org</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">mochiweb includes a module "reloader" that will monitor any loaded<br>
.beam files for changes and automatically reload them and try to run<br>
an exported test/0 method if available:<br>
<br>
    <a href="http://code.google.com/p/mochiweb/source/browse/trunk/src/reloader.erl" target="_blank">http://code.google.com/p/mochiweb/source/browse/trunk/src/reloader.erl</a><br>
<br>
I typically edit files in Emacs, run Erlang in a separate terminal<br>
(not using any of erlang-mode's integration), run M-x recompile in<br>
Emacs to rebuild files, and the Erlang process will detect the new<br>
.beams and run our regression tests for the modules.<br>
<div><div></div><div class="Wj3C7c"><br>
On Wed, Aug 13, 2008 at 2:18 AM, Paul Guyot <<a href="mailto:pguyot@kallisys.net">pguyot@kallisys.net</a>> wrote:<br>
> Hello,<br>
><br>
> Do you know of an auto-recompilation server, i.e. a process that<br>
> looks for changes in source files and recompiles whatever changed in<br>
> the background?<br>
><br>
> There is eunit's watcher, but from I gather reading the source, it is<br>
> not an auto-recompilation server. It is opt-in (you must declare<br>
> modules to watch), it doesn't recompile and it uses code:purge/1<br>
> instead of code:soft_purge/1 (which can kill a process).<br>
><br>
> I've cooked a simple one, but since this is a very small (<200 lines)<br>
> albeit useful program, I guess there should be a more mature<br>
> implementation around, but I couldn't find one with a Google search.<br>
><br>
> Paul<br>
><br>
> _______________________________________________<br>
> erlang-questions mailing list<br>
> <a href="mailto:erlang-questions@erlang.org">erlang-questions@erlang.org</a><br>
> <a href="http://www.erlang.org/mailman/listinfo/erlang-questions" target="_blank">http://www.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://www.erlang.org/mailman/listinfo/erlang-questions" target="_blank">http://www.erlang.org/mailman/listinfo/erlang-questions</a><br>
</div></div></blockquote></div><br></div>