babashka

lvh 2025-11-20T02:12:25.723319Z

Is it OK to post your own little projects with babashka here? Assuming yes, it's dinky but it's been so incredibly helpful. I get a ton of passworded PDFs from e.g. my CPA. It's all security theater (ask me how I know) and the passwrods are consistent. I have better ways to keep that data safe so I want to take the passwords off. This does that with a set of passwords, configurable, stored in 1Password: https://github.com/lvh/pdfunpassword it's a perfect example of "slightly too complicated for me to like writing it in bash, still super useful". it's not clj-kondo but it sparked joy 🙂

🎉 8
borkdude 2025-11-20T08:38:46.655639Z

Thanks for sharing :)

onbreath 2025-11-20T11:19:49.482529Z

So what's the latest thinking on cider and babashka nrepl? It is a real problem that babashka identifies as clj and gets sent my Clojure code when I have two (clj, babashka) REPLs open, but on a mixed project. The application is supporting babashka in clay, which uses cider for it's emacs integration. The user would have two REPLs in this scenario, one for working on the babashka notebook (and clay sending forms to it when rendering it) and one for clay itself. Long term we might also just have a babashka port of Clay, but for other dialects the issue might come up as well.

borkdude 2025-11-20T11:21:02.861199Z

I don't know if babashka can solve this problem. It just offers you an nREPL server and doesn't know anything about editors. Probably the #cider channel know more about this

onbreath 2025-11-20T11:22:18.496609Z

Yes, thanks for the immediate reply, going to forward there as well. I just saw yesterday there are some long discussion in issues on it.

jdjohnston 2025-11-20T14:30:26.259679Z

Would it be a good addition to babashka.fs to wrap Path#getRoot ? I find it useful when I'm rebuilding an absolute path from components & want the same behavior on Unix & Windows. On Unix, it's easy to assume the root of an abspath is "/" (for a local path, at least). On Windows, it's often "C:\", but not always. One could parse the path string, but Path#getRoot is cleaner & better documents the intent. One important caveat: It's not helpful for dealing with non-native paths, say a Windows path on Linux.

borkdude 2025-11-20T14:31:24.680579Z

oh yes!

borkdude 2025-11-20T14:31:33.102299Z

that sounds good

jdjohnston 2025-11-20T14:33:43.630109Z

Thanks! I'm glad we're in agreement. 🙂

lread 2025-11-20T16:48:50.139559Z

I've been in babashka/fs mode of late. While I'm in the groove, I can do up an issue (and later a PR) if you like.

borkdude 2025-11-20T16:50:03.125849Z

seems good, unless @jdjohn316ston is keen to do it

lread 2025-11-20T16:50:29.477399Z

yep, let us know @jdjohn316ston, don't want to step on your fun!

jdjohnston 2025-11-20T16:54:31.491989Z

@lee Feel free, if you are so inclined. I'll plan to be an early adopter.

lread 2025-11-20T16:56:33.000909Z

Okey dokey, will start with an issue!

lread 2025-11-20T18:37:04.131099Z

Issue: https://github.com/babashka/fs/issues/167

borkdude 2025-11-20T18:56:25.095279Z

LGTM

borkdude 2025-11-20T18:56:45.939609Z

I have yet to review your other issues and PRs but there's quite a queue - eventually I'll get to it

lread 2025-11-20T19:02:09.658549Z

Thanks!