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 2020-06-26T18:36:19.482300Z

Here's a commit upgrading a project from GraalVM java8 (19.3.0) to java11 (20.1.0), if anyone's interested: https://github.com/borkdude/clj-kondo/commit/e1b9df02204c4bc655c7fdbc8e6481dce94de9b9

2👍
phronmophobic 2020-06-26T19:16:57.483200Z

If I wrote some notes about https://www.graalvm.org/sdk/javadoc/org/graalvm/nativeimage/ImageInfo.html , would that be useful enough to include in https://github.com/lread/clj-graal-docs#tips-and-tricks ?

borkdude 2020-06-26T19:22:09.485200Z

@smith.adriane Sure. Note that you can also use system properties set by GraalVM to determine if you're running inside a native image.

$ bb '(clojure.pprint/pprint (into {} (System/getProperties)))'
{"org.graalvm.nativeimage.kind" "executable",
 "java.vm.specification.vendor" "Oracle Corporation",
 "java.vendor.url" "<https://www.graalvm.org/>",
 "java.specification.name" "Java Platform API Specification",
 "line.separator" "\n",
 "java.vm.version" "GraalVM 20.1.0 Java 11",
 "java.vendor" "Oracle Corporation",
 "java.specification.vendor" "Oracle Corporation",
 "java.vm.specification.version" "11",
 "java.vm.vendor" "Oracle Corporation",
 "org.graalvm.nativeimage.imagecode" "runtime",
 "java.vm.name" "Substrate VM",
 "java.version" "11.0.7",
 "java.specification.version" "11",
 "java.class.version" "55.0",
 "jdk.lang.Process.launchMechanism" "FORK",
 "java.vm.specification.name" "Java Virtual Machine Specification"}

1👍
borkdude 2020-06-26T19:22:33.485500Z

e.g. note "org.graalvm.nativeimage.kind" "executable"

borkdude 2020-06-26T19:24:09.486500Z

nice! didn't know

phronmophobic 2020-06-26T19:24:24.487Z

I'll make sure to include the system properties in the notes

borkdude 2020-06-26T19:24:29.487200Z

thanks!

lread 2020-06-26T19:29:28.491100Z

I the tip would have helped you, then it will probably help others.

lread 2020-06-26T19:29:55.491600Z

Thanks for contributing!

phronmophobic 2020-06-26T19:36:11.492100Z

thanks for managing all the docs. graalvm is magic 🧙

lread 2020-06-26T20:00:02.494700Z

It is a community effort, I just started the repo and it took off (with lots of heavy lifting from @borkdude!).