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
dharrigan 2020-08-19T07:03:37.051600Z

Good Morning!

Jakob Durstberger 2020-08-19T07:33:27.051800Z

Good morning y’all 🙂

Jakob Durstberger 2020-08-19T07:35:01.051900Z

Can I just say how amazing I think it is that you are trying to be inclusive to people with photo-sensitivity. :fist:

1👍
alexlynham 2020-08-19T07:39:19.052100Z

morning

wotbrew 2020-08-19T07:46:25.052300Z

@dominicm I'm not exactly sure how this would help? Do you have an example of the problem at hand?

2020-08-19T08:38:42.052500Z

@danstone: yeah that makes a lot of sense, I’ve just seen the changes you made to the why section in the README. I could certainly see myself using something like this.

dominicm 2020-08-19T08:39:57.052700Z

@danstone if you have [1 2 3 4 5] and you want to place 5 between 2 and 3 that's annoyingly difficult to do efficiently.

dominicm 2020-08-19T08:40:31.052900Z

The classic solution involves subvec and other magic :)

dominicm 2020-08-19T08:41:13.053100Z

5 is not the best example there. Maybe placing 4 between 2 and 3. The instructions are arbitrary.

1👍
dominicm 2020-08-19T08:41:22.053400Z

Morning

2020-08-19T08:44:33.053600Z

Can idx could help with that? I might well be missing something.

2020-08-19T08:58:38.054100Z

Morning

djm 2020-08-19T09:06:06.054300Z

👋

mccraigmccraig 2020-08-19T09:34:00.054500Z

måning!

wotbrew 2020-08-19T10:23:44.054600Z

I mean you could use the sorted index to write a function that does that in a linear pass. If you want to do multiple reinsertions you might be able to use replace-by.

wotbrew 2020-08-19T10:23:56.054800Z

(let [coll (auto-idx [1 2 3 4 5])
      target 5
      left (ascending coll identity <= 2)
      right (remove #{target} (ascending coll identity >= 3))]
  (concat left [target] right))
? @dominicm

wotbrew 2020-08-19T10:24:59.055100Z

idx really doesn't offer you anything you couldn't do yourself manually of course. (e.g I could create a sorted map there and do the same thing)

1👍
thomas 2020-08-19T11:21:25.055500Z

mogge

maleghast 2020-08-19T12:27:23.056400Z

Oh wow, my EpoMaker keyboard arrived and it's rather lovely...

maleghast 2020-08-19T12:27:33.056700Z

Hello everyone, by the way!

dharrigan 2020-08-19T12:28:58.056900Z

Which one did you buy?

maleghast 2020-08-19T12:32:41.057500Z

Purple Aluminium case with clicky switches

maleghast 2020-08-19T12:32:54.057800Z

and white, grey and red keycaps

maleghast 2020-08-19T12:33:02.058Z

oh yeah and it can bluetooth

maleghast 2020-08-19T12:33:10.058300Z

but it's wired right now

maleghast 2020-08-19T12:33:21.058500Z

lunch

2020-08-19T13:02:56.058700Z

Morn'

2020-08-19T19:52:27.058900Z

Anyone have experience of both auth0 and AWS Cognito as identity management platforms? I'm looking to migrating from a custom authorization service I have. So far auth0 seems pretty flexible

Jakob Durstberger 2020-08-20T09:54:34.002300Z

I am using Cognito for a side project and found it quite useful. But I have only used user pools, so haven’t played with 3rd party auth and identity pools.