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/.
Crispin 2020-03-10T08:20:40.304700Z

It worked in spire.

Crispin 2020-03-10T08:21:35.305300Z

(and worked being built against graal 20.1.0-dev)

Crispin 2020-03-10T08:42:04.306200Z

(ok the 20.0.0 version worked on 20.1.0-dev 20200225_0946 build... but not on newer one on mac...)

Crispin 2020-03-10T08:42:36.306700Z

will try rolling my own 20.1.0 version

borkdude 2020-03-10T08:47:31.307400Z

@retrogradeorbit Thanks for testing. If there are svm.jar versions for 20.1.0-dev available on maven, I'd be happy to make a pre-release for that

Crispin 2020-03-10T08:48:18.307600Z

doesnt look like there are

borkdude 2020-03-10T08:50:49.308100Z

ok

katox 2020-03-10T09:28:52.308500Z

@borkdude it works for me (FE app) as well

borkdude 2020-03-10T09:29:48.308700Z

nice!

tees 2020-03-10T09:53:09.311200Z

Hi folks! I'm playing around with graalVM for compiling a native image but could use some help with getting past some reflection issues. The project is a command line utility that takes a url to a podcast rss feed and downloads the episodes. i used a library called feedparser-clj which works great but has also caused reflection issues. I managed to get past a few problems by creating a reflection.json file and dumping the missing class / method / library into it > recompiling > trying the lib > finding another missing reference (I'm not sure if I'm using the right terms. I'm using native-image with lein. Here's a snippet of what I'm working with, if anyone has any tips!

borkdude 2020-03-10T09:54:26.312Z

@tees Maybe a better idea is to just fork the lib, fix the reflection issues, use that in your native-image and PR the fixes back to the repo. This way it makes it better for everyone in the ecosystem long term.

tees 2020-03-10T09:55:30.313Z

@borkdude Perhaps, yes. I'm still a bit new to Clojure so I might be a ways off from doing that (successfully). Still, you make a good point.

borkdude 2020-03-10T09:56:13.314400Z

@tees The way to start with this is to put (set! *warn-on-reflection* true) in the namespace and then fix the issues one by one by adding type hints

tees 2020-03-10T09:56:22.314600Z

I have to run to the gym (I wasn't expecting such a quick response, thanks @borkdude -- and thanks for all the resources you've put up online, I was creeping them all last night 😅 ). I'll think about your point and go from there.

tees 2020-03-10T09:56:36.314900Z

I might poke around here and ask a few more questions later today.

Crispin 2020-03-10T11:03:26.315400Z

https://circleci.com/gh/epiccastle/spire/692 <- 20.1.0-dev-20200229_0326 does work with clj-reflector-graal-java11-fix 20.0.0 patch

Crispin 2020-03-10T11:03:50.315900Z

so that will do for me for now.

borkdude 2020-03-10T11:06:55.316500Z

cool. as soon as 20.1.0 is out I'll make a release for it. all these svm.jars are incompatible over versions

borkdude 2020-03-10T11:07:20.316800Z

I'm glad we have a decent fix for this JDK11 issue!