babashka

borkdude 2026-02-26T10:50:09.568249Z

Last call! Two more days to send in a talk proposal for a full or lightning talk for Babashka Conf 2026! babashka https://babashka.org/conf/#cfp Thanks to Nubank, Exoscale and Bob for sponsoring the conference! New update: we have found our event host / MC / speaker liaison: @mrswendyrandolph all the way from the US! (We are looking for one last sponsor to cover the costs and to be able to provide a snack during the coffee break! ❤️ )

2
jdjohnston 2026-02-26T18:50:25.099889Z

Any plans for 1.12.216? I'd like to try out some of the recent fixes, but don't have GraalVM to build from src

borkdude 2026-02-26T18:51:32.151879Z

you can always try out the version from master with:

bash <(curl )  --dev-build --dir /tmp

jdjohnston 2026-02-26T18:53:43.901899Z

I'll give that a try. Thanks!

jdjohnston 2026-02-26T19:02:29.812449Z

Idea for babashka.fs: Would a lite implementation of the key features of touch(1) be useful? Sure, one can write a bespoke function each time, but it seems something useful enough to capture in the library

👍 1
oλv 2026-02-28T11:41:48.086019Z

On the topic of shooting oneself in the foot with symlinks. Never make a backup with cp -r 😬

borkdude 2026-02-26T19:06:27.706079Z

something like:

(defn touch [path]
    (if (fs/exists? path)
      (fs/set-last-modified-time path (System/currentTimeMillis))
      (fs/create-file path))
    path)
?

jdjohnston 2026-02-26T19:09:00.132899Z

With an optional second argument to choose a specific timestamp (defaulting to the current time)

borkdude 2026-02-26T19:10:06.696219Z

and creating the file when it doesn't exist?

jdjohnston 2026-02-26T19:10:30.127899Z

I would probably use a multiple-arity function.

borkdude 2026-02-26T19:10:33.107069Z

symbolic link behavior should also be specified: change the link itself or the target

jdjohnston 2026-02-26T19:15:10.053709Z

That's one reason to keep it lite. Maybe whatever the underlying function does by default

borkdude 2026-02-26T19:16:14.182059Z

in my experience this should be fully spec-ed out. it wouldn't be the first time that I shoot myself in the foot by not thinking about symbolic links. Github issue welcome with all the details

💯 1
jdjohnston 2026-02-26T19:19:19.966889Z

I'll try to get it posted soon

hrtmt brng 2026-03-02T10:41:11.053519Z

Why should this create the file if it does not exist?

borkdude 2026-03-02T10:41:37.837869Z

it's the standard touch behavior I guess.

borkdude 2026-03-02T10:42:20.836959Z

the problem of this thread is that people have different expectations of what a touch -lite is, so "can you just add it" isn't going to happen unless someone fully specs it out

💯 1
lvh 2026-03-02T01:17:29.955959Z

I have definitely written this fn 🙂