babashka

https://github.com/babashka/babashka. Also see #sci, #nbb and #babashka-circleci-builds .
Pradeep B 2021-03-18T16:24:17.052800Z

@borkdude I wonder if something like this can easily be used in babashka (option selection list for terminal) https://github.com/wong2/pick

2021-03-18T16:24:19.053100Z

clojure.core change! "keywork argument functions now accept maps" https://clojure.org/news/2021/03/18/apis-serving-people-and-programs

borkdude 2021-03-18T16:26:37.053200Z

Nice! Work to do :)

borkdude 2021-03-18T16:27:42.053400Z

You may be able to do this using lanterna, not sure. https://github.com/babashka/pod-registry/blob/master/examples/lanterna.clj

2021-03-18T16:29:24.053800Z

My work has a betting pool about how long it takes you. 0% are beyond 3 days

Pradeep B 2021-03-18T16:30:04.054Z

thanks for quick response, will check and try.

borkdude 2021-03-18T17:02:50.054200Z

Maybe I'll wait until the official release though, things might still change

mike_ananev 2021-03-18T17:54:01.054400Z

@borkdude is that pod accessible?

user=> (load-pod 'org.babashka/lanterna "0.0.1-SNAPSHOT")
Downloading pod org.babashka/lanterna (0.0.1-SNAPSHOT)
java.io.FileNotFoundException: <https://14-303520083-gh.circle-artifacts.com/0/release/pod-babashka-lanterna-0.0.1-SNAPSHOT-macos-amd64.zip> [at &lt;repl&gt;:2:1]

borkdude 2021-03-18T18:12:18.054600Z

Hmm, the links expired. I kicked off the build here: https://app.circleci.com/pipelines/github/babashka/pod-babashka-lanterna You can try the binaries from there once they are done building

mike_ananev 2021-03-18T18:52:42.054800Z

mike@mbp02  ~ bb
Babashka v0.3.0 REPL.
Use :repl/quit or :repl/exit to quit the REPL.
Clojure rocks, Bash reaches.

user=&gt; (require '[babashka.pods :refer [load-pod]])
nil
user=&gt; (load-pod 'org.babashka/lanterna "0.0.1-SNAPSHOT" {#_#_:force true #_#_:transport :socket})
Downloading pod org.babashka/lanterna (0.0.1-SNAPSHOT)
java.io.FileNotFoundException: <https://14-303520083-gh.circle-artifacts.com/0/release/pod-babashka-lanterna-0.0.1-SNAPSHOT-macos-amd64.zip> [at &lt;repl&gt;:2:1]
user=&gt; (load-pod 'org.babashka/lanterna "0.0.1-SNAPSHOT")
Downloading pod org.babashka/lanterna (0.0.1-SNAPSHOT)
java.io.FileNotFoundException: <https://14-303520083-gh.circle-artifacts.com/0/release/pod-babashka-lanterna-0.0.1-SNAPSHOT-macos-amd64.zip> [at &lt;repl&gt;:2:1]
user=&gt;

borkdude 2021-03-18T18:53:16.055Z

Yeah, you will have to download the binary manually and then use (load-pod "./the-binary")

borkdude 2021-03-18T18:53:32.055300Z

I will do a proper release later

mike_ananev 2021-03-18T18:53:33.055500Z

a, ok

nate 2021-03-19T15:53:47.073100Z

oh my goodness, I've been meaning to write this exact same thing in babashka at some point: https://stevelosh.com/blog/2021/03/small-common-lisp-cli-programs/#s8-case-study-a-batch-coloring-utility

nate 2021-03-19T16:07:23.073300Z

Unfortunately, if I can get the SBCL version working, it may take all the wind out of my sails...

nate 2021-03-19T16:07:50.073500Z

hah, running the build-binary script results in an error and I get dropped to an SBCL prompt

nate 2021-03-19T16:08:00.073700Z

and it turns out that SBCL is harder to exit than vim...

nate 2021-03-19T16:11:42.075Z

oh cool, I had to install quicklisp: https://lisp-lang.org/learn/getting-started/

nate 2021-03-19T16:13:35.076100Z

I got it to work, this is amazing

grazfather 2021-03-19T16:55:21.077400Z

I was actuallly going to port this to babashka as well

nate 2021-03-19T18:17:12.086400Z

very cool!

grazfather 2021-03-18T19:02:57.056100Z

Looks like babashka was mentioned in the comments; https://news.ycombinator.com/item?id=26493588

borkdude 2021-03-18T19:04:04.056500Z

Ah, so that is where those github stars came from, I wondered

grazfather 2021-03-18T19:04:21.056700Z

haha 😄

borkdude 2021-03-18T20:13:10.056800Z

@heow 😊

🎉 3
borkdude 2021-03-18T20:13:50.057Z

For those not following: https://clojure.org/news/2021/03/18/apis-serving-people-and-programs

grazfather 2021-03-18T20:48:28.057200Z

oh nice

borkdude 2021-03-18T23:15:17.058Z

Datalevin can now be used in babashka via the pod-registry: https://github.com/babashka/pod-registry/blob/master/examples/datalevin.clj

❤️ 7
🙌 1