January 14, 2026

Year in Review 2025

As I expect will become customary, my year in review post is coming out several weeks into the new year. This one is quite games-heavy because games is the media I consumed most of this year. I didn’t read all that many books or watch all that much tv or movies. Books One of my favourite books of 2024 was Adrian Tchaikovsky’s City of Last Chances, and my favourite book of 2025 was the sequel: House of Open Wounds. It’s a very good book and I am looking forward to reading the third in the series this year. Can any other book stop Days of Shattered Faith being my favourite book of 2026? Read more

July 5, 2025

Advent of Slowed Update

I finished Parts 1 and 2 of Day 15, and I’ve managed parts 1 of Days 16 and 17. For each of the unfinished part 2s, I know roughly what I solution should involve, but I’m struggling to get there. The goal of this exercise has always been to learn more about rust and to get some practice using it. I have definitely done that: day 15, in particular, involved writing two impls of a trait I created, one for each part. Thinking about what should be in the impls for the structs, and what should be in the trait, as well as what I can provide default implementations for, was a really interesting exercise. Read more

June 5, 2025

Stopped Clocks

The proverb “Even a stopped clock is right twice a day” is inaccurate in a number of ways. First, a stopped digital clock is right only once a day if it is in 24h mode. If the stopped clock is in a jurisdiction that observes daylight savings time, it might be that when the clocks go back, the clock is right three times on that day; and when the clocks go forwards, it might only be right once on that day. (Or twice and zero times respectively if it’s a 24h clock). Read more

May 8, 2025

Advent of Slowed Days 13 and 14

My deadline for finishing Day 14 of last year’s advent of code is the 20th, but I have, in fact, already finished it. I am not just scraping by now, I am smashing these deadlines. This probably has more to do with nobody in my household being poorly this week rather than any other factors. In fact, between finishing Day 13 and starting Day 14, I even had some time to go back and look at making some efficiency improvements to some slow tests. Read more

April 25, 2025

Advent of Slowed Days 11, 12, and some refactoring

So we’re nearing the end of April and I’m still (more or less) on schedule given the targets I set myself at the start of the year. In fact, I finished Day 11 before the deadline and so I took a little time to revisit Day 5 Part 2, and a few other bits of refactoring. Day 11 This was a pretty easy puzzle, and one that took the classic AoC form of “Part 1: do this for n; Part 2: OK now do it for a bigger n”. The obvious solution for Part 1 takes way way way too long to run for Part 2. Essentially each step involves doing something to each element of a list. That something returns 0, 1 or 2 new items for the next iteration. So the size of the list can double each iteration if you put back in 2 elements each time. Doing this for 25 iterations is kind of manageable, you get a list of up 33 million-ish items for each starting item. (It’s actually less because you don’t always put 2 elements in the next list, but as a worst case estimate, this is ok). Part 2 is to do the same thing for 75 iterations which puts you up in the sextillions of items. The trick for Part 2 was to realise that order doesn’t matter, and all we ultimately care about is the final total number of items. So if there are duplicate numbers in your list, you can just do the calculation once and keep track of the number of duplicates. That means, instead of keeping track of a big list of items, you keep track of a smaller list of (item, repeats) pairs. My implementation meant re-sorting and re-grouping the list every iteration, but I’m sure there’s an even more efficient way of doing it. Read more

© Seamus Bradley 2021–6

Powered by Hugo & Kiss.