clojure-uk

A place for people in the UK, near the UK, visiting the UK, planning to visit the UK or just vaguely interested to randomly chat about things (often vi and emacs, occasionally clojure). More general the #ldnclj
jiriknesl 2020-09-25T04:51:01.013600Z

Morning.

jiriknesl 2020-09-25T04:51:48.014300Z

UK specific thing: So I see there are lots of houses with conservatories. Are they usable all year?

seancorfield 2020-09-25T04:52:54.015200Z

My mum's is, yes. No matter what time of year we visit, we pretty much always sit out in the conservatory to drink our morning coffee/tea and read the papers.

seancorfield 2020-09-25T04:54:15.016500Z

She usually tries to get us to sit at the dining table for breakfast but if we get to the kitchen first, we make our own breakfast and go eat that in the conservatory. Mid-afternoon we'll usually go and after tea and snacks in the conservatory as well.

mccraigmccraig 2020-09-25T05:00:28.016800Z

ยกmรฅnmรฅn!

dharrigan 2020-09-25T06:10:38.017Z

Morning!

djm 2020-09-25T07:05:33.018700Z

Ours gets very hot in the summer, and very cold in the winter (and loud in the rain). Mostly it's just used for storing toys

alexlynham 2020-09-25T07:11:07.018800Z

morning

alexlynham 2020-09-25T07:11:18.018900Z

ours is the warmest room in the house most times of year

alexlynham 2020-09-25T07:11:34.019Z

but we had it fully boarded out and sealed under the eaves

jiriknesl 2020-09-25T07:20:40.019600Z

Thanks. And would you build one if you bought a house with enough space for it?

thomas 2020-09-25T07:31:57.019800Z

moin moin

yogidevbear 2020-09-25T08:17:52.020200Z

Morning

yogidevbear 2020-09-25T08:21:16.024800Z

Our conservatory is usable all year round, although we do have two small radiators in that room. They (conservatories) are prone to leaks over time. If I had a choice, I'd spend the extra to do a proper extension with skylights. If that isn't an option, I'd recommend putting a light tile roof on the conservatory as it will be less prone to leaks, plus it's a bit more insulated and you can install electrical lighting, etc.

2020-09-25T08:28:20.025500Z

what is > a light tile room ?

Conor 2020-09-25T08:47:45.025600Z

It's simple, it can mount 20 - 35 tons of tiles. Medium is 40 - 55 tons, Heavy is 60 - 70 tons and Assault is up to 100 tons

yogidevbear 2020-09-25T09:00:40.025900Z

My bad, that was a typo. Meant roof.

yogidevbear 2020-09-25T09:02:20.026100Z

This type of thing https://www.lightweighttiles.co.uk/

alexlynham 2020-09-25T09:07:24.026400Z

haha

alexlynham 2020-09-25T09:07:35.026500Z

sorry i read conservatory as loft somehow lol

alexlynham 2020-09-25T09:08:06.026600Z

i wouldn't bother with a conservatory personally, as much for security reasons as anything

dharrigan 2020-09-25T09:40:30.026900Z

I think I've found a new language to upsurp Clojure... <https://tabloid.vercel.app/>

jiriknesl 2020-09-25T11:03:40.028200Z

Thank you all. So it seems to me that there are all kinds of opinions to conservatory usability & viability. ๐Ÿ™‚

Mike C 2020-09-25T11:56:52.029500Z

My brother just had his refitted; he lives up north and it does give a nice warm area to sit in spring / autumn, and somewhere to work in summer that's almost the garden but has nice seating and power and no risk of passing pigeons decorating your laptop screen from on high.

2020-09-25T12:47:22.035900Z

@jiriknesl: if you want something more substantial than a conservatory, a bit more pretentious, but better insulated and most likely more expensive, then at that extreme youโ€™re looking at an orangery.

dominicm 2020-09-25T13:02:01.037800Z

I got a letter through the door with important information about "my" conservatory (I don't own one). Informing me that laws have changed, and you don't need a transparent roof anymore that lets all the heat out.

2020-09-25T13:14:00.038700Z

Morn' ๐Ÿ˜ƒ...

jiriknesl 2020-09-25T13:15:12.040Z

@rickmoynihan thank you, I was looking at orangeries too. I am looking for a place where we can eat & sit and have more sunlight (I badly miss sunlight here in the UK)

2020-09-25T13:15:21.040300Z

Wow, not thought about conservatories in ages, I used to have one growing up, but we rarely sat in it so I've not really thought about it...

๐Ÿ˜„ 1
mccraigmccraig 2020-09-25T16:28:32.042900Z

anyone got any examples of deliberate variable capture in a macro, which they consider to be a good solution ?

mccraigmccraig 2020-09-25T16:29:58.044Z

(i've got a macro problem and i'm struggling to find a solution that doesn't involve a deliberate variable capture... so wondering whether i should go with it or keep looking)

Mike C 2020-09-25T16:41:47.045100Z

I guess the usual examples would be anaphoric macros like those discussed in Let Over Lambda, where you're deliberately capturing a variable like 'self' or 'it' or 'this'

Mike C 2020-09-25T16:41:59.045500Z

Whether that's nice or not depends on what you're doing ๐Ÿ˜‰

mccraigmccraig 2020-09-25T16:50:53.046600Z

it is for a similar use-case to self... i'd forgotten the name "anaphoric" - thanks @clarkema

mccraigmccraig 2020-09-25T16:52:56.047200Z

next question ... are there any conventions for naming anaphors in clojure ?

mccraigmccraig 2020-09-25T16:54:53.047400Z

ah, there's a bit on it here: https://livebook.manning.com/book/the-joy-of-clojure/chapter-8/147

Mike C 2020-09-25T17:00:44.049400Z

That's interesting reading, thanks. I haven't seen it used much in Clojure; the examples in LoL and On Lisp are called things like alambda and aif, which I'm not really a fan of. They feel a bit clumsy, don't tell you what's going on unless you already know, and lead to a profusion of different XYZlambda variants that macro different combinations of features on top of the basic lambda

mccraigmccraig 2020-09-25T17:05:06.052Z

i've got a case which is kinda like the this in proxy mentioned in t.j.o.c ... it's to capture the context being used for a chain of monadic computations, and can then be used by a bunch of helper macros to eliminate a lot of boilerplate - i think it works out quite nicely, just need to choose a name which is unlikely to accidentally clash with user bindings

Mike C 2020-09-25T17:06:35.052200Z

the-thingy

Mike C 2020-09-25T17:10:33.052900Z

Is it intended to be visible to the user to allow them to hook into the computation, or is it for private context communication between nested macros?

mccraigmccraig 2020-09-25T17:10:57.053300Z

generally the latter

mccraigmccraig 2020-09-25T17:14:19.054300Z

i think i'm going to go with a ## suffix, after the style of gensyms... so something like this-monad##

Mike C 2020-09-25T17:17:01.054800Z

No way of avoiding it with the threading macros?

mccraigmccraig 2020-09-25T17:20:06.055900Z

no... not that i can see

mccraigmccraig 2020-09-25T17:33:50.056100Z

works quite well, i think: https://github.com/mccraigmccraig/laters/blob/master/src/laters/control/state.cljc#L54

dominicm 2020-09-25T17:44:05.057Z

I thought your library was named lasers, and I wanted to play with it immediately. I'm now less impressed.

mccraigmccraig 2020-09-25T18:02:16.057500Z

i am the worst library-namer in the world @dominicm

dominicm 2020-09-25T18:03:45.058100Z

1 character short. You're getting better.

๐Ÿ˜‚ 2