Fork me on GitHub
#rewrite-clj
<
2019-10-31
>
lread16:10:23

@sogaiu if you are busy, and you still have scripts lying around that you used for graalvm testing, I could put this on my todo.

borkdude16:10:19

@lee you could also look at the jet, or sci repo which have tests for graalvm. What I usually do is create a namespace with :genclass and -main entry, compile that to an uberjar, run it through graalvm and execute the binary using clojure.shell/sh and verify that it works

lread16:10:48

thanks for tip @borkdude!

sogaiu16:10:35

i was trying to patch babashka with rewrite-cljc (some playground branch) and was just using the build script from babashka for my efforts.

sogaiu16:10:09

ah, the zulip logs have some earlier rewrite + native image info: > i have been trying out rewrite-cljs-playground (cljc-spike-2 branch) in a couple of projects that use native-image. a few things i've noticed are: > 1) the resulting binary is close to 40 MB, while with a slightly patched rewrite-clj, the resuls are between 12-14 MB > 2) i have not succeeded in building with native-image with the cljc-spike-2 branch with clojure 1.10, though 1.9 works > 3) using the slightly patched rewrite-clj leads to successful native-image builds with clojure 1.9 and 1.10

sogaiu16:10:41

looks like that was in min june. so may be it had worked at some point.

sogaiu16:10:11

looking at the log from: https://pastebin.com/etSw2Q9z -- this is the most recent round of attempts

sogaiu16:10:23

i see mention of monitor -- i think that may be lock-related

sogaiu16:10:50

so perhaps the 1.9 vs 1.10 issue is involved