Fork me on GitHub
#clojure-uk
<
2018-05-24
>
thomas06:05:11

morning from the šŸš‹

3Jane06:05:25

Speed of json processing is not a bottleneck, no, but when youā€™re writing a backend, shaving off milliseconds off a request can be valuable

šŸ’Æ 4
3Jane06:05:35

Morning :)

3Jane06:05:03

...continuing on yesterdayā€™s theme, Facebook send a query ID rather than a full Graphql query

3Jane06:05:45

(You might say ā€œoh thatā€™s Facebook, itā€™s worth it at that scaleā€ but even at a smaller scale there is a difference, we noticed it internally)

dominicm07:05:06

the trick is to not count, then you don't have to worry about performance

šŸ˜‚ 4
korny07:05:20

Is the jsonista lazy for producing json streams? Iā€™d be interested in switching over, but my current app really benefits from laziness - Iā€™m writing a better git logger, for extracting CD data from git logs, and itā€™s nice to just run it piped through less, which only works if itā€™s lazy

korny07:05:47

(Itā€™s a fun side project, as part of a set of things Iā€™m doing on simple code metrics - sample output:

{
  "committer" : "",
  "name" : "bec9be9c34ef009e7fa72d93bb6869b4cd7a91bb",
  "author" : "",
  "commit-time" : "2018-05-11T11:05:42+01:00[GMT+01:00]",
  "author-time" : "2018-05-11T10:43:49+01:00[GMT+01:00]",
  "msg" : "BAU: Update saml-libs version",
  "diffs" : [ {
    "change-type" : "modify",
    "file" : "build.gradle"
  } ],
  "history" : [ {
    "tags" : [ "build_15552" ],
    "timestamp" : "2018-05-11T11:05:42+01:00[GMT+01:00]",
    "id" : "bec9be9c34ef009e7fa72d93bb6869b4cd7a91bb"
  }, {
    "tags" : [ "build_15554" ],
    "timestamp" : "2018-05-16T11:17:54+01:00[GMT+01:00]",
    "id" : "ed0f88b5bc69777d60aebe40dc18f381aa9663fe"
  }, {
    "tags" : [ "build_15555", "release_717" ],
    "timestamp" : "2018-05-17T12:23:06+01:00[GMT+01:00]",
    "id" : "e5318c28bd26f5b7edfd5861fef213b058d35e54"
  } ]
},

korny07:05:50

From this, you can see that Rachelā€™s commit was written at 10:43, it was committed at 11:05, built on master at 11:05, but wasnā€™t released for another 6 days. ā€œcontinuous deliveryā€ šŸ™‚

dominicm07:05:53

@korny it is based on the same thing as cheshire, but has a focus on being faster. It has less magic.

korny07:05:17

I guess I can plug it in and see.

3Jane08:05:38

@korny interesting project! Would it be possible to see how long it takes for branches/PRs to be merged on average or over time?

korny08:05:08

It should be - depends a bit on how you tag things, git doesnā€™t really give you a lot of visibility into branches, especially if youā€™ve merged and the branch has gone away. In our case, we only tag builds on master so the gap between author-time and the first build tag is generally how long it sat on a branch. (I think the example I posted was directly on master)

korny08:05:49

The joy of coding in the open - all of this is on github: https://github.com/alphagov/verify-hub/commit/bec9be9c34ef009e7fa72d93bb6869b4cd7a91bb šŸ™‚

yogidevbear08:05:43

Hello šŸ‘‹

dominicm08:05:22

How's it going? šŸ™‚

dominicm08:05:35

What are others working on today?

yogidevbear08:05:10

I'm coding a session review section for agencies to judge their work in our awards industry platform

yogidevbear08:05:41

Alas, it's cfml coding (for now šŸ™‚)

dominicm08:05:20

Not bad. I had a great night sleep on my new pillows. My old ones were cheap, and should have been thrown away after 3 months. That 3 months was up around a year ago.

dominicm08:05:40

Agencies judge their own work? šŸ˜›

alexlynham09:05:52

I'm trying to build out a small stream data platform using the serverless framework

alexlynham09:05:57

ES6 sadly, not cljs

thomas09:05:52

and our users just complained about slow queries from the DB... so looking into that now.

dominicm09:05:49

I'm having a last stab at using a rule engine to generate cloudformation. I'm using naga https://github.com/threatgrid/naga this time round, which is datalog based. I've run about 5 mini-experiments of this now.

korny09:05:34

Iā€™m trying to clean up at $client as I have 4 days left, and a year of knowledge that probably no-one cares about šŸ™‚

guy09:05:18

Morning!

danm09:05:30

šŸ˜¢ Bike is not in a good state

danm09:05:50

Hit a pothole last night, which is the only thing I could think might have caused this

danielneal09:05:55

have you tried switching it off and on again

danm09:05:03

Handlebars felt 'spongy' this morning

danm09:05:31

So I took them off to have a look. There's a big fracture in the carbon fibre at the top of the fork, right where the handlebar stem meets the spacers below

dominicm09:05:14

> Handlebars felt 'spongy' this morning I immediately thought of moustache.

otfrom09:05:34

anyone here had a go with chronicle-map for an off heap kv store? https://github.com/OpenHFT/Chronicle-Map

otfrom09:05:50

(I saw Tim Baldridge mention it and leveldb)

mccraigmccraig09:05:09

@carr0t can cracks in CF be repaired, or is it new-frame time ?

šŸ—‘ļø 4
mccraigmccraig09:05:48

i'm getting dƩjƠ vu from chronicle-map @otfrom...

danm10:05:57

@mccraigmccraig I don't know about elsewhere in the frame, but where this is certainly can't be patched. If I did then it wouldn't fit where it needs to. It is at least just new fork time rather than new frame time

mccraigmccraig10:05:28

ah, carbon fork... i thought you meant the crack was in the head tube... still sounds expensive though

alexlynham10:05:22

what kind of bike are you on dan?

danm10:05:40

Orbea Avant M30S 2015

danm10:05:13

Except the frame has disc brake mounts as well so I've got discs on mine

danm10:05:44

And nice Mavic wheels

danm10:05:24

But yeah, the fracture is in the fork, at the base of where the handlebar stem bolts around the top of the fork. Whatever that bit is called

keeds11:05:33

Sounds like somebody has over torqued the stem bolts if it's a carbon steerer. Should only be ~5-6nm

danm11:05:36

Naah, I've got a torque spanner for that, as has the mechanic I use (he basically does all the club's bikes). It was fine right up until I hit a big pothole last night, then it was feeling wrong this morning

