I’m told I have a habit of turning simple tasks into unending sagas of complication. It’s a special gift. Electrifying my Brompton bike is the latest. I ordered an after-market conversion kit in the pre-Thanksgiving sales. I waited in all day for delivery only for it to go to a local shop. I went to fit it, only to find I was missing the right size allen key. Got the allen key only to find the Brompton-specific pedal sensor didn’t fit my bike. Fitted the universal pedal sensor, only to find I was missing the brushes that keep it centred. Cycled the 10km into work only to have it slip and wheeze on-and-off all the way. It didn’t work at all on the way back.
With a bit of (well, a lot of) gaffer tape, I’ve managed to get it centred and working and a new pedal sensor with the missing parts is allegedly on the way. Experience has taught me this is likely just the end of the beginning of the saga.
I went to Leeds last weekend to see a friend who I’ve known for years but haven’t spent much time hanging out with before. It was great: we chatted, putting the world to rights, played some music, had a good Indian meal. I’ve been quite isolated for the past few years and I worry that I’ll run out of things to say or run out of energy and need to go and hide. But that didn’t happen.
I’ve not spent any time in the North, so I’ve only known displaced Northerners who are always banging on about going back there. Leeds felt a bit like Cardiff, clearly a city and big enough to have its own identity. I’m not sure there’s anywhere in the South that doesn’t have some of its standing sucked out by the gravity hole of London.
I took the train. It was great. Would recommend.
One thing that’s been festering since my trip. My friend had a lovely Yamaha guitar. As soon as I picked it up, a long-quiet part of my brain lit up. This guitar was exactly the same dimensions, exactly the same weight and feel as the guitar I had when I was younger. A guitar that I worked shitty jobs to save up for. The guitar that I busked all over France with as a much-cooler nineteen-year-old. My eldest now has this guitar, rescued from my parents’ house a year or two ago where it had hidden for twenty years. I think I miss it.
Obviously, it made deep ruts in my brain.
I had my first annual assessment at work - Monday will mark three months since I started there. Of course, a non-trivial part of my brain was expecting me to be fired on the spot, but it was very positive. ‘A strong start’. I’ve been taking increasing ownership of a new project in the company and that’s put me in contact with people working in other teams and made the day-to-day a bit more social.
Touch wood, but it’s improving my mood and letting me use higher-level skills that have lurked dormant for a while.
I’ve continued to work on my batty renderer project, midlands. Trying to find a way to explain it and why I find it fascinating. This week I started playing with pushing alternate number representations through the rendering process - dual numbers, intervals, symbols.
My understanding of what I’m doing is settling: expressing the rendering computation in a way that makes the minimum commitment to how it will be run - even down to the type of objects it runs on - pays off in surprising ways. It’s more compact and comprehensible. Optimisations happen at the compiler level and are general and well-known. Strange capabilities like pixel-alignment, curve-fitting and region-culling pop out almost for free.
Lots of big words describing a thing that draws pictures slowly.
Inevitably, I ported the compiler from Typescript to Elm. Yeah, I know.
Grab-bag
- I now have a menuitem on my Mac that gives me a TV remote. This was pretty much a one-shot AI project - the bunch-of-numbers connected to my TV over
adb, figured out how to pair and reverse the remote protocol usingadbscreenshots, built the UI and iterated until it worked. I remain amazed by the way AI now enables things-I-could-do to become things-that-are-done. - Tom Stuart’s Automatic differentiation in Ruby. “The big idea is to calculate a function’s rate of change and its value all at once.” I saw Tom preview this talk ten years ago at a show-and-tell. I’m using dual numbers in my rendering engine to allow a kind of automatic optimisation. In essence rasterising goes from bezier control point numbers (through lots of maths) to pixel shades. It’s useful to ask how would this resultant pixel change if I tweaked the control point a bit? Dual numbers allow me to do that by just running the rendering computation forward with a different number representation. Cool.
- John Backus’s Turing Award lecture, Can Programming Be Liberated from the von Neumann Style? (PDF), found through Paul McJones’s history of Backus’s functional programming project. “Conventional programming languages are growing ever more enormous, but not stronger.”
- Steve Sanderson’s NDC Oslo talk, Build your own self-evolving dev tools. I liked some of the ideas in this talk but the main take-away was the idea of building your own, specific, artisanal, self-improving tools for your work. It reminded me of the practice and skill of making jigs in woodworking.
- I tried to watch Blade Runner 2099. But the first Vangelis chord sent me here and I couldn’t recover. Also, I think Vangelish should be a word and now it is.