This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2021-04-12
Channels
- # announcements (1)
- # babashka (79)
- # beginners (165)
- # calva (29)
- # cider (20)
- # clara (3)
- # cljdoc (1)
- # cljs-dev (52)
- # clojure (42)
- # clojure-chicago (5)
- # clojure-europe (48)
- # clojure-germany (1)
- # clojure-italy (4)
- # clojure-nl (2)
- # clojure-spec (10)
- # clojure-uk (19)
- # clojurescript (50)
- # clojureverse-ops (5)
- # conjure (8)
- # datomic (16)
- # depstar (2)
- # events (1)
- # figwheel-main (23)
- # fulcro (26)
- # girouette (41)
- # graalvm (9)
- # heroku (3)
- # honeysql (10)
- # jackdaw (20)
- # lambdaisland (6)
- # lein-figwheel (1)
- # lsp (34)
- # malli (7)
- # meander (3)
- # music (1)
- # off-topic (14)
- # polylith (7)
- # re-frame (14)
- # reitit (8)
- # reveal (15)
- # ring (3)
- # schema (1)
- # sci (15)
- # shadow-cljs (42)
- # spacemacs (1)
- # startup-in-a-month (12)
- # tools-deps (59)
- # vim (1)
- # xtdb (27)
Morning!
No snow, here, was only sleeting. The look my dog gave me when we went for a run was not a friendly one
mÄning!
We had the fluffiest of snow flakes this morning.
We have âunevenly bright cloud shineâ now.
I have reservations about my 4 year old son, he's becoming too english. He was commenting this morning on how fine the weather was and he hopes it will improve later....
2 small rubbish libraries to help me with charting and data science https://github.com/MastodonC/kixi.plot & https://github.com/MastodonC/kixi.large
atm it is really just solving some things that have been annoying me about the libraries that I've been using
if you aren't embarrassed by your first release then you waited too long to ship? đ
TIL:
(def ^:dynamic *foo* :FOO)
(defn foo [x] [*foo* x])
(binding [*foo* :BAR]
(map foo [1 2 3]))
=> ([:FOO 1] [:FOO 2] [:FOO 3])
https://clojuredocs.org/clojure.core/binding#example-60746e7de4b0b1e3652d74c4bound-fn
:
user=> (def ^:dynamic *foo* :FOO)
#'user/*foo*
user=> (defn foo [x] [*foo* x])
#'user/foo
user=> (binding [*foo* :BAR]
(map (bound-fn [x] (foo x)) [1 2 3]))
([:BAR 1] [:BAR 2] [:BAR 3])
user=>
Even better, bound-fn*:
user=> (binding [*foo* :BAR]
(map (bound-fn* foo) [1 2 3]))
([:BAR 1] [:BAR 2] [:BAR 3])
Will you update the ClojureDocs example, or should I, @U09LZR36F?
babashka does not support bound-fn
, nor bound-fn*
, I just learnt. đ Maybe it canât?
@U1G869VNV I think it's not needed in cljs, as there's no threads, but I'm not certain tbhâŠ
@U0ETXRFEW I don't think I've ever made a ClojureDocs update, all yours :)
https://gist.github.com/micha/c9d8175d80e8a7d378adb6047e850c50 hoplon got your back @U1G869VNV (I've apparently googled this before)

it's a common source of confusion. I spent an entire day figuring out why my datomic query didn't execute against a certain "as of" date because of this and then rewrote an entire app to take the db as an argument instead.