Fork me on GitHub
Yehonathan Sharvit06:08:57

A question not directly related to babashka but to GraalVM: When we compile a Clojure app to a binary format with GraalVM, is there a way to connect to the app via a REPL and to modify running code?


no. its all machine assembly at that point. There is no compiler present. Also graalvm native image cannot load classes/interpret bytecode at runtime.


one recommended way is to develop the app using the normal clojure repl and then compile native when done 😄


However, you can include babashka nREPL and expose a SCI environment. This will allow you to execute and manipulate state in your app via functions you expose. See e.g. #graalvm-mobile

Cora (she/her)07:08:15

I'm kind of interested to see if graal's espresso + clojure becomes a thing although I imagine we'd lose all the benefits of compiling to a native image at that point but maaaaybe not?


I think espresso also works with native image so this may open up new possibilities but currently not so clear yet