Fork me on GitHub
#babashka
<
2021-09-08
>
plexus08:09:05

Shell script for quickly installing the latest bb. Should work on linux, mac, and windows git-bash/mingw64 https://github.com/lambdaisland/open-source/blob/main/bin/install_babashka

🙌 4
plexus08:09:44

if you're feeling adventurous

curl -s  | sh -x

borkdude08:09:23

PR welcome for mingw, but I recommend using scoop-clojure on Windows

plexus09:09:41

can't count on bash everywhere, can't count on curl supporting redirects (learned that the hard way)

borkdude09:09:11

I see. Well, if you ever want to contribute something back to the "official" install script, you're welcome.

plexus10:09:13

sure, I'll see what we can port. I think we started using an early version of this script before the "official" script was a thing.

borkdude10:09:38

The official script was there pretty much since the start :-)

borkdude10:09:20

Preferably open smaller PRs so it’s more tractable what we’re changing. Thanks for looking into this

Bobbi Towers09:09:49

We saved 75% off our user-feedback time by switching to babashka! Exercism test-runner average running time reduced from 4 seconds to 1: https://github.com/exercism/clojure/pull/405

👍 2
🎉 2
borkdude09:09:23

Care to elaborate what you've done with babashka specifically?

Bobbi Towers09:09:46

We first parse the solution's test files with rewrite-clj to gather the test data and capture the results from clojure.test using custom reporting methods

borkdude11:09:37

I don't get why the http://babashka.org site layout changed all of a sudden while the site hasn't been touched for months. Halp! The source is here: https://github.com/babashka/babashka.github.io

borkdude11:09:04

Fixed. It turned out upgrading tailwind 2.2.10 -> 2.2.12 breaks the layout and for some reason the version used was ^2.

🥲 2
loading 2
grumplet15:09:44

This must be something simple, but it’s puzzling me.

bb -e '(println (clojure.string/split "a,b,c,d" #","))'
[a b c d]
but this bb.edn test task fails, and indeed causes a simple bb command to fail if the bb.edn exists:
{:tasks {test (println (clojure.string/split "a,b,c,d" #","))}}
The error is
Exception in thread "main" java.lang.RuntimeException: No dispatch macro for: "

borkdude15:09:34

@grumplet the reason for this is that tasks are defined in .edn in which #"foo" isn't supported

borkdude15:09:43

instead you can use (re-pattern ",")

borkdude15:09:52

or move your code over to a .clj file

grumplet15:09:00

I knew it would be simple! THanks so much.