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-16T04:48:07.296100Z

Morning

seancorfield 2020-09-16T05:14:56.296300Z

Mornin'

seancorfield 2020-09-16T05:15:23.296900Z

We finally have blue sky here and could open the windows again! How's the weather over there?

djm 2020-09-16T05:41:25.297300Z

27C here yesterday, and quite warm the two days before

djm 2020-09-16T05:42:39.298Z

Today's forecast is for 23C, then cooler tomorrow

seancorfield 2020-09-16T05:43:16.298700Z

We had a run of days where it was 39 C 😞 Then the sky turned orange, then it turned grey and the air quality index has been 200 (unhealthy) for a week.

seancorfield 2020-09-16T05:43:56.299300Z

I'm certainly missing UK weather (or any European weather) right now...

djm 2020-09-16T05:44:01.299400Z

Are you near any fires/rioting/...?

seancorfield 2020-09-16T05:44:59.300600Z

The biggest fire got within about 20 miles of us. There's no rioting in California. There's very little actual "rioting" anywhere in the US but the media sure loves anything it can portray as a "riot" 😞

dharrigan 2020-09-16T05:52:19.300800Z

Good Morning!

dominicm 2020-09-16T06:21:46.301600Z

@folcon I'm not sure what webpack version I'm on, I haven't upgraded though

dominicm 2020-09-16T06:25:16.302200Z

But yeah, if there's updates going on right now, it's JavaScript so turmoil

jiriknesl 2020-09-16T07:01:30.302400Z

Morning

alexlynham 2020-09-16T07:28:51.302500Z

morning

alexlynham 2020-09-16T07:29:43.302600Z

@folcon are you on shadow? that had the best npm interop story that i've used

thomas 2020-09-16T07:39:00.302800Z

Morning

mccraigmccraig 2020-09-16T07:40:51.303Z

måning

2020-09-16T07:48:07.306100Z

@folcon I was initially a little skeptical of shadow-cljs, and perhaps still am, but there’s no denying it works well in practice and is a pragmatic choice for many reasons. thheller is also a superb and very responsive maintainer.

👍 3
Aron 2020-09-16T08:33:04.309Z

I also love shadow, took some time to understand how to use it, but it's a much better build tool than webpack (although this says more about webpack than shadow, shadow is actually better than most js build tools I ever used and I used professional about a dozen at least)

Aron 2020-09-17T16:43:34.389400Z

I have not used gulp/grunt/fez/bower/ or any of these ever. 🙂 Not for production anyway.

mccraigmccraig 2020-09-17T16:53:47.389600Z

gulp was actually pretty nice (it uses an async streams and promises model i'm very familiar with from clojure), but we had to do some JSON->EDN conversion and doing anything with js datastructures is just awful

2020-09-16T09:50:42.310800Z

Morning folks. Is there a method you can override to configure which fields from of a value (whose type is defined by deftype) is printed by pprint?

mccraigmccraig 2020-09-16T09:51:35.311100Z

@cddr print-method iirc

2020-09-16T09:52:26.312100Z

I think that affects core printing functions like prn and print but not pprint which continues to print everything

mccraigmccraig 2020-09-16T09:52:52.312400Z

oh, duh! i didn't read correctly... pprint

2020-09-16T13:08:27.313200Z

Figured out that the method to override is http://clojure.pr/simple-dispatch

mccraigmccraig 2020-09-16T13:15:56.313300Z

i ended up driving shadow with gulp, because the build part of shadow is quite simple, but despite that the repl tooling, npm and node support and per-ns js-output-size-contribution reports made for an outstanding experience

2020-09-16T13:59:48.315300Z

@rickmoynihan I did tinker with shadow for a little bit while I was working with fulco, but there were still some issues at that point. I believe it's gotten better, but I've not got a new project lying around at the moment to try it again... So at some point I'll kick those tires again 😃...

2020-09-16T14:00:30.315500Z

Also Morn'

2020-09-16T14:00:31.315700Z

😃

dominicm 2020-09-16T14:09:02.316200Z

@folcon I'm on webpack4 still, just checked. I think we rely on those shims too, so I'll probably hold off updating 😄

dominicm 2020-09-16T14:09:35.316900Z

Frankly, the js world is a mess, and by using npm we get to be part of that mess a little. I think it's really just inevitable. There's an army of webpack devs out there.

2020-09-16T14:11:43.317800Z

I only updated to 5 because when I was chatting with bhauman about setting up figwheel main, that's specifically the version he suggested...

2020-09-16T14:12:25.318500Z

It's not too fiddly, but it's irritating at the moment as you can't tell when it's breaking for you...

2020-09-16T15:09:45.320300Z

You definitely also get issues in shadow-cljs too, to do with transitive npm dependencies and how cljs projects include them… I had one today infact, which was resolved by updating shadow-cljs.

2020-09-16T16:15:00.321200Z

Not sure how to go about improving the status quo here? Is it just better detection / messaging?

dominicm 2020-09-16T16:24:04.321700Z

Burn the node world to the ground and start over

dominicm 2020-09-16T16:24:26.322200Z

It requires a change in culture I think

2020-09-16T16:56:44.322900Z

Not everything can be solved by sufficient application of fire, but you might be right about npm...

alexlynham 2020-09-16T17:10:30.323Z

tbh npm isn't that bad

2020-09-16T17:15:33.323700Z

I'm speaking a little tongue in cheek, but it does sit on many real hours of head against desk...

mccraigmccraig 2020-09-16T17:26:27.326200Z

i've not had much, if any, head-meets-desk from npm - and our build setup is (i think) quite involved - so there must be some way or ways of avoiding it, i seem to have happened upon it by accident, so, sadly, i can't tell you what that way is

alexlynham 2020-09-16T17:55:35.326300Z

i have had 10x more issues with lein on jvm than i've ever had with npm (either js, ts or cljs)

alexlynham 2020-09-16T17:56:06.326400Z

and maybe that's cos i'm not a Java Guy™ so i don't know the right animals to sacrifice at which equinox

alexlynham 2020-09-16T17:56:19.326500Z

but npm has been a lot more foolproof for me

dharrigan 2020-09-16T18:02:01.329Z

When I mess around with the javascript ecosystem (which happens!) I use yarn not npm

mccraigmccraig 2020-09-16T18:02:28.329400Z

npm (and i suspect yarn) has a way of avoiding jar-hell, which mvn/jvm doesn't - that's certainly made life easier

mccraigmccraig 2020-09-16T18:03:10.329900Z

ah, yarn uses npm packages, so it has the same way of avoiding jar-hell as npm!

dominicm 2020-09-16T18:44:58.330700Z

Npm is fine. Node culture is what's painful.

dominicm 2020-09-16T18:45:09.331Z

Constant improvement. Constant breakage.