Fork me on GitHub
#babashka
<
2021-03-18
>
Pradeep B16:03:17

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

Pradeep B16:03:04

thanks for quick response, will check and try.

mike_ananev17:03:01

@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:  [at <repl>:2:1]

borkdude18:03:18

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_ananev18:03:42

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:  [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:  [at <repl>:2:1]
user=>

borkdude18:03:16

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

borkdude18:03:32

I will do a proper release later

heow16:03:19

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

borkdude16:03:37

Nice! Work to do :)

heow16:03:24

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

borkdude17:03:50

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

nate15:03:47

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

nate16:03:23

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

nate16:03:50

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

nate16:03:00

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

nate16:03:35

I got it to work, this is amazing

grazfather16:03:21

I was actuallly going to port this to babashka as well

grazfather17:03:30

Hm, I got most of the functionality done rather easily:

nate18:03:12

very cool!

grazfather19:03:57

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

borkdude19:03:04

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

borkdude23:03:17

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

❤️ 28
🙌 4
grazfather17:03:30

Hm, I got most of the functionality done rather easily: