Yep, that's the default in both cases (AOT option or not). The compilation is done on the fly as the name spaces get load either through use or require. Not different than when you are running your code directly from the REPL.
You can have many things loaded from a jar file, byte code, resource files like *.properties files, XML files, ... A jar file format is known by the class loader and searched when your code refers to a class or other resource types. Roughly identical to what you would expect to see in the class folder in you project. Use jar -tf xx.jar and look at the content of some jar files from various sources. BTWY, compilation on the fly is not second nature for most Java acquainted people :) Luc > On Wednesday, April 4, 2012 12:48:33 PM UTC-7, Luc wrote: > > > > I would add that you can look at the resulting jar file and you will see > > both the source code and the .class files in it. > > > > By default the source is present but you can ask leiningen to remove it > > from the target. If you need to keep your code private, that's an option. > > You can then deliver only byte code to untrusted platforms. > > > Are you saying that the default thing, if we *don't* specify AOT, is to > literally copy source code into a jar file? That doesn't seem quite right > to me -- perhaps I'm not understanding you. > > Is there a reference that folks could suggest where this system is > thoroughly described? It may be second nature to Java people, but as a > newcomer to both Clojure and Java, it's hard to get a handle on it. I've > read the Clojure page on "compilation", but that's only part of the story, > clearly. > > -- > You received this message because you are subscribed to the Google > Groups "Clojure" group. > To post to this group, send email to [email protected] > Note that posts from new members are moderated - please be patient with your > first post. > To unsubscribe from this group, send email to > [email protected] > For more options, visit this group at > http://groups.google.com/group/clojure?hl=en -- Softaddicts<[email protected]> 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 [email protected] Note that posts from new members are moderated - please be patient with your first post. To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/clojure?hl=en
