@borkdude I wonder if something like this can easily be used in babashka (option selection list for terminal) https://github.com/wong2/pick
clojure.core change! "keywork argument functions now accept maps" https://clojure.org/news/2021/03/18/apis-serving-people-and-programs
Nice! Work to do :)
You may be able to do this using lanterna, not sure. https://github.com/babashka/pod-registry/blob/master/examples/lanterna.clj
My work has a betting pool about how long it takes you. 0% are beyond 3 days
thanks for quick response, will check and try.
Maybe I'll wait until the official release though, things might still change
@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 <repl>:2:1]
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@mbp02 ~ bb
Babashka v0.3.0 REPL.
Use :repl/quit or :repl/exit to quit the REPL.
Clojure rocks, Bash reaches.
user=> (require '[babashka.pods :refer [load-pod]])
nil
user=> (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 <repl>:2:1]
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 <repl>:2:1]
user=>
Yeah, you will have to download the binary manually and then use (load-pod "./the-binary")
I will do a proper release later
a, ok
https://stevelosh.com/blog/2021/03/small-common-lisp-cli-programs/
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
Unfortunately, if I can get the SBCL version working, it may take all the wind out of my sails...
hah, running the build-binary script results in an error and I get dropped to an SBCL prompt
and it turns out that SBCL is harder to exit than vim...
oh cool, I had to install quicklisp: https://lisp-lang.org/learn/getting-started/
I got it to work, this is amazing
I was actuallly going to port this to babashka as well
very cool!
Looks like babashka was mentioned in the comments; https://news.ycombinator.com/item?id=26493588
Ah, so that is where those github stars came from, I wondered
haha 😄
@heow 😊
For those not following: https://clojure.org/news/2021/03/18/apis-serving-people-and-programs
oh nice
Datalevin can now be used in babashka via the pod-registry: https://github.com/babashka/pod-registry/blob/master/examples/datalevin.clj