Instead of deleting class files from a jar, you can use the :impl-ns option 
on gen-class to stop transitive AOT.  (gen-class makes a class file, but 
AOT does not reach the impl-ns.)  I don't remember seeing this in the 
manual, but I don't know why else impl-ns would exist...

On Friday, June 21, 2019 at 12:13:41 AM UTC-4, Didier wrote:
>
> Option #1 and #3 are very much the same, just that Option #3 creates a 
> Java layer on top, instead of having everything coupled to the Clojure Java 
> APIs directly.
>
> When you go with Option #2, you do not have to AOT everything, but AOT is 
> transitive. So as you AOT the gen class, all code it requires and all code 
> they in turn require will also be AOT. You can post-process the AOT when 
> jaring, and only include the gen-class .class files in the Jar and not the 
> dependencies, but that's more work.
>

-- 
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
--- 
You received this message because you are subscribed to the Google Groups 
"Clojure" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to clojure+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/clojure/a70d27d0-81d5-4516-a411-cfb73333442f%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to