This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2022-03-01
Channels
- # announcements (2)
- # architecture (8)
- # babashka (21)
- # beginners (75)
- # calva (3)
- # clj-kondo (6)
- # cljdoc (6)
- # cljs-dev (10)
- # clojars (4)
- # clojure (94)
- # clojure-europe (12)
- # clojure-nl (4)
- # clojure-norway (3)
- # clojure-spec (6)
- # clojure-uk (4)
- # clojurescript (51)
- # community-development (13)
- # core-async (3)
- # css (1)
- # cursive (8)
- # datomic (7)
- # girouette (3)
- # graphql (3)
- # improve-getting-started (4)
- # integrant (2)
- # interop (5)
- # jobs (12)
- # kaocha (1)
- # lsp (24)
- # malli (4)
- # membrane (13)
- # nextjournal (9)
- # off-topic (6)
- # re-frame (9)
- # reitit (2)
- # remote-jobs (1)
- # reveal (4)
- # ring (4)
- # scittle (3)
- # shadow-cljs (4)
- # spacemacs (1)
- # testing (2)
- # vrac (1)
Hi, following the steps of this todo project https://clojurians.slack.com/archives/CLX41ASCS/p1642783827147200 , I'm having fun using babashka and htmx. I'm reaching a point where I would like to add some more interactions and with htmx I can else use _hyperscript or javascript. But is there a way to write clojurescript for the front as easily as it is to write clojure for the backend withe babashka ? Shadowcljs looks kinda complex to use in regard of the plug-and-play approach of babashka.
Awesome ! It's exactly that! Thanks @U04V15CAJ . Furthermore, scittle will pave the road to allow me to test reagent at some point. Smooth learning curve 🙂
With bb 0.6.8 I can
(System/getProperty "babashka.version")
=> "0.6.8"
With 0.7.6:
(System.getProperty "babashka.version")
; : Could not resolve symbol: System.getProperty user /Users/pez/Projects/...
Did I miss a memo?Is clojure.instant not completely included in babashka? It seems like only read-instant-date
is available, parse-timestamp
and all the other fns are missing
Part of clojure.instant
is really only there to support some of the libraries in the ecosystem to run from source with bb, but overall it isn't the recommended way to deal with dates in bb: this is what java.time
is for.
Adding the the full support for clojure.instant
brings in some classes that are supposed to be superseded by java.time
and that I consider legacy so it would be a waste to make that part of the binary imo.
(def ^:private formatter
(java.time.format.DateTimeFormatter/ofPattern "yyyy-MM-dd"))
(java.time.LocalDate/parse s formatter)
Added on master. This is a new linux binary: https://26546-201467090-gh.circle-artifacts.com/0/release/babashka-0.7.7-SNAPSHOT-linux-amd64-static.tar.gz Note sure what os you are using.
macOS: https://26550-201467090-gh.circle-artifacts.com/0/release/babashka-0.7.7-SNAPSHOT-macos-amd64.tar.gz