Fork me on GitHub
#graalvm
<
2020-07-16
>
jose12:07:02

could you recommend a clojure http client library compatible with graalvm? I found clj-http-lite, are there more libraries?

borkdude13:07:59

@jlle I recommend clj-http-lite. clj-http doesn't really work well with GraalVM without hacks and even then, compile time and binary size aren't that good. Another alternative is babashka.curl, which is a thin wrapper around curl with a Clojure idiomatic interface

jose13:07:50

@borkdude I didn't notice that is possible to use babashka.curl as a library. I see that you have a hato-native fork. Is it usable or was it just an experiment?

borkdude13:07:30

it is barely usable, it's quite heavy on native-image analysis, I wouldn't use it myself

borkdude13:07:46

it does work, but 📈

jose13:07:38

Understand, I think I'll follow your recommendation and go with clj-http-lite, thanks!

borkdude13:07:24

One thing that doesn't work with clj-http-lite is PATCH, but that does work with babashka.curl.

mikeb14:07:39

Has anyone tried the new jdk 11 HttpClient?

jose16:07:13

I just tried it, but I'm getting compiling errors with a basic request

mikeb14:07:21

Or OkHttp?

ghadi14:07:22

haven't tried with GraalVM but in general I like the JDK11 HttpClient