clojure-europe

For people in Europe... or elsewhere... UGT https://indieweb.org/Universal_Greeting_Time
gklijs 2021-06-15T05:04:17.478900Z

Good morning

RAMart 2021-06-15T05:08:31.479100Z

slipset 2021-06-15T05:32:13.479400Z

Morning!

dharrigan 2021-06-15T05:35:30.479600Z

Good Morning!

2021-06-15T05:59:06.479800Z

Morning

javahippie 2021-06-15T06:02:29.480Z

Morning!

ordnungswidrig 2021-06-15T06:23:01.480200Z

Good morning!

pez 2021-06-15T06:49:12.481400Z

Good morning. I’m in dependency hell with Calva right now. It’s pretty rare, but hellish anyway.

simongray 2021-06-15T07:28:21.481600Z

good morning

jasonbell 2021-06-15T07:31:55.481800Z

Morning

mccraigmccraig 2021-06-15T07:59:53.482Z

måning

ordnungswidrig 2021-06-15T08:04:02.482500Z

I'd rather not mention that I was fighting Scala build problems for the last days.

🏗️ 1
😢 1
😭 2
mccraigmccraig 2021-06-15T08:06:55.483700Z

does npm's first-class module approach reduce dependency hell suffering ? it seems to me like it might, but i've no idea if there are other consequences which are as bad or worse

dominicm 2021-06-16T19:40:50.012500Z

A big consequence of the npm stuff is that you can't always pass objects between libraries, as they might be using distinct & incompatible versions of objects (even if the API is compatible, even!).

dominicm 2021-06-16T19:41:19.012700Z

This comes up if you use a library that wraps or enhances another library.

dominicm 2021-06-16T19:41:28.012900Z

Clojure doesn't have this problem as much because of data.

pez 2021-06-15T08:27:54.484200Z

I'm not familiar.

mccraigmccraig 2021-06-15T08:32:29.484400Z

a module is just an object/map, and its exports are values on the object... there is no global namespace, and any private data is hidden inside a closure, so you can have multiple versions of the same lib imported into the same program

mccraigmccraig 2021-06-15T08:34:34.484600Z

then an import looks like this:

const {opt,
       VERSION,
       API_VERSION,
       BUILD_VERSION,
       LEX_BUILD_VERSION,
       PRODUCTION_API_HOST} = require('../build/gulp/config');
which is just using standard object destructuring to give local names to the module's exports - require is a function returning the module object

mccraigmccraig 2021-06-15T08:35:51.484900Z

i've always thought it very simple and neat, but i haven't used #js enough to really get a feel for consequences

pez 2021-06-15T08:46:03.486300Z

We use that a lot in Calva. I have just been thinking about it as similar to :refer

Ed 2021-06-15T08:58:00.486500Z

the js instance style dependency thing allows for multiple versions of something to be loaded and runnable, so it is more resistant to breakages, but it also means you can't redefine a function at the repl in the way clojure does (or at least it works like when you have multiple macros and you change the one at the bottom of the stack, so you now need to re-eval all the call-sites) .... it also makes it more effort to make sure that you've definitely removed a vulnerable version of a dependency ... so, there are trade-offs 😉

Ed 2021-06-15T08:58:32.486900Z

Morning

thomas 2021-06-15T09:05:52.487100Z

mogge

gklijs 2021-06-15T09:08:58.487200Z

With Rust it's a bit similar. Another problem is when a dependency is kind of exposed in a library. Like when you convert it to 'Avro' data, or with an async framework. If the versions don't match you get weird errors because the byte code doesn't match. Something like: "this Foo is not an instance of Foo".

mccraigmccraig 2021-06-15T09:41:54.487400Z

those are exactly the sort of consequences i haven't done enough raw #js to experience @l0st3d 😬 - a global namespace does seem like it will make repl usage much easier

Ed 2021-06-15T09:47:44.487600Z

