babashka

leifericf 2026-03-18T10:17:47.766099Z

I've been sitting on the idea of implementing a tool to automatically create self-executing binaries for Babashka scripts. Yesterday, I finally decided to act on it, and I was positively surprised to discover https://github.com/babashka/babashka/wiki/Self-contained-executable#caxa! And it looks better than what I had in mind. Very cool. This community rocks even more than Babashka itself.

borkdude 2026-03-18T10:18:29.878619Z

Caxa is not the preferred way to do it

leifericf 2026-03-18T10:18:50.325469Z

What I had in mind was a "built-in command" in Babashka itself.

leifericf 2026-03-18T10:18:55.129799Z

To specify which platforms to target.

leifericf 2026-03-18T10:19:07.582949Z

But I thought maybe that was not wanted, as it would bloat Babashka.

leifericf 2026-03-18T10:19:27.167649Z

But it would be a more "batteries-included-approach" and a bit "anti-Clojure ethos."

borkdude 2026-03-18T10:20:09.622059Z

That's not my point. The caxa method was initially a way to produce self-contained executables, but the uberjar way is the recommended approach right now (same wiki page you pointed to but earlier section).

👍 1
📝 1
leifericf 2026-03-18T10:21:01.492959Z

Right, I see. Thanks for pointing that out! I just saw the Caxa section was added fairly recently.

leifericf 2026-03-18T10:21:14.157289Z

I was aware of the other approach (I'm the one who bookmarked it to this channel 🙂)

borkdude 2026-03-18T10:21:33.851709Z

the caxa section is older

leifericf 2026-03-18T10:21:39.473029Z

Oh.

leifericf 2026-03-18T10:22:12.219119Z

Right, I see that now! ChatGPT Voice mode did me dirty 🙂

1
Tomas Brejla 2026-03-18T14:10:43.106219Z

IIRC, what's beautiful about that preferred way is the fact, that you simply binary-concatate the bb binary <for your OS of choice> + your uberjar. Therefore creating binaries for your tool is a trivial and super-fast github pipeline, no need to run it on "target OS". The pipeline just builds your uberjar once and then simply merges it with a bunch of pre-made babashka binaries.

👍 3
mal 2026-03-18T00:52:36.706529Z

"We ride together... BB for life" - Bad Boys II #cljs-tui

❤️ 5