clojure-dev

Issues: https://clojure.atlassian.net/browse/CLJ | Guide: https://insideclojure.org/2015/05/01/contributing-clojure/
dominicm 2020-09-06T21:55:06.022200Z

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

borkdude 2020-09-06T22:00:28.022600Z

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

dominicm 2020-09-06T22:01:00.022700Z

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

borkdude 2020-09-06T22:02:54.023100Z

@dominicm This seems a relevant bit from the clojure build scripts: https://github.com/clojure/clojure/blob/master/build.xml#L47-L59

borkdude 2020-09-06T22:04:34.023700Z

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

borkdude 2020-09-06T22:06:48.024200Z

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

alexmiller 2020-09-06T22:34:40.025600Z

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

alexmiller 2020-09-06T22:35:30.026300Z

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

dominicm 2020-09-06T22:51:29.027400Z

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