clojure-nl

Companies working with Clojure in The Netherlands: https://docs.google.com/spreadsheets/d/1NzOqY1v-OReB1IquUgHuT3Kh8K8jhPdlwBM6ds7id6Y/edit?usp=sharing
gklijs 2021-03-29T07:30:11.023900Z

Morning, your guess is as good as mine about what to do today.. Likely some kubernetes / authentication stuff..

thomas 2021-03-29T09:45:16.024100Z

mogge

Mno 2021-03-29T15:06:12.024300Z

Mornin, I'm trying to figure out if mapcat concatenate lazily

borkdude 2021-03-29T15:10:19.024600Z

it does.

(take 2 (mapcat identity (repeat [1 2])))
(1 2)

borkdude 2021-03-29T15:10:30.024900Z

if it would realize its argument, then this would never finish

borkdude 2021-03-29T15:12:00.026Z

but note that many "lazy" functions produce chunked seqs, so at minimum 32 elements are realized when you take the first element. don't rely on lazy evaluation if you want to rely on side effects in those

Mno 2021-03-29T16:07:02.026200Z

Ohhhh

Mno 2021-03-29T16:07:21.026300Z

That's an easy way to check! Yeah in my case it's a series of api calls

Mno 2021-03-29T16:07:47.026400Z

An infinite series of api calls

borkdude 2021-03-29T16:12:49.027Z

yeah, it's probably better to not use laziness here, unless you don't care about the exact times the API is called (could be an off by ~32)

Mno 2021-03-29T16:43:48.027200Z

It's more about the amount of data not ovwrwhming the ram

Mno 2021-03-29T16:44:55.027300Z

It has to do with an internal library we use

Mno 2021-03-29T16:48:02.027400Z

But that's good to know