I like it, it's simple and to the point. I've learned that one of the most helpful things to do when solving these puzzles is to not make it more complicated than it needs to be, and you certainly succeeded better at that today than I did.
Gobbel2000
Rust
I've been using Regexes for every day so far, this time it helped in finding numbers along with their start and end position in a line. For the second part I mostly went with the approach of part 1 which was to look at all numbers and then figure out if it has a part symbol around it. Only in part 2 I saved all numbers next to a gear *
in a hash table that maps each gear position to a list of adjacent numbers. Then in the end I can just look at all gears with exactly 2 numbers attached.
Also it has to be said, multiplying two numbers is the exact opposite of getting their ratio!
It's not a good sign that this meme appeared on day 1 already...
That's very close to how I solved part 2 as well. Using the greedy wildcard in the regex to find the last number is quite elegant.
That was quite the rabbit hole, and know I know that my CPU has a bug. Great.
I want to make a joke about how terrible the name is with just throwing in an 'a', but I don't think it would be right since I'm using Fira Code.
If you're on Arch, why don't you just use the discord package from extra repositories and have discord simply update with pacman?
I still don't see how having a flat subvolume layout would make that more problematic. You can still (even better in my opinion) choose what subvolumes to automatically snapshot, which to include in backups etc.
Yes, that seems correct to me. I would also say that the flat layout is preferable because it makes dealing with snapshots later easier. When snapshotting the rootfs subvolume you won't have to keep track of where exactly the home subvolume is located and it is easier to boot into a different rootfs snapshot.
What do you know? How do you know!?