šŸ‘ 4
keeds16:05:24

That's rather scary/worrying/expensive and disappointing

alexlynham10:05:41

you seem to have a lot of bike issues

alexlynham10:05:47

do you ride a long way?

danm10:05:14

Not really. 7 miles each way daily, plus weekends out with the club when I can manage it. I do about 3000-3500 miles a year

danm10:05:28

Most of my issues I think can be pretty directly attributed to Manchester's crappy roads...

danm10:05:22

Also also that my bike is a racing bike built for speed that I ride in all weathers, not a chunky hybrid or whatever built for rougher terrain, to require less maintenance and such

mccraigmccraig10:05:19

i can confirm that there are lots of very excellent off-road cycling opportunities around manchester if you are at all tempted...

danm10:05:56

I do off road very occasionally, but I much prefer road biking. I just prefer it on good roads šŸ˜‰

mccraigmccraig11:05:18

understandable, although you should perhaps move to another country (with a different idea of the value of public goods) if you really want well-maintained roads... they are pretty crap around sussex too, so i imagine it's a nation-wide problem

mccraigmccraig11:05:56

i'm the other way around with off/road preferences - what do you prefer about roads ?

thomas11:05:31

@carr0t come to :flag-nl: you'll love the cycle ways here!

danm11:05:02

Hah, well my wife is semi-considering applying for a job at one of your (IIRC) Universities

thomas11:05:17

šŸ‘ sorted!

thomas11:05:33

now you have another good reason to do so!

danm11:05:53

@mccraigmccraig Basically, I like to go fast on the flat. I'm not great at hill climbing. I quite like downhill offroad stuff, but I'm rubbish at rockhopping up there in the first place.

danm11:05:04

I'm also a fan of minimum effort, especially on my commute. So I'll absolutely lather it quite happily to go fast in to work and feel good about it, but on an MTB I feel like half my effort is being 'wasted' when I'm not actively off road (chunky tyres with a lot of rolling resistance, bounding the suspension instead of pushing the pedals, etc)

danm11:05:53

So smooth flat tarmac and a carbon road bike with good slick tyres is ā¤ļø

korny11:05:43

One of the things I miss about MK was the redways - some were a bit grotty, but the good ones were great

rhinocratic12:05:50

Yes - I used to love the cycle to work via Woughton when I lived in that neck of the woods. But the lines of sight were not good on many routes - hence (partly) my broken acromioclavicular joint!

mccraigmccraig12:05:59

@carr0t i guess the principal difference then is that i don't mind climbing. i'm not spectacularly good at doing it quickly, but i can grind my way up most things and i even quite enjoy technical climbs. also i really like the off-road downhills. and i hate cycling alongside cars, probably because of the terrible average british driver's attitude to cyclists

12
mccraigmccraig12:05:03

oh, and i get those "absolute focus" moments where there is no room in my head for anything other than the 10m of terrain in front of me much more often on a mountain bike, and i really like them

danm12:05:26

Oh aye, I can go very slowly up most tarmac climbs. But anything off road I fail and have to put feet down more often than not

danm12:05:27

I'd never want to do a century on an MTB šŸ˜‰ But I've done one on a road bike once

danm12:05:51

With 6500ft of climbs, which was what killed me more than the distance tbh

mccraigmccraig12:05:12

this climb kills me - i've never managed to get up it yet without feet - https://www.strava.com/segments/2611281 . the steepest bit is at the top, and it's gravelly, and every time my front wheel wanders or my back wheel slips

danm13:05:10

Well, everywhere apart from the US and UK it's generally 100km, but we tend to refer to that as a 'metric century' and look down on it a bit šŸ˜‰ I've done a few of those, because it only works about about 65-75 miles or something

alexlynham13:05:41

I've done a few metric centuries but I don't think an imperial one

alexlynham13:05:07

Furthest I've done in a day was about 148km iirc

korny14:05:44

Is there a country with a nice small unit-of-distance? Iā€™ve done a chain-century ā€¦

otfrom15:05:29

the imperial centuries are harder. You sweat a lot in those stormtrooper suits lightsaber

stormtrooper 28
flefik15:05:01

Aren't you a little short to be a storm trooper? https://www.youtube.com/watch?v=DXn8-meSd8g