rewrite-clj

https://github.com/clj-commons/rewrite-clj
lread 2019-10-31T16:16:23.000600Z

@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.

borkdude 2019-10-31T16:21:19.002Z

@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

lread 2019-10-31T16:21:48.002200Z

thanks for tip @borkdude!

2019-10-31T16:46:35.003300Z

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

2019-10-31T16:47:09.003900Z

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

2019-10-31T16:47:41.004600Z

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

2019-10-31T16:48:11.005Z

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

2019-10-31T16:48:23.005300Z

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

2019-10-31T16:48:50.005900Z

so perhaps the 1.9 vs 1.10 issue is involved

lread 2019-10-31T18:46:35.006500Z

thanks @sogaiu!