int2str πΊπ¦
I've completed "Secret Entrance" - Day 1 - Advent of Code 2025 #AdventOfCode Last year, I tried to go hard on modern C++ and ranges/views. This year, Rust! This is a learning exercise for me, so I'm guessing my code is far from idiomatic.... !!! Spoilers !!! github.com/int2str/adve...
Bubble sort in C++23?!??? I made an "nm_pairs" view during #AdventOfCode, largely as a tool to better understand what it takes to make a custom view in #C++. github.com/int2str/nm_p...
Here's a full write-up on what I learned along the way: whtwnd.com/int2str.net/...
During #AdventOfCode 2024, I dove deeper into #C++ ranges and views. Here's some of what I learned: How to make custom C++ views: whtwnd.com/int2str.net/...
"In all fairness, people only said that because it's true." - @forrestvalkai.bsky.social , 2025 lol :)
Make your #AdventOfCode problem twice as fast with this one weird trick ... I was absolutely sure the compiler (clang-18) would do this for me, but alas, it didn't.... Went from ~40ms to ~20ms. Hat tip to @49pctber.bsky.social I peeked at their code and was like "nah, THAT can't be it..."
@daveeddy.com tiny tip of the day based on your (awesome) day 16 video: wc -l -> Get number of lines in a file (you did that) wc -L -> Gets longest line in the file ;) So, grid size for day 16 -> wc -lL #AdventOfCode
The slowest way to the fastest*** Advent Of Code solution whtwnd.com/int2str.net/... Here's my write up of my #AdventOfCode "solution" for Day 17.
121 commits 9598 lines of C++ 64 unit tests 3 SFML animations 1 x86_64 JIT compiler 25 awesome puzzles (well except you, day 21...) 50 stars :) Thank you, #AdventOfCode! I tried a whole bunch of new/different things and had a blast learning all December! Public repo: github.com/int2str/adve...
I've completed "Linen Layout" - Day 19 - Advent of Code 2024 #AdventOfCode Inspired by @swcreeperking.bsky.social , I added the ability to print timing info to my little unit test framework.
I've completed "RAM Run" - Day 18 - Advent of Code 2024 #AdventOfCode 18 days completed and all 37 test cases (full input data + samples) still run in a total of less than 300ms on my machine - nice! github.com/int2str/adve...
I've completed "Chronospatial Computer" - Day 17 - Advent of Code 2024 #AdventOfCode Mega fun today writing a cute little "virtual machine" :) Thought about implementing a JIT :D And a fun little "Quine detector" for part 2. Great puzzle today! I needed that after 16.. github.com/int2str/adve...
I've completed Part One of "Reindeer Maze" - Day 16 - Advent of Code 2024 #AdventOfCode This one kicked my butt a bit, not gonna lie. Spent some quality time on Wikipedia... But hey, at least I have a generic implementation of Dijkstra's algorithm in C++ now :) github.com/int2str/adve...
I've completed "Warehouse Woes" - Day 15 - Advent of Code 2024 #AdventOfCode Two more gold stars and one more chance to practice SFML :) github.com/int2str/adve...
I've completed "Restroom Redoubt" - Day 14 - Advent of Code 2024 #AdventOfCode Well, that was fun! Thanks to @mei-eisenbach.bsky.social , we found no less than two algorithms to hone in on the "Anomaly". Really curious what others have done for this! github.com/int2str/adve...
I've completed "Claw Contraption" - Day 13 - Advent of Code 2024 #AdventOfCode (No math spoilers) How dare they make me do math during the holidays - my brain hurts :p With my ever growing "Coordinate" class and more std::ranges, the code is nice and compact though. github.com/int2str/adve...
I've completed "Garden Groups" - Day 12 - Advent of Code 2024 #AdventOfCode Day 12 in the bag finally.... A bit late, but did a bunch of infrastructure work to make this less of a pain. github.com/int2str/adve... I heard #13 is math problem, so I might be screwed ...
I've completed "Plutonian Pebbles" - Day 11 - Advent of Code 2024 #AdventOfCode real 0m0.018s user 0m0.014s sys 0m0.003s No memoization, single threaded! Well, AFTER I first tried those things with the wrong algorithm :D Glad I figured it out! github.com/int2str/adve...
I've completed "Hoof It" - Day 10 - Advent of Code 2024 #AdventOfCode Yes, there's a bunch of glue code to make this work, but with the glue in place, solving problems like today's is a ton of fun! Much happier with today's solution! github.com/int2str/adve...
I've completed "Disk Fragmenter" - Day 9 - Advent of Code 2024 #AdventOfCode Don't like my solution today, but hey, it works.... Β―\_(γ)_/Β― github.com/int2str/adve...
I've completed "Resonant Collinearity" - Day 8 - Advent of Code 2024 #AdventOfCode Added a little prep work around Coordinates, as well as a bitset<> backed "CoordinateSet". This made day 8 simple! Now to make my "mn_const_view" an actual ranges::view... github.com/int2str/adve...
I've completed "Bridge Repair" - Day 7 - Advent of Code 2024 #AdventOfCode adventofcode.com/2024/day/7 VERY happy with today's solution, featuring variadic template expansion! github.com/int2str/adve...
I've completed "Guard Gallivant" - Day 6 - Advent of Code 2024 #AdventOfCode adventofcode.com/2024/day/6 Today's algorithm? Brute force! :) Busting out some SFML practice today, so keeping the algorithm simple. github.com/int2str/adve...
I've completed Part One of "Guard Gallivant" - Day 6 - Advent of Code 2024 #AdventOfCode adventofcode.com/2024/day/6 We're going graphical for this one :D I might regret this for Part Two....
I've completed "Print Queue" - Day 5 - Advent of Code 2024 #AdventOfCode adventofcode.com/2024/day/5 Ranges coming in clutch again... Though I don't like the multiple N*M loops. Not sure how to do those with ranges yet. If anyone knows, let me know plz github.com/int2str/adve...