babashka

enn 2026-05-21T18:18:50.019239Z

Am I correct in understanding that the Datomic peer library (`com.datomic/peer`) is not supported under Babashka? I found some old threads suggesting this, but I'm not sure what the current state of the world is here.

teodorlu 2026-05-21T19:45:20.585199Z

Peer requires a JVM, yes. Datomic has some Java dependencies, if I recall correctly, and Babashka requires pure Clojure. If you're considering other Datalog options, there is a Datalevin pod that can be used from Babashka: https://github.com/babashka/pod-registry/blob/master/examples/datalevin.clj

๐Ÿ‘€ 1
borkdude 2026-05-21T20:29:23.907039Z

I don't know what's in the com.datomic/peer library, it's closed source :)

neumann 2026-05-22T00:10:25.886269Z

Maybe @jaret or @joe.lane could elaborate on the current state of things.

Joe Lane 2026-05-22T00:31:20.958999Z

What is the use case @enn ?

enn 2026-05-22T00:33:32.511989Z

I'm making a TUI Datomic browser. It would be nice if the startup were zippy. :)

Joe Lane 2026-05-22T00:35:09.604579Z

Could always try the client-api

Joe Lane 2026-05-22T00:36:30.842239Z

Even so, launching Clojure proper will be dominated by any IO to explore your Datomic database anyways. So the peer api is also probably fine no?

enn 2026-05-22T00:36:42.432699Z

yes, but unless I'm misremembering, that requires some server-side setup, right? and I can't use that with the new mode that allows connecting directly to a backup (which is a prime use case for this tool)

Joe Lane 2026-05-22T00:37:22.047509Z

Then I suggest using the JVM

enn 2026-05-22T00:38:21.701279Z

OK, that's what I'm doing now and itโ€™s working (though slow to start)

Joe Lane 2026-05-22T00:40:03.528669Z

Have you tried measuring why it's slow? Sounds like a fun opportunity to learn more. Happy to look at perf profiles with you etc to identify bottlenecks, esp if they are on account of Datomic.