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/.
katox 2020-02-28T08:33:52.070900Z

Hi, nice channel 😉. I noticed that you pick up some tips - to avoid tearing your hair out - here is one that took me a while: To let Graal config the reflector for e.g. Statement[]you need to provide a rule for "[Ljava.sql.Statement". An example is in https://github.com/leafclick/pgmig/blob/master/graal.json

1🎉
borkdude 2020-02-28T08:52:18.071700Z

@katox interesting project! feel free to add it to the list at https://github.com/lread/clj-graal-docs. Also feel free to add any other hints and tips.

katox 2020-02-28T09:32:22.072300Z

@borkdude Done, PR #31.

borkdude 2020-02-28T09:37:31.072500Z

thanks

katox 2020-02-28T11:50:51.073100Z

Cheers, see you at :clojureD

zilti 2020-02-28T16:37:29.073400Z

Oh, I'll be at :clojureD as well 🙂

1👍
alexmiller 2020-02-28T17:38:15.074Z

could someone provide a straightforward set of instructions to reproduce the CLJ-1472 problem on latest Clojure?

lread 2020-02-28T19:50:11.076800Z

Hiya @alexmiller, we have described the issue on https://github.com/lread/clj-graal-docs/tree/master/CLJ-1472 but steps for reproduction are perhaps a bit buried in all the verbiage. I’ll go and distill and ping back when done.

alexmiller 2020-02-28T19:52:06.077700Z

what we really want is not a fancy script but just a real basic list of how to repro - here's a source file, run x, run y, fails

alexmiller 2020-02-28T19:52:24.078Z

I'm sure I could do that, but I'm doing 9 other things so it would help :)

lread 2020-02-28T19:52:49.078400Z

sure, am happy to do it

alexmiller 2020-02-28T19:53:58.079100Z

thx

lread 2020-02-28T19:54:00.079200Z

I’ve been away from my happy Clojure place for far too long. Will be nice to dip my toe back.

1🙂
borkdude 2020-02-28T21:53:55.079500Z

@alexmiller On it....

alexmiller 2020-02-28T21:58:16.079800Z

you can just attach it to CLJ-1472 if you get to it

lread 2020-02-28T22:08:49.080600Z

uh… was working on it

lread 2020-02-28T22:09:00.081Z

you are too fast @borkdude!

borkdude 2020-02-28T22:09:21.081500Z

I'm off for tonight, will attach to CLJ-1472 after ClojureD. Ohh sorry @lee! Maybe you can not look at my repro and see if you come to the same thing 🙂

borkdude 2020-02-28T22:09:48.081800Z

@lee Go ahead and you attach it to CLJ-1472

lread 2020-02-28T22:12:30.082600Z

ya mine was pretty much equivalent.

lread 2020-02-28T22:13:13.082800Z

but more detailed

lread 2020-02-28T22:13:17.083Z

but yours is good.

borkdude 2020-02-28T22:13:54.083400Z

if you did it without lein it may be preferable

borkdude 2020-02-28T22:15:07.084600Z

gotta get some sleep now, giving a talk tomorrow 🙂

lread 2020-02-28T22:15:08.084700Z

mine was just a new page on clj-graal-docs. Less convenient to run than yours but deps based.

lread 2020-02-28T22:15:51.085Z

have fun! looking forward to videos!

1✔️
borkdude 2020-02-28T22:18:44.085500Z

adding page to clj-graal-docs + clj-1472 seems good, I'll let you finish it

lread 2020-02-28T22:19:24.086100Z

I’ll push and we can compare later. Can always delete.

alexmiller 2020-02-28T22:41:58.086300Z

it should not use lein

alexmiller 2020-02-28T22:42:31.086700Z

deps definitely preferrred

alexmiller 2020-02-28T22:43:01.087Z

so would like to see yours @lee

lread 2020-02-28T22:50:38.090700Z

Here’s what I’ve pushed: https://github.com/lread/clj-graal-docs/blob/master/CLJ-1472/steps-to-reproduce.md @alexmiller, I understood you to be looking for raw description rather than scripts, let me know if this is what you had in mind. I’ll wait to review with @borkdude before attaching to CLJ-1472

borkdude 2020-02-28T22:52:35.091600Z

@lee > Note: A thorough tester will repeat all tests for GraalVM 19.3.1 on JDK11. Let's leave JDK11 out of the equation, it has its own problem with the conditional MethodHandle in clojure.lang.Reflector (documented on the main README.md)

lread 2020-02-28T22:52:58.092200Z

hey go to sleep!

borkdude 2020-02-28T22:52:58.092300Z

That also has a workaround, but let's only talk about this for now

lread 2020-02-28T22:53:13.092900Z

I’ll update, thanks for feedback

borkdude 2020-02-28T22:53:35.093400Z

Personally I prefer to just download GraalVM from the downloads page and not install another extra tool like SDKMAN

lread 2020-02-28T22:54:13.094200Z

That’s fine too, but I like SDKMAN! because it lets me switch between versions easily.

borkdude 2020-02-28T22:54:37.094700Z

Yes, but for a repro it seems unnecessary (same as lein, let's just stick to deps + raw download when possible)

lread 2020-02-28T22:54:53.095100Z

Just describing how I tested.

borkdude 2020-02-28T22:54:56.095200Z

The rest of the text seems fine to me, excellent job

lread 2020-02-28T22:55:04.095400Z

Thanks!

lread 2020-02-28T22:55:26.095700Z

Now go to sleep! :simple_smile:

borkdude 2020-02-28T22:55:43.095900Z

💤

alexmiller 2020-02-28T23:02:22.096100Z

thanks very much!

alexmiller 2020-02-28T23:02:25.096300Z

added to ticket

lread 2020-02-28T23:06:55.097300Z

glad to be of use! pushed borkdude’s (notice I did not use the @ on his name because I want him to sleep) feedback.

alexmiller 2020-02-28T23:35:38.097500Z

Thx