Fork me on GitHub
#clojure-uk
<
2020-02-10
>
dharrigan06:02:04

Good Morning!

mikepjb07:02:18

Mornin' ☀️

Johanna08:02:30

Morning 🍃

thomas08:02:38

morning

👋 4
3Jane08:02:07

(It’s a bookstore in London and for some reason everything they post slays me or is v. interesting or both)

👍 4
maleghast09:02:42

Morning everyone

Rachel Westmacott09:02:40

RCFOTD:

clojure.core/error-handler
([a])
Returns the error-handler of agent a, or nil if there is none.
  See set-error-handler!

👍 4
Rachel Westmacott09:02:06

I don't think I've ever used this one.

mccraigmccraig10:02:32

we have precisely 4 uses of agent in our codebase... none of which are using the error-handler, although we usually encode error states in the agent value itself, so :man-shrugging:

Rachel Westmacott11:02:20

But you do use agents? Interesting.

mccraigmccraig13:02:58

yes - there is one particular use-case where they fit better than anything else - objects where you need to strictly serialise access and don't-want/can't-have the multiple-execution feature of an atom swap!

mccraigmccraig13:02:13

we never expose the agents as part of a (lib) API, we always use promises (well, proper promises aka manifold/deferred) but use an agent behind the scenes to serialise access to some in-memory state

Rachel Westmacott09:02:20

I think I've ended up using single-threaded thread pools in that use-case - but mostly because I've come from Java and never really looked at agents since I was first learning Clojure.

mccraigmccraig11:02:41

i think agents are probably pretty neat if you also use STM features ... they interact the same way with the STM ref transactions in the same way that persistent queues interact with dbs in a distributed transaction ... but i've never found a use for the STM at all, so i'm only using agents for this limited case - they do work great for it though

guy12:02:34

Ello Ello morning all

👋 16
thomas15:02:43

Someone installed a CO2 meter in our office and when I came in this moring it was measuring about 400+ PPM... within an hour we hit almost 700 PPM.

Ben Hammond15:02:28

do you need to do something about your carbon footprint?

practicalli-johnny15:02:32

@thomas work in a mushroom farm when someone leaves the heat on overnight, then the next day you get to experience the effects of excessive carbon dioxide. Its all the worst parts of being drunk.

thomas15:02:07

I have never been in a mushroom farm, but I have been subjected to mushroom management im the past.

practicalli-johnny10:02:44

I breached that level....

rhinocratic17:02:29

Just listened to DHH's talk on air quality after reading about your CO2 meter, @thomas - some interesting (and moderately alarming) stuff in there. I bought a CO meter after experiencing dreadful lethargy and muzziness in the winter months, which always seems to coincide with turning on the central heating. However, it registers 0ppm CO. Now thinking that CO2 build-up may be the problem, and have bought an Awair meter to check this out! Clearly, I need to get out more. Or open the windows and wrap up. :face_with_rolling_eyes: https://www.youtube.com/watch?v=MRqh8oLY7Ik

rhinocratic17:02:12

He also cites the study you mentioned, @otfrom.

rickmoynihan09:02:00

I’ve no idea if anyone else has experienced this; but literally everytime I have ever visited IKEA I’ve come away feeling really ill. I’ve long suspected it’s due to the various toxins in the furniture being concentrated in the warehouse and showrooms; coupled with the artificial lights and lack of day light; and the relatively large amount of time (typically maybe 1-2hrs) you’re forced to spend in there walking their loop, and fighting through the crowds of people.

rhinocratic10:02:56

Must admit that I've never visited IKEA (which probably puts me in a tiny minority). However, certain fluorescent lights have a strange effect - I feel as though I'm going to black out, and need to sit down before I fall down.

rickmoynihan10:02:05

I personally always try and avoid visiting IKEA, largely because of the sickness. I also have the same experience with some fluorescent lights -- though the places that tend to have those lights are also the kind of places that seem to smell of formaldehyde so who knows :man-shrugging:

otfrom14:02:37

mmm... formaldehyde