An AOT generated lib mainly avoids compilation on the fly when your app starts up.
We use AOT here to avoid deployment issues that could be found at application startup (missing component, bad fn signatures, ...) or if we call Clojure code from Java using gen-class. On some application containers (tomcat, weblogic, ...), AOT can simplify your life when configuring your app context, you may need to refer to some of your Clojure components but the container can only refer to compiled classes. On the fly compilation is not an option in this case. I would not use AOT in dev mode or if you do not deploy frequently especially if your project is not mission critical and the application container does not require it. Luc > Is there any reason to compile a Clojure library with :aot? > > (defproject bene-csv "1.0.0-SNAPSHOT" > :description "A csv parsing library" > :dependencies [[org.clojure/clojure "1.3.0"] > [clojure-csv/clojure-csv "1.3.2"]] > :aot [bene-csv.core]) > > How does compiling or not compiling such a project with :aot affect the > Clojure "main" project that "requires" the library? > > Thanks. > > -- > 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 -- Softaddicts<lprefonta...@softaddicts.ca> sent by ibisMail! -- 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