Very cool slide by @agilecreativity about what worked and what didn't to convince your colleagues to use Clojure (via #babashka) in his company,
Has anyone looked into accessing babashka from Clojure via polyglot API or something like that? Mostly I'm looking for memory sharing, to access Java objects from outside babashka. Yesterday I got evaluation of babashka inside a clay notebook working, via babashka nrepl, so this might be a convenient way to integrate deeper without some sort of intermediary via files or something like that for binary data.
All (or at least most) babashka built-in libraries work on the JVM so if you need to run in the JVM, maybe just use the JVM with bb libs
If you want some kind of RPC mechanism, you can take a look at babashka pods
Thanks for the quick reply again! 😅 Hm yeah you have a point. Maybe there are not enough differences to justify integrating with babashka. Is this broadly true? Making a babashka script Clojure compatible is so easy, you'd be willing to always do it, to be able to render it to a notebook? But this is one of multiple ways to build a prototype, to integrate many different dialects and their runtime, in a similar way. So not just wasting time either.
Oh and I'll look into pods, thanks again!
writing notebooks in babashka is a cool use case. clerk is also bb-compatible
I just don't understand immediately why you would want to reach from the JVM to bb or vice versa, it seems you can just run everything in the JVM in that case
Well, right now the rendering process is implemented in Clojure. So anything that is not directly transferable via nrepl needs either • to be rendered in babashka, this might just work • needs an intermediary system that transparently passes data around via files or similar • Direct access from Clojure But I was mostly curious if anything immediately springs to mind here, out of experience with graal. There is lots of unformed thoughts and preliminary research while building some basic POCs. Also cljc-notebooks, where you can just go back and forth between dialects seamlessly would be interesting.