aws

http://status.aws.amazon.com/ https://www.expeditedssl.com/aws-in-plain-english
borkdude 2021-01-03T19:33:20.227100Z

@dchelimsky Thanks for fixing the reflection warnings on aws-api master. I and a group of people are trying to use the lib with GraalVM native-image and that helps. Can we use the master version using deps.edn? Is this just a matter of updating com.cognitect.aws/api {:mvn/version "0.8.484"} to the master SHA?

2021-01-03T19:35:41.227500Z

Yes, that’s how you do it.

borkdude 2021-01-03T19:35:58.227700Z

cool, thanks

👍 1
valtteri 2021-01-03T19:37:08.229200Z

Sounds interesting! Is there discussion somewhere where I could follow?

borkdude 2021-01-03T19:37:57.230Z

@valtteri About using it with native-image?

valtteri 2021-01-03T19:38:43.231400Z

Yea, I’m guessing you’re trying to get it to work with babashka?

borkdude 2021-01-03T19:38:55.231800Z

@valtteri correct, we're writing a babashka pod

valtteri 2021-01-03T19:40:52.235300Z

That would be super cool. I’m interested to spectate at least but I can also try to help if I can. My gh username is vharmain

borkdude 2021-01-03T19:41:00.235500Z

OK, I'll add you

valtteri 2021-01-03T19:41:13.236Z

Thanks a lot!

borkdude 2021-01-03T21:43:43.236200Z

@dchelimsky I'm looking at a reflection warning in the cognitect.http-client code, but I have trouble finding where that is hosted on github. Is that generated code perhaps?

borkdude 2021-01-03T21:48:40.236400Z

it's around line 108 in the cognitect.http-client namespace:

"Class java.nio.HeapByteBuffer[] is instantiated reflectively but was never registered. Register the class by using org.graalvm.nativeimage.hosted.RuntimeReflection"

borkdude 2021-01-03T21:49:32.236600Z

Can also fix this using a config

2021-01-03T22:13:25.236800Z

The code is open source (it’s in the jar), but the repo is not public.

borkdude 2021-01-03T22:14:12.237Z

right

borkdude 2021-01-03T22:14:33.237200Z

yeah, I already found the source using (slurp (io/resource ...)) :)

2021-01-03T22:16:18.237400Z

How can you fix it with a config?

borkdude 2021-01-03T22:19:39.237600Z

In GraalVM native-image you can pass it a config with classes that need reflection: Mine now looks like:

[
  {"name": "[Ljava.nio.HeapByteBuffer;"}
]
to fix the issue with the http-client

borkdude 2021-01-03T22:20:13.237900Z

Preferably you fix the reflection issue, but if you really can't this is a way to deal with it

2021-01-03T22:20:34.238100Z

I don’t own that repo, but I know the people who do 😉

borkdude 2021-01-03T22:20:59.238300Z

I meant "you" in the general sense :)

borkdude 2021-01-03T22:21:11.238500Z

when dealing with native-image

2021-01-03T22:34:01.238700Z

I’ve reported it, but I don’t anticipate hearing anything back before tomorrow. I’ll follow up here when I know something.

borkdude 2021-01-03T22:36:53.238900Z

cool, thanks a lot