Fork me on GitHub
#graalvm
<
2019-12-18
>
mikeb01:12:16

I'm considering trying to get clojure running on AWS lambda and wondering has anyone had luck compiling an http client, a dynamodb lib, and json lib with native-client?

borkdude07:12:29

@mikeb cheshire works out of the box with graal native (see e.g. jet / bb). I would be surprised if clj-http didn't work, but I haven't tried it yet

lispyclouds08:12:05

@mikeb use https://github.com/martinklepsch/clj-http-lite this works and I have tested in various scenarios

lispyclouds08:12:41

has the exact same API as clj-http

mikeb08:12:39

Thanks guys, will try those out.

borkdude09:12:46

@rahul080327 why lite instead of vanilla btw?

borkdude09:12:21

> No support for insecure HTTPS connection (yet) This is no issue anymore with GraalVM, now works out of the box. Given that limitation I'd still try the vanilla one as well (cc @mikeb). I'm considering adding it to babashka.

lispyclouds10:12:24

@borkdude > why lite instead of vanilla btw? last time I checked vanilla had issues with Graal due to the fact that it used Apache HTTP client and that had reflection issues. one can possibly make it work with the reflection config but its not out of the box

borkdude10:12:53

So maybe worth another try

lispyclouds10:12:25

yeah i used it a while back, i would expect it to be okay now