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/.
ericdallo 2021-05-01T17:30:03.176200Z

Anyone compiled a cljfx app with GraalVM? I think it can only work ATM with https://docs.gluonhq.com/, has anyone used it with clojure?

borkdude 2021-05-01T18:20:48.176500Z

@ericdallo Do you want to make an emacs with clojure?

1
ericdallo 2021-05-01T18:29:36.177300Z

hahahah not really, it's a new opensource idea I had but it'd need to use java fx or java awt, but both don't play well on graalvm yet

borkdude 2021-05-01T18:36:49.178300Z

@ericdallo I listened to a podcast with Johan Vos (from Gluon): https://adambien.blog/roller/abien/entry/javafx_everywhere_also_in_app In that episode he told that it is possible to use GraalVM and JavaFX without Gluon, maybe best to contact him

borkdude 2021-05-01T18:37:11.178900Z

Maybe he hangs out in the GraalVM slack: https://app.slack.com/client/TN37RDLPK (native-image channel)

borkdude 2021-05-01T18:37:36.179500Z

Also you can read the logs from this channel, there have been other people trying it

borkdude 2021-05-01T18:37:57.180100Z

I believe it hinged on some "initialize-at-build-time" issue

ericdallo 2021-05-01T18:38:17.180300Z

Nice, I'm trying right now the gluon and it seems promising

chrisn 2021-05-01T19:11:03.180400Z

We (TechAscent) have built a number of sites that are really simple, just some web design, simple auth and some persistence. I wanted to see how hard it was to get our stack running on serverless and at the same time proof out Graal Native, a basic Ring stack, shadow-cljs a bit. Once it was finished I decided to opensource the part I think is useful to other people. This example kind of serves many purposes; it is I think the simplest reagent application possible although I do include the dependencies for re-frame. Aside from that there are no frameworks at all but enough stuff so that a basic postgres persistence pathway is easy. Then step by step how to get a normal repl, cljs repl, uberjar ... going so in that sense it is a basic template along with aws-like dev instructions for someone who knows very little clojure/clojurescript but wants to get something working all the way up to a simple serverless example. Clojure is used in quite a few microservice-type configurations so an example of a different form of serverless for Clojure I think is also interesting. Lots of motivations. No interest in building or getting involved in a library around the lessons but wanted to share so I just wrote them up.