On Jun 25, 8:31 am, BerlinBrown <berlin.br...@gmail.com> wrote: > I have a clojure application where each file has its own namespace (ns > blah)...I generally let the files sit in a classpath directory, so I > am assuming the clojure code is loaded at startup time. > > What are the differences between clojure code which is: > > 1. Compiled > 2. Clojure code that is interpreted (that just sits in the classpath) > 3. Clojure code that loads from a jar file > 4. Clojure code that gets load with the 'load' function. > > Just from experience, I can't tell any speed differences between any > of them except for number 4, because I normally don't use the 'load' > function. > > Are there any differences are an approach you recommend. I was a > little wary in earlier releases in uses the 'compiled' clojure code, I > seem to notice more issues with compiled code, but in Clojure 1.0 I > can't reproduce those errors.
Clojure code is compiled before it is run, always. So there should not be any difference, except performance (slower to compile on each use than just once). --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Clojure" group. To post to this group, send email to clojure@googlegroups.com Note that posts from new members are moderated - please be patient with your first post. To unsubscribe from this group, send email to clojure+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/clojure?hl=en -~----------~----~----~----~------~----~------~--~---