thanks y'all
So, after a lot of debugging I started to wonder if babashka is really being compiled with those flags, I added this to babashka main first line:
(println (System/getProperty "borkdude.dynaload.aot"))
(println (System/getProperty "clojure.compiler.direct-linking"))
(println (System/getProperty "clojure.spec.skip-macros"))
Then I run:
script/uberjar
script/compile
and when running ./bb
I get:I'm probably missing something during the build, but could not figure it out 😔
About the UPX, the size of clojure-lsp was reduced from 107MB -> 29MB with a drawback of 300ms on the startup
I'll do some tests but the trade-off for clojure-lsp looks good
Probably will use this action on the CI: https://github.com/svenstaro/upx-action
Does it work on all platforms?
the action say it does, I'll test if it works nice with graalvm compiled binaries yet