This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2023-09-27
Channels
- # announcements (1)
- # asami (10)
- # babashka (12)
- # beginners (26)
- # biff (4)
- # calva (42)
- # cider (1)
- # clj-commons (2)
- # cljs-dev (2)
- # clojure (179)
- # clojure-dev (2)
- # clojure-europe (45)
- # clojure-norway (16)
- # clojure-uk (3)
- # clojurescript (5)
- # datahike (1)
- # datascript (2)
- # events (3)
- # exercism (1)
- # fulcro (13)
- # funcool (3)
- # graalvm (23)
- # helix (3)
- # honeysql (1)
- # hyperfiddle (3)
- # lsp (51)
- # malli (2)
- # off-topic (27)
- # portal (18)
- # reagent (3)
- # reitit (3)
- # releases (8)
- # sci (5)
- # shadow-cljs (11)
- # xtdb (5)
hello! is it possible to have a simple bb script that depends on some external library, but makes it detect/install the library when the user doens't have it? (the idea is to handle a single file script with a dependency, and let it auto-install first time it runs in case the user doesn't have the dependency installed already), is that possible thing with bb?
I guess I just found it 🙂 https://book.babashka.org/#_add_classpath
or even better: https://book.babashka.org/#_add_deps
yeah, and I remembered about add-deps
by looking at my own tutorial at: https://pathom3.wsscode.com/docs/tutorials/babashka
kkkkk
😆 1
$ clj
Clojure 1.11.1
user=> (set! *unchecked-math* true)
true
user=> (+ Long/MAX_VALUE 1)
-9223372036854775808
$ bb
Babashka v1.3.184 REPL.
Use :repl/quit or :repl/exit to quit the REPL.
Clojure rocks, Bash reaches.
user=> (set! *unchecked-math* true)
true
user=> (+ Long/MAX_VALUE 1)
java.lang.ArithmeticException: long overflow [at <repl>:2:1]