Just launched version 25.4 of my adventofcode PyPI package! 🚀 25.4 adds a `adventofcode run` command that removes the ugly boilerplate that you had to have in your puzzle files until now! Before: After:
Day 2 of #adventofcode kinda felt easier than day 1 or was it just me? I got to the solution fairly quickly but it was a bit slow. I then spent the next hour optimizing it and managed to make part 1 200x faster and part 2 500x faster 🎉 image
Day 1 of #adventofcode felt a bit harder than previous day 1 puzzles. It took me way longer to figure out part 2 than I care to admit, but I'm blaming this on my sleepy brain 😅 My code took 1.1ms for both parts without any perf optimizations 🎉 Eleven more to go! image
6 hours until the first advent of code puzzle unlocks. Who's going to participate this year? 🎄 image
RE: So this is the strategy AGI came up with for generating investment returns? 😆 View quoted note →
I've just published a new version of my adventofcode PyPI package, just in time for Advent of Code that starts in 36 hours! 🎉 I've added a command line tool that helps you scaffold all the files for puzzle days because I got annoyed by copy pasting the same file each time!
Carlton's proposal to move Django to an annual release cycle makes all the sense. The x.2 LTS releases always felt wrong to me since it has always been much easier and safer to upgrade each version rather than doing the LTS to LTS leap in one go.
us-east-1 is down, happy Monday! image
I had a memory issue with Django's bulk_update queryset method. The TLDR version is that bulk_update prepares all the update statements in advance (even when batch_size is set) which can use more memory than expected. Details and a solution in the blog: