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/.
jose 2020-07-16T12:02:02.054Z

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

borkdude 2020-07-16T13:08:59.055100Z

@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

jose 2020-07-16T13:23:50.056100Z

@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?

borkdude 2020-07-16T13:26:30.057Z

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

borkdude 2020-07-16T13:26:46.057400Z

it does work, but 📈

jose 2020-07-16T13:28:38.058400Z

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

borkdude 2020-07-16T13:32:24.058900Z

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

mikeb 2020-07-16T14:12:39.060Z

Has anyone tried the new jdk 11 HttpClient?

jose 2020-07-22T16:18:13.087400Z

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

mikeb 2020-07-16T14:15:21.060600Z

Or OkHttp?

ghadi 2020-07-16T14:25:22.061500Z

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