Re: "incremental" (sort of) clojure compilation

2009-01-29 Thread Laurent PETIT
OK, so it seems that currently, the only "reliable" way for me is to "touch" the ns defining file. Do you agree with that conclusion ? 2009/1/29 Christophe Grand > > Laurent PETIT a écrit : > > I tried this, but it didn't seem to work : > > ; a/b/c.clj > > (ns a.b.c) > > (defn f [] :f) > > (lo

Re: "incremental" (sort of) clojure compilation

2009-01-29 Thread Christophe Grand
Laurent PETIT a écrit : > I tried this, but it didn't seem to work : > ; a/b/c.clj > (ns a.b.c) > (defn f [] :f) > (load "c1") > > ;a/b/c1.clj > (in-ns 'a.b.c) > (defn g [] :g) > > ;in REPL > user=>(let [real-load clojure.core/load] > (binding [clojure.core/load (fn [f] (println "file loaded: "

Re: "incremental" (sort of) clojure compilation

2009-01-28 Thread Laurent PETIT
I tried this, but it didn't seem to work : ; a/b/c.clj (ns a.b.c) (defn f [] :f) (load "c1") ;a/b/c1.clj (in-ns 'a.b.c) (defn g [] :g) ;in REPL user=>(let [real-load clojure.core/load] (binding [clojure.core/load (fn [f] (println "file loaded: " f) (real-load f))] (compile 'a.b.c))) file loaded

Re: "incremental" (sort of) clojure compilation

2009-01-28 Thread Christophe Grand
Laurent PETIT a écrit : > > Hi Laurent, > > Can't you rebind clojure.core/load to record all resources laoded > during > a namespace compilation? > > > Well yes, that seems indeed a good solution to another problem I'll > have to solve (dependency graph of files) -> thanks for ant

Re: "incremental" (sort of) clojure compilation

2009-01-28 Thread Laurent PETIT
Hello Christophe, 2009/1/28 Christophe Grand > > Laurent PETIT a écrit : > > Hello, > > > > Say I have namespace a.b.c that is defined in file a/b/c.clj, but > > which also has some part in file a/b/c1.clj. And that a/b/c.clj loads > > a/b/c1.clj somewhere in the code. > > > > > > If I a.b.c via

Re: "incremental" (sort of) clojure compilation

2009-01-28 Thread Christophe Grand
Laurent PETIT a écrit : > Hello, > > Say I have namespace a.b.c that is defined in file a/b/c.clj, but > which also has some part in file a/b/c1.clj. And that a/b/c.clj loads > a/b/c1.clj somewhere in the code. > > > If I a.b.c via (compile 'a.b.c), the classes and files are in sync. > > If I no

"incremental" (sort of) clojure compilation

2009-01-28 Thread Laurent PETIT
Hello, Say I have namespace a.b.c that is defined in file a/b/c.clj, but which also has some part in file a/b/c1.clj. And that a/b/c.clj loads a/b/c1.clj somewhere in the code. If I a.b.c via (compile 'a.b.c), the classes and files are in sync. If I now make a change in file a/b/c1.clj, how to