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/.
samoleary 2020-03-20T14:59:36.344300Z

hey, i'm having trouble with including resources in a native-image. my directory structure looks like this:

resources
  --- config
       --- aws.user
       --- aws.developer
src
target
project.clj
i've added the IncludeResources flag: -H:IncludeResources="/resources/config/aws.*$" and in the code: (slurp (io/resource "config/aws.developer")) but unfortunately i'm seeing: Exception in thread "main" java.lang.IllegalArgumentException: Cannot open <nil> as a Reader. am i on the right track?

borkdude 2020-03-20T15:01:40.344900Z

try:

-H:IncludeResources="config/aws.*$"

👍 1
samoleary 2020-03-20T15:07:29.345500Z

brilliant, that worked. thanks very much borkdude :thumbsup:

Mitch 2020-03-20T16:44:56.346400Z

My understanding is that graal cannot compile native images for other architectures (ARM, espressif, etc.). Is that correct?

borkdude 2020-03-20T16:50:29.347Z

they do have a distribution called aarch64. but you cannot cross-compile if that's what you mean

1