graalvm

Discuss GraalVM related topics. Use clojure 1.10.2 or newer for all new projects. Contribute to https://github.com/clj-easy/graal-docs and https://github.com/BrunoBonacci/graalvm-clojure. GraalVM slack: https://www.graalvm.org/slack-invitation/.
borkdude 2021-05-17T13:04:44.225600Z

While trying to run with "not all classes initialized at build time" which is what GraalVM recommends nowadays, I think:

$GRAALVM_HOME/bin/native-image --no-server --no-fallback --initialize-at-build-time=clojure --initialize-at-build-time=clojure.core.server__init -H:+ReportExceptionStackTraces -cp classes:$(clojure -Spath) mymain
Caused by: java.lang.IllegalStateException: Can't change/establish root binding of: *warn-on-reflection* with set

👍 1
Karol Wójcik 2021-05-18T07:20:44.000100Z

I have seen your workaround for this problem. Wondering if it could be included in Clojure itself

borkdude 2021-05-18T07:33:05.000300Z

Rather not, it's quite a hack for a niche problem

Karol Wójcik 2021-05-17T13:22:44.225800Z

Do you use warn-on-reflection somewhere?

borkdude 2021-05-17T13:22:57.226Z

This is from clojure.core.server

borkdude 2021-05-17T15:20:00.227200Z

I wonder if there is some sort of hack possible, like first force some thread-bindings for those vars