This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2021-03-18
Channels
- # announcements (31)
- # asami (11)
- # aws (33)
- # babashka (30)
- # beginners (69)
- # calva (1)
- # chlorine-clover (10)
- # cider (3)
- # clj-kondo (24)
- # cljdoc (19)
- # cljs-dev (1)
- # cljsrn (2)
- # clojure (104)
- # clojure-australia (4)
- # clojure-dev (29)
- # clojure-europe (202)
- # clojure-germany (36)
- # clojure-nl (6)
- # clojure-poland (3)
- # clojure-serbia (6)
- # clojure-spec (18)
- # clojure-uk (32)
- # clojurescript (36)
- # conjure (1)
- # core-async (6)
- # datomic (15)
- # duct (1)
- # emacs (11)
- # fulcro (24)
- # graalvm (12)
- # jobs (3)
- # juxt (1)
- # kaocha (2)
- # keechma (4)
- # lsp (1)
- # malli (102)
- # meander (17)
- # off-topic (16)
- # pathom (8)
- # re-frame (12)
- # remote-jobs (7)
- # rewrite-clj (72)
- # shadow-cljs (27)
- # sql (26)
- # tools-deps (8)
- # vim (3)
- # xtdb (28)
- # yada (5)
@borkdude I wonder if something like this can easily be used in babashka (option selection list for terminal) https://github.com/wong2/pick
You may be able to do this using lanterna, not sure. https://github.com/babashka/pod-registry/blob/master/examples/lanterna.clj
@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]
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: [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=>
Yeah, you will have to download the binary manually and then use (load-pod "./the-binary")
a, ok
clojure.core change! "keywork argument functions now accept maps" https://clojure.org/news/2021/03/18/apis-serving-people-and-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
oh cool, I had to install quicklisp: https://lisp-lang.org/learn/getting-started/
I was actuallly going to port this to babashka as well
Hm, I got most of the functionality done rather easily:
Looks like babashka was mentioned in the comments; https://news.ycombinator.com/item?id=26493588
haha 😄
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
Hm, I got most of the functionality done rather easily: