babashka

weavejester 2026-06-27T14:30:16.227689Z

I'm working on getting a library compatible with Babashka. I'm weirdly unable to import java.util.concurrent.locks.Lock. Is this because it's an interface? Or is there something else I've messed up?

borkdude 2026-06-27T14:37:37.010689Z

Maybe itโ€™s just not included. Can you check impl/classes.clj

borkdude 2026-06-27T14:38:01.033659Z

If it's there you might have to upgrade

weavejester 2026-06-27T14:40:34.078899Z

Ah, no, it's not there. However, ReentrantLock is, and so far that's the only lock type I'm using, so I could change the import for bb.

weavejester 2026-06-27T14:41:43.382079Z

Or I could just change it to use ReentrantLocks in general until I need another type...

weavejester 2026-06-27T14:44:11.031419Z

Ah, no java.net.StandardSocketOptions either. Should I submit a patch?

borkdude 2026-06-27T14:45:51.548639Z

Yes please with a unit test exercising the interop

weavejester 2026-06-27T14:56:02.170779Z

Looks like I need some extra lock classes and some extra socket classes. I'll see about submitting them as two separate PRs, as they seem distinct use cases.

๐Ÿ‘ 1
borkdude 2026-06-27T14:57:43.894759Z

The tests for these things are in interop test (answering from phone)

weavejester 2026-06-27T14:58:49.838279Z

Ah, got it.