This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2021-08-10
Channels
- # announcements (1)
- # babashka (18)
- # beginners (122)
- # calva (18)
- # cider (3)
- # cljs-dev (2)
- # cljsrn (3)
- # clojure (102)
- # clojure-europe (15)
- # clojure-france (2)
- # clojure-nl (1)
- # clojure-portugal (1)
- # clojure-spec (3)
- # clojure-uk (8)
- # clojurescript (46)
- # clojureverse-ops (5)
- # code-reviews (1)
- # conjure (2)
- # cursive (15)
- # datalog (13)
- # datomic (18)
- # emacs (4)
- # fulcro (8)
- # helix (8)
- # instaparse (1)
- # introduce-yourself (2)
- # jobs (4)
- # leiningen (23)
- # lsp (26)
- # malli (21)
- # off-topic (34)
- # pedestal (21)
- # polylith (6)
- # reitit (5)
- # remote-jobs (3)
- # schema (1)
- # sci (8)
- # shadow-cljs (8)
- # spacemacs (3)
- # sql (30)
- # testing (31)
- # tools-deps (21)
- # vim (25)
- # xtdb (8)
What's the right way to call bb code from bb tasks? I'm resorting now to (shell "bb bbscript.clj")
or if you have the file on the classpath using :paths
, then :requires ([thescriptdir.thescriptns])
Hey @borkdude does bb support crux now?
I do not know. Hope bb will support. Crux is a great document and graph database
There is a pod for datalevin currently: https://github.com/juji-io/datalevin#babashka-pod
thanks.
right, yeah probably an HTTP client is a better idea there
Thank you very much! @borkdude @U0C8489U6 will try client.
it's very cool that it supports an http server, just surprising that there's no routing layer (or maybe none easily port?)
Some reasons are: 1) Choice paralysis: compojure, reitit? 2) These routing libs aren't really small, e.g. compojure comes with deps like instaparse 3) HTTP apps aren't really the major use case for bb, perhaps. So far just a str/split in "/" and core.match could be sufficient for most of them.
Here is an example of core.match
being used to dispatch on routes. Seems quite elegant and sufficient for many cases:
https://github.com/prestancedesign/babashka-htmx-todoapp/blob/master/htmx_todoapp.clj#L178
Was posted in #announcements by @UFBL6R4P3 :
https://clojurians.slack.com/archives/C06MAR553/p1628368949097900
![clojure-spin](https://emoji.slack-edge.com/T03RZGPFR/clojure-spin/aea1be92af1f8856.gif)