Fork me on GitHub
#clojure-dev
<
2020-09-06
>
dominicm21:09:06

How can I AOT clojure.core? I'm trying to compile core without docstrings.

borkdude22:09:28

@dominicm Fork clojure, delete docstrings, compile with mvn?

dominicm22:09:00

heh, elide-meta already does the hard work. I think I've figured it out: use the -sources classifier for clojure.

borkdude22:09:34

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

borkdude22:09:48

but it seems to be using clojure.core/compile to do so - mind blown :)

alexmiller22:09:40

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

alexmiller22:09:30

There is a slim classifier jar of Clojure too - that’s source only

dominicm22:09:29

What is slim? It seems to not be source only, I see class files. It is certainly slimmer than the main one.