[erlang-questions] Auto recompilation
Wed Aug 13 22:00:35 CEST 2008
Good to know. I'm ever impressed by the Mochi libraries :)
On Wed, Aug 13, 2008 at 3:01 PM, Matthew Dempsky <>wrote:
> mochiweb includes a module "reloader" that will monitor any loaded
> .beam files for changes and automatically reload them and try to run
> an exported test/0 method if available:
> I typically edit files in Emacs, run Erlang in a separate terminal
> (not using any of erlang-mode's integration), run M-x recompile in
> Emacs to rebuild files, and the Erlang process will detect the new
> .beams and run our regression tests for the modules.
> On Wed, Aug 13, 2008 at 2:18 AM, Paul Guyot <> wrote:
> > Hello,
> > Do you know of an auto-recompilation server, i.e. a process that
> > looks for changes in source files and recompiles whatever changed in
> > the background?
> > There is eunit's watcher, but from I gather reading the source, it is
> > not an auto-recompilation server. It is opt-in (you must declare
> > modules to watch), it doesn't recompile and it uses code:purge/1
> > instead of code:soft_purge/1 (which can kill a process).
> > I've cooked a simple one, but since this is a very small (<200 lines)
> > albeit useful program, I guess there should be a more mature
> > implementation around, but I couldn't find one with a Google search.
> > Paul
> > _______________________________________________
> > erlang-questions mailing list
> > http://www.erlang.org/mailman/listinfo/erlang-questions
> erlang-questions mailing list
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the erlang-questions