Fork me on GitHub
#clojure-uk
<
2017-09-10
>
dominicm06:09:58

@maleghast I love First Direct. Nothing but good from them. Malcolm will say the same too.

dominicm08:09:11

http://www.brics.dk/automaton/index.html this is really fast. It outperforms java regexes by quite a bit. Has a fairly functional api too. I'm experimenting with building a router where the goal is "fast" first, getting some interesting results.

maleghast12:09:24

@dominicm - Glad to hear that things have improved with them, or at least that they manage to give good service to some people…

maleghast12:09:33

Looking at the link re regexes

dominicm12:09:46

1 gotcha: no capture groups.

maleghast12:09:53

Yes, I just noticed that in the FAQ

maleghast12:09:29

I imagine that there is value in using it where you need speed over flexibility, but reverting back to more standard pattern matching approaches for other tasks..?

dominicm12:09:53

I was hoping I could emulate it via info exposed from the engine. But I'm reaching my giving up point.

maleghast12:09:57

You were going to emulate it to re-do the capability in Clojure?

maleghast12:09:09

Or you were going to emulate capture groups?

dominicm12:09:28

emulate capture groups. Routes only need a few simple ones.

dominicm12:09:12

Just for comparison, for static routes, I get numbers like: brics: 6ms, regex: 15ms, silk: 50ms, bidi: 115ms.

dominicm12:09:09

It's probably worth using brics to filter down the route, then use regex to pull out the groups. If you have ~30 routes, it's 6*30 + 15 vs 15*30.

dominicm12:09:54

Brics is advantageous that you can build it up with functions, unlike regex which is careful string concatenation at best, which really sucks.

dominicm12:09:09

String concatenation just is rubbish.

maleghast12:09:05

Ah I see, you are optimising routing…

maleghast12:09:16

*light dawns finally on maleghast’s mind*

maleghast12:09:11

I have spent the morning reading “scholarly” works about Supply Chain Risk Management and realising three things: 1. There are almost no Open Source tools in this area 2. Almost all of the theory springs out of Change Management theories and “frameworks” 3. If I could just get my head around it I think that logic programming is going to be a huge help in trying to do this stuff…

maleghast12:09:18

My brain is now melting.

maleghast12:09:30

I am also secretly of the opinion that a LOT of the “research” and “scholarly work” in this area is a lot of hot air and pontificating and not a lot of ACTUAL work, and that Management Consultants and McKinsey style “trouble shooters” have been making a LOT of money out of spouting off about this stuff and not actually having to deliver anything.

dominicm13:09:29

What is Supply Chain Risk Management exactly? It sounds quite customer-specific.

maleghast13:09:32

Basically it’s about modelling the risks inherent in a supply chain, and then having predictors and monitors to empower decision making… Imagine you are Unilever, and you have to maintain clear routes of supply for staple ingredients for your food products, like soya, sugar, wheat etc. The business process of modelling the risks inherent in that supply chain extend to geophysical risks (weather, climate, geography and geographically specific disasters like flooding landslides etc.), political (taxation, trade tariffs, even political instabilities) and logistical risks (such as reliability of shipping, time-based risks represented by port activity, etc.)

maleghast13:09:26

It is, to an extent, something that cannot be genericised, but there are examples of people trying to provide generalised tools like this: https://www.riskscape.org.nz/ and I am looking into ways we might be able to do it for agriculture and specifically supply chain risk instead of just geophysical risk (like RiskScape)

maleghast13:09:59

and it’s melting my brain…

maleghast13:09:38

But I’ll get there… There is this thing called Discrete Event Simulation that might be well suited to Logic Programming and / or DAG stuff…

maleghast13:09:46

I need to do some more thinking…

maleghast13:09:53

Now, lunch time…

maleghast15:09:01

Right, gotta go get ready to leave for the airport - London I will be in you later… 🙂

otfrom17:09:19

@maleghast I don't do that until 0dark30 tomorrow

maleghast18:09:50

Night flight or the night train, @otfrom ?

otfrom20:09:21

Morning flight