babashka

https://github.com/babashka/babashka. Also see #sci, #nbb and #babashka-circleci-builds .
borkdude 2021-03-14T10:11:53.220300Z

https://jpoint.ru/en/2021/talks/3nr1czuok3dvtewtcdjalm/

👍 2
1
borkdude 2021-03-14T13:44:15.221100Z

New release of babashka sql pods. Better support for reading and writing arrays and PostgreSQL json(b): https://github.com/babashka/babashka-sql-pods/blob/master/CHANGELOG.md#v004

👍 1
flowthing 2021-03-14T17:06:32.222900Z

Is there a way to use reader conditionals with Babashka such that code is only executed if using actual Clojure, but not when using Babashka? It looks like :clj currently applies to Babashka as well:

user=> #?(:clj true)
true
user=> #?(:bb true)
true

borkdude 2021-03-14T17:09:26.223500Z

@flowthing #?(:bb nil :clj :yo)

flowthing 2021-03-14T17:09:41.223700Z

Ah, thanks!

flowthing 2021-03-14T17:10:19.224Z

Should've thought of that. :picard-facepalm:

borkdude 2021-03-14T17:41:09.225600Z

I'm fixing compatibility with version-clj (https://github.com/xsc/version-clj). The version 0.1.2 works with bb. I've used this library several times in scripts already. But the lately the author switched to some interop with java.util.regex.Matcher which isn't in bb. Adding support for this makes the binary 1mb bigger. I wonder if version-clj itself is something we might want to have in bb, but for now we can run it as a lib.