👍 ... it's fine if you just expect to restart your process all the time ... or refresh the webpage ... but as soon as you change that assumption you get trouble 😉

mccraigmccraig 2021-06-15T09:49:50.487800Z

i end up using c.t.n.r/refresh a fair bit in clojure because of "this Foo is not an instance of Foo" errors (e.g. when a defprotocol gets re-evaulated but the dependent defrecord and deftypes don't), so maybe it's not so very different

Ed 2021-06-15T10:24:10.488100Z

I used to have the refresh problem, but I have it less these days. I think I took the need to a full refresh as a sign that I'd done a bad job in dividing up the namespaces and these days I have it less ... I feel like the messages the universe gives you are subtle and it's your job to work out the meaning , and sometimes more tooling isn't the answer 😉

ordnungswidrig 2021-06-15T14:01:33.488300Z

I try to avoid classes / records alltogether in favor of ad hoc generated reifytations.

2021-06-15T15:39:22.489200Z

finally got a vaccine appt (Thurs afternoon)

💉 1
🎉 4
mccraigmccraig 2021-06-15T15:49:15.489500Z

just got my second appt today... i've been checking everyday for weeks, and suddenly there are appointments available 3 weeks earlier than the appointments i was previously being offered (which i won't be around for)

mccraigmccraig 2021-06-15T15:49:50.489700Z

maybe the code-change to allow old dudes to bring their appointments forward just hit production

mpenet 2021-06-15T15:58:32.489900Z

I drove 200km to another county to get my first shot last week.

agile_geek 2021-06-15T16:15:43.490200Z

Got my second on the 22nd... but then I'm really old and I had first one on 6th April!

seancorfield 2021-06-15T16:31:55.490400Z

The AZ vaccine has a bigger window between 1st and 2nd dose? (than Moderna/Pfizer)

seancorfield 2021-06-15T16:33:16.490600Z

They’ve maintained a very strict four week appointment window over here for Moderna/Pfizer. When anyone gets their 1st shot, the 2nd appointment is made immediately, at that time, for almost exactly four weeks in the future. But mum and her hubby in England waited about 12 weeks between 1st and 2nd AZ shots I think?

mccraigmccraig 2021-06-15T16:35:28.490800Z

going to be ~8 weeks between 1st and 2nd shots of moderna for me, in brighton UK

seancorfield 2021-06-15T16:35:49.491Z

And congrats on your shots everyone! We got our first shots almost as soon as we became eligible (April 1st for my wife and April 9th for me — April 1st was the date they opened it up to 50+ — and we got a nurse friend to help get my appointment since my wife had gotten so lucky with hers). Such a weight off our minds to be fully vaccinated — just in time for our 21st anniversary so we felt safe to eat indoors at a nice restaurant!

seancorfield 2021-06-15T16:36:20.491200Z

@mccraigmccraig My folks live in West Chiltington nearby and he has several properties in Brighton.

mccraigmccraig 2021-06-15T16:38:56.491400Z

ha, i'm not actually in brighton itself ... i'm in ditchling which is another village nearby - had your folks lived in east chiltington we would almost have been neighbours, but it appears west chiltington is quite a long way away from east chiltington

seancorfield 2021-06-15T16:41:31.491600Z

The quirks of little English villages 🙂

2021-06-15T16:44:23.491800Z

it took a while for NHS Scotland to find me (as I had moved from NHS England, and there are 3 NHSs and 1 HSCNI in the UK despite what some URLs would have you believe)

seancorfield 2021-06-15T16:48:23.492Z

Are vaccination records coordinated centrally in the UK? (they are here, via the CDC, but getting actual vaccination appointments here is a labyrinth of individual health care companies, not even at the county level, let alone state level)

2021-06-15T16:48:45.492200Z

@seancorfield centrally as in each devolved nation?

2021-06-15T16:49:34.492400Z

probably. I'm not sure what will escape the hospitals and GPs as it is more about reporting upwards when required by local or national practice.

seancorfield 2021-06-15T16:49:38.492600Z

Well, I guess I was asking at what level are vaccination records tracked… I’m guessing the answer is at the “NHS” equivalent organization level?

2021-06-15T16:50:17.492800Z

for Covid, probably at the national level, but most things will be at the GP hospital level (tho hospital events are reported upwards usually)

mccraigmccraig 2021-06-15T16:50:46.493Z

the covid vaccination records appear to be centrally co-ordinated in england... not sure if scawtland is included in the same database though

2021-06-15T16:51:01.493200Z

definitely different databases

seancorfield 2021-06-15T16:51:02.493400Z

My COVID-19 vaccination card is an official CDC (national, federal) document.

seancorfield 2021-06-15T16:51:16.493600Z

Interesting. Thanks.

2021-06-15T16:51:20.493800Z

as I was getting notifications from my old surgery in London, even tho I'd registered in Scotland

mccraigmccraig 2021-06-15T16:51:35.494Z

the http://nhs.uk site also uses a integer counter to determine appointment ids 🙈

2021-06-15T16:51:46.494200Z

and chasing the appointment has been through the Scottish NHS website

2021-06-15T16:52:09.494400Z

I can't chase a Scottish appt via http://nhs.uk, as it isn't really a UK service, but actually an English service

seancorfield 2021-06-15T16:52:18.494600Z

Heh, when our GP switched offices, it took six months to get his own patients’ records moved over to the new system… we didn’t move anywhere and he only moved about a mile in the same town 🙂

mccraigmccraig 2021-06-15T16:52:44.494900Z

my vaccination card is issued by "public health england". no idea how that is or isn't related to the nhs

seancorfield 2021-06-15T16:53:20.495100Z

Yeah, I’ve seen a lot of references to PHE and I hadn’t heard of it until the pandemic…

mpenet 2021-06-15T16:53:56.495600Z

7 weeks interval here for pfizer

2021-06-15T16:55:17.495900Z

I think PHE happened b/c they wanted to take a lot of the PH responsibilities away from local authorities (tho some LAs still do some on their own)

mpenet 2021-06-15T16:55:30.496100Z

Some study showed immune response is actually better with more than 4 weeks for pfizer iirc, that's why a lot of countries increased it. I think the study went as far as 11 weeks

2021-06-15T16:56:09.496300Z

it is weird being so early days in a lot of the vaccine stuff that we don't know what is most effective as there just hasn't been that long to tell

2021-06-15T16:56:24.496500Z

(like how long the vaccine effectiveness will last, or if we'll need boosters)

mpenet 2021-06-15T16:56:38.496700Z

Yes, it's difficult to know who to trust

2021-06-15T16:56:54.496900Z

obviously PHE has nothing to do w/Scotland/Wales/NI

2021-06-15T16:57:31.497100Z

it has been weird watching the news and seeing Boris Johnson as Prime Minister being really obviously only Prime Minister in England

🤢 1
2021-06-15T16:58:34.497300Z

(tho Westminster Parliament can write a law to reverse devolution in health whenever they want, or take all the doctors from one part of the country and put them in another if they want. The amount of power washing around is pretty worrying tbh)

2021-06-15T16:59:11.497500Z

(and current PM and gov't get very excited about their parliamentary sovereignty and Henry VIII powers)

2021-06-15T17:25:17.497800Z

@mpenet re:trust - yeah, having to become an expert on vaccines and viral spread of deadly diseases during a widespread failure of public health orgs (WHO, CDC, PHE, others) has been a lot of fun.

raymcdermott 2021-06-15T18:08:33.498400Z

morning

2021-06-15T20:34:52.499500Z

Sorry @agile_geek https://twitter.com/ScotlandNT/status/1404893896920997889?s=19 :flag-scotland: :woohoo:

agile_geek 2021-06-15T20:36:23.499900Z

It's fine. It only counts in Rugby Union!

2