How can I AOT clojure.core? I'm trying to compile core without docstrings.
@dominicm Fork clojure, delete docstrings, compile with mvn?
heh, elide-meta already does the hard work. I think I've figured it out: use the -sources classifier for clojure.
@dominicm This seems a relevant bit from the clojure build scripts: https://github.com/clojure/clojure/blob/master/build.xml#L47-L59
so apparently this class is used for AOT compilation of clojure namespaces: https://github.com/clojure/clojure/blob/master/src/jvm/clojure/lang/Compile.java
but it seems to be using clojure.core/compile to do so - mind blown :)
If you notice, there is a commented out elide-meta in the Clojure pom. If you uncomment that and mvn package, that’ll do it for you
There is a slim classifier jar of Clojure too - that’s source only
What is slim? It seems to not be source only, I see class files. It is certainly slimmer than the main one.