clojure-europe

For people in Europe... or elsewhere... UGT https://indieweb.org/Universal_Greeting_Time
slipset 2021-04-12T05:45:31.109200Z

Good morning?

2021-04-12T06:00:46.109500Z

Morning

2021-04-12T06:01:15.109600Z

We had some snow at the weekend but it didn't rest this near the sea

djm 2021-04-12T06:02:20.109800Z

πŸ‘‹

djm 2021-04-12T06:02:47.110300Z

We had light snow on and off yesterday, for most of the day

simongray 2021-04-12T06:05:37.110500Z

good morning

dharrigan 2021-04-12T06:09:28.110700Z

Good Morning!

pez 2021-04-12T06:56:59.110900Z

Morning!

thomas 2021-04-12T07:47:51.111400Z

Morning, we had some snow this morning again. very weird indeed.

jasonbell 2021-04-12T07:54:38.111600Z

Morning

javahippie 2021-04-12T08:17:13.111800Z

Morning!

javahippie 2021-04-12T08:20:18.112500Z

No snow, here, was only sleeting. The look my dog gave me when we went for a run was not a friendly one

πŸ˜‚ 2
thomas 2021-04-12T08:28:20.112700Z

You must have a very clever dog!

mccraigmccraig 2021-04-12T09:05:10.113Z

mΓ₯ning!

raymcdermott 2021-04-12T12:47:18.113300Z

morning

raymcdermott 2021-04-12T12:48:03.114100Z

also a flurry of hail and snow here for 20 mins in the late morning

ordnungswidrig 2021-04-12T12:50:46.114500Z

We had the fluffiest of snow flakes this morning.

dharrigan 2021-04-12T12:51:31.115100Z

It was fluffying it down this morning down in Surrey, UK.

dharrigan 2021-04-12T12:51:37.115400Z

but now, it's fine weather

ordnungswidrig 2021-04-12T12:53:23.115700Z

We have β€œunevenly bright cloud shine” now.

dharrigan 2021-04-12T13:14:38.116500Z

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
djm 2021-04-12T13:28:47.116900Z

"I have reservations about" - sounds like a very English things to say

dharrigan 2021-04-12T13:29:26.117200Z

I've been here far too long πŸ™‚

2021-04-12T14:51:50.118Z

2 small rubbish libraries to help me with charting and data science https://github.com/MastodonC/kixi.plot & https://github.com/MastodonC/kixi.large

slipset 2021-04-12T14:54:05.118500Z

docs sure are rubbish πŸ™‚

2021-04-12T15:25:53.118700Z

omg, the docs are terrible

2021-04-12T15:26:07.119Z

not really fit for public consumption

2021-04-12T15:26:23.119400Z

atm it is really just solving some things that have been annoying me about the libraries that I've been using

2021-04-12T15:28:26.119800Z

if you aren't embarrassed by your first release then you waited too long to ship? πŸ˜„

πŸ˜‚ 2
pez 2021-04-12T15:44:52.120400Z

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-60746e7de4b0b1e3652d74c4

pez 2021-04-13T07:32:12.130700Z

babashka does not support bound-fn , nor bound-fn*, I just learnt. πŸ˜ƒ Maybe it can’t?

dominicm 2021-04-13T19:45:04.134500Z

@djblue I think it's not needed in cljs, as there's no threads, but I'm not certain tbh…

dominicm 2021-04-13T19:45:28.134700Z

@pez I don't think I've ever made a ClojureDocs update, all yours :)

pez 2021-04-13T20:07:26.134900Z

It’s my first as well. πŸ˜ƒ

dominicm 2021-04-13T20:09:24.135100Z

https://gist.github.com/micha/c9d8175d80e8a7d378adb6047e850c50 hoplon got your back @djblue (I've apparently googled this before)

πŸ˜‚ 1
1
borkdude 2021-04-12T15:48:28.120800Z

this is laziness biting you

borkdude 2021-04-12T15:49:09.122Z

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.

πŸ’― 2
πŸ˜… 1
mccraigmccraig 2021-04-12T15:49:51.122300Z

friends don't let friends use dynvars 😬

πŸ™‚ 2
pez 2021-04-12T15:53:53.124400Z

Yeah, lazyness is what I blamed in the ClojureDocs example. I might rewrite my (babashka) script to thread the value through as an argument instead. (Or I might stop at just using doall, which works for my use case.)

djblue 2021-04-12T15:58:32.124700Z

I literally just experienced this same issue this weekend!

πŸ˜‚ 1
raymcdermott 2021-04-12T18:03:20.125900Z

dynamic vars in tests are nice - in reality, not so much

βœ… 1
dominicm 2021-04-12T18:34:04.127Z

bound-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=> 

dominicm 2021-04-12T18:36:16.127600Z

Even better, bound-fn*:

user=> (binding [*foo* :BAR]
  (map (bound-fn* foo) [1 2 3]))
([:BAR 1] [:BAR 2] [:BAR 3])

djblue 2021-04-12T18:46:53.127800Z

Okay, now those are some pretty dope functions! :aw_yeah:

djblue 2021-04-12T18:47:08.128Z

Thanks for sharing!

djblue 2021-04-12T18:56:17.128300Z

Is there a cljs equivalent?

pez 2021-04-12T19:16:46.128500Z

Thanks!

pez 2021-04-12T19:17:18.128700Z

Will you update the ClojureDocs example, or should I, @dominicm?