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/.
Saikyun 2020-06-30T18:01:43.005500Z

when using graalvm.nativeimage.c, many functions return c Word "objects". when I try to do something like:

(let [a (c-function-returning-word)])
I get this error:
Expected Object but got Word for call argument
anyone here knows how to circumvent this problem?

lread 2020-06-30T23:36:02.006500Z

Following up on issue @aviflax raised https://github.com/oracle/graal/issues/2481

👍 1
lread 2020-06-30T23:37:57.007500Z

https://github.com/borkdude/clj-reflector-graal-java11-fix/blob/806fc9c36e12663ef5bbc4c1064e5a2dbea8a09b/project.clj#L9, but maybe it only needs to reference org.graalvm.sdk/graal-sdk?

lread 2020-06-30T23:41:19.010Z

I am working on a little experiment with sci and found the following deps worked for me on macOS, graal 20.1.0 jdk 11. Lessee, my deps.edn is a bit of a mess… effectively I am using the following:

{org.clojure/clojure {:mvn/version "1.10.2-alpha1"}
 borkdude/clj-reflector-graal-java11-fix {:mvn/version "0.0.1-graalvm-20.1.0"
                                          :exclusions [org.graalvm.nativeimage/svm]}
 org.graalvm.sdk/graal-sdk {:mvn/version "20.1.0"}}

lread 2020-06-30T23:43:39.010900Z

And I am also using: borkdude/sci.impl.reflector {:mvn/version "0.0.1-java11"} (my project uses sci)

lread 2020-06-30T23:44:43.011500Z

I am unclear if org.graalvm.nativeimage/svm is important in any way. @borkdude might know.