meander

dominicm 2021-08-19T08:23:09.065200Z

I finally have the perfect use case for meander! However, there's a problem with the jar you're releasing. It contains a copy of Clojure AOT'd!

dominicm 2021-08-19T08:25:02.065800Z

❯ jar tf  ~/.m2/repository/meander/epsilon/0.0.643/epsilon-0.0.643.jar | grep '^clojure/' | head
clojure/
clojure/core$generate_proxy$gen_method__7051.class
clojure/reflect$declared_fields.class
clojure/string$split_lines.class
clojure/pprint$init_cap_writer$fn__10632.class
clojure/core$fn__7417.class
clojure/core$bean$fn__7221.class
clojure/core$vector_QMARK___5414.class
clojure/core$destructure$pb__6246$pmap__6249$fn__6252$fn__6256.class
clojure/core$mk_am.class
This makes the jar bigger than Clojure itself!
❯ du -hs ~/.m2/repository/meander/epsilon/0.0.643/epsilon-0.0.643.jar ~/.m2/repository/org/clojure/clojure/1.10.3/clojure-1.10.3.jar
4.6M	/home/overfl0w/.m2/repository/meander/epsilon/0.0.643/epsilon-0.0.643.jar
3.8M	/home/overfl0w/.m2/repository/org/clojure/clojure/1.10.3/clojure-1.10.3.jar

noprompt 2021-08-19T15:09:14.066600Z

@dominicm Hmm… OK. I packaged this one up manually with uberdeps and I’m betting I made a mistake.

noprompt 2021-08-19T15:09:44.066900Z

Juxt has a deps package thingy, yeah?

noprompt 2021-08-19T15:13:35.067500Z

I’ll try and get this fixed up.

Jimmy Miller 2021-08-19T15:15:01.068600Z

In this case we don't want a uberjar. Depstar might be an easy way to do this https://cljdoc.org/d/com.github.seancorfield/depstar/2.1.278/doc/getting-started/building-a-library-jar

Kirill Chernyshov 2021-08-19T15:41:43.070400Z

newest version of clojure cli can help as well https://github.com/DotFox/meander/commit/21112eb3ce689524f005d0ce9a3d065ba3c43752 here is my attempt (successful 🙂) to make a package and install into local repository

Kirill Chernyshov 2021-08-19T15:42:03.070600Z

clj -T:build all

Kirill Chernyshov 2021-08-19T15:43:28.070800Z

result is 94K

noprompt 2021-08-19T15:50:19.071100Z

Nice!

noprompt 2021-08-19T15:51:00.071700Z

Thanks for the tips. 🙂

dominicm 2021-08-19T20:08:52.072200Z

I tried to figure out the release process and got a bit lost with the whole project.clj generation stuff tbh 😅

noprompt 2021-08-19T20:26:30.073100Z

That stuff needs to get dumped in the toilet. I’m don’t want to use lein deploy clojars anymore because reasons. 🙂

noprompt 2021-08-19T20:26:46.073400Z

I’m good to have anything else.

noprompt 2021-08-19T20:27:04.073900Z

A basic script would be fine.

dominicm 2021-08-19T20:56:27.074200Z

I did stumble across https://github.com/applied-science/deps-library which might be of interest

noprompt 2021-08-19T21:44:46.074900Z

Great. I’ll take a look at this stuff tomorrow and see about reducing the size of the jar.

noprompt 2021-08-19T21:44:52.075300Z

Thanks for reporting the issue. 🙂