This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2020-05-01
Channels
- # announcements (3)
- # babashka (17)
- # beginners (163)
- # bristol-clojurians (1)
- # calva (18)
- # chlorine-clover (17)
- # clj-kondo (13)
- # cljs-dev (50)
- # cljsjs (3)
- # cljsrn (13)
- # clojure (218)
- # clojure-dev (5)
- # clojure-europe (9)
- # clojure-italy (10)
- # clojure-nl (8)
- # clojure-uk (107)
- # clojurescript (25)
- # conjure (163)
- # cursive (63)
- # data-science (9)
- # datomic (38)
- # docker (1)
- # figwheel (34)
- # figwheel-main (3)
- # fulcro (15)
- # graalvm (1)
- # helix (12)
- # jobs (3)
- # juxt (5)
- # kaocha (3)
- # lein-figwheel (2)
- # leiningen (6)
- # luminus (2)
- # malli (1)
- # meander (12)
- # nrepl (4)
- # rdf (2)
- # re-frame (2)
- # reagent (7)
- # reitit (5)
- # remote-jobs (2)
- # rum (1)
- # shadow-cljs (65)
- # spacemacs (27)
- # tools-deps (18)
- # vim (19)
- # xtdb (2)
Oh cool, maybe having an example for interactive scripts might be nice. I'll try to make one later today
So, the original problem was: how do you shell out to an interactive program like keytool
. But for babashka scripts you can also just use read-line
to read user input.
babashka v0.0.90: https://github.com/borkdude/babashka/releases/tag/v0.0.90
20
🔥 4
ah, you can package up your project as a zip file and just rename it to .jar
:
$ cat foo.clj
(ns foo)
(def x 1)
$ zip foo.jar foo.clj
updating: foo.clj (stored 0%)
$ bb -cp foo.jar -e "(require 'foo) foo/x"
1
This is really cool. Thank you for sharing!
funny discovery: datascript does work with GraalVM / babashka, but it requires a lot of memory to compile and the resulting binary is 83mb 🙂