babashka 2026-07-05

@borkdude heya, you ever considered a bb --compile type of thing? https://nodejs.org/api/single-executable-applications.html/https://bun.com/docs/bundler/executables/https://docs.deno.com/runtime/reference/cli/compile/ all have it, and it all seems to work in a similar way: they append the js program to the end of the platform binary, and the binary looks at its own binary on startup for that extra code. It's a bit of a weird thing given graalvm exists, since it'd be slower and make a bigger binary. But there's a few upsides: you could make all platform bins on any given OS since it'd just be fetch the bb bin then appending stuff, the build would be much faster, and there would be a lot less weird graalvm stuff going on.

yet again you already done the thing xD

the tasks bit is especially inspired

this isn't particularly hard to follow, but it looks like something that would be awesome to have done automatically by bb? I think I'd love to just do bb --compile and it "just" works

the thing is that there probably isn't one "just works", that's why most builds are better suited as programs

would you be bothered if I made a wrapper with some defaults for this? I already wanted to do it for clj/graal and cljs/bun, so I'd also add bb/bb there

not at all

🙏 1