babashka

borkdude 2025-11-23T12:28:57.197429Z

Very cool slide by @agilecreativity about what worked and what didn't to convince your colleagues to use Clojure (via #babashka) in his company,

👍 2
💯 1
3
👀 4
❤️ 2
👌 5
👌🏼 1
😎 2
onbreath 2025-11-23T13:52:22.800259Z

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.

borkdude 2025-11-23T13:53:19.484399Z

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

borkdude 2025-11-23T13:54:19.267749Z

If you want some kind of RPC mechanism, you can take a look at babashka pods

onbreath 2025-11-23T14:22:10.759799Z

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.

onbreath 2025-11-23T14:25:58.967769Z

Oh and I'll look into pods, thanks again!

borkdude 2025-11-23T14:26:54.598139Z

writing notebooks in babashka is a cool use case. clerk is also bb-compatible

borkdude 2025-11-23T14:27:24.389689Z

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

onbreath 2025-11-23T14:47:25.048839Z

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.