int2str 🇺🇦
int2str.net
int2str 🇺🇦
@int2str.net
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...
github.com
December 2, 2025 at 4:14 AM
After 30+ years of daily driving manual transmission cars, we're now an all-electric family.
End of an era for sure. Bitter sweet....
August 13, 2025 at 3:47 PM
@forrestvalkai.bsky.social
Re: Center for Inquiry talk

Amen!?11!!1!!!
January 21, 2025 at 6:19 PM
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/...
WhiteWind
whtwnd.com
January 15, 2025 at 11:08 PM
"In all fairness, people only said that because it's true."
- @forrestvalkai.bsky.social , 2025

lol :)
January 15, 2025 at 7:54 PM
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...
January 10, 2025 at 7:22 PM
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..."
January 8, 2025 at 4:24 PM
Finally figured out how to make my "Utils::views::nm" play nicely with C++23 ranges/views.

This makes the final #AdventOfCode problem super nice in C++!

I need to do a proper write-up on both the AoC problem, as well as the difficulties of making a C++23 custom view....
January 7, 2025 at 4:42 AM
@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
January 5, 2025 at 2:52 PM
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.
The slowest way to the fastest*** Advent Of Code solution | int2str 🇺🇦
I got here just in time Advent Of Code 2024 is a wonderful collection of 25 little coding challenges, allowing hundrets of thousands of aspiring and established programmers to learn something new, or...
whtwnd.com
December 29, 2024 at 4:20 PM
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...
December 26, 2024 at 3:07 PM
I've completed "Code Chronicle" - Day 25 - Advent of Code 2024 #AdventOfCode

Man, if I could just turn my mn_const_view() into an actual view, this would actually have been a "one liner" in C++ :)

Thank you, AoC team and participants!
Merry x-mas and happy holidays!!!!!!
December 25, 2024 at 12:05 PM
"Crossed Wires" - Day 24 - Advent of Code 2024 #AdventOfCode

Ohhhhh nooooo AoC - I'm almost done writing a completely unnecessary, overkill JIT compiler for Day 17.... Don't make me write another one!!! :p
December 24, 2024 at 2:44 PM
I've completed "LAN Party" - Day 23 - Advent of Code 2024 #AdventOfCode

Maybe it's the embedded programmer in me, but I always gravitate towards bit-masks for problems like these. No recursion, no graph theory etc., just a bunch of bits...
December 23, 2024 at 9:11 PM
I've completed "Monkey Market" - Day 22 - Advent of Code 2024 #AdventOfCode

Day 22 was an absolute breeze and a blast, after 21 was a thorough kick in the pants for me... Both done now and officially caught up!

Always fun to use fold_left() weirdly :)

Hopefully, no more hard ones 'til x-mas :D
December 23, 2024 at 6:33 AM
Alright, that escalated quickly!
#AdventOfCode

After finishing Day 17 four days ago, I went back and actually implemented a JIT compiler that reads the program from file and emits x86_64 assembly :D

Works for the quine, sample and my input and is blazingly fast!
TOTAL overkill but fun learning!!
December 21, 2024 at 10:45 PM
I've completed "Race Condition" - Day 20 - Advent of Code 2024 #AdventOfCode

Hmmmm, this is now by far my longest running algorithm for AoC. N*M is never pretty, I guess. I am probably missing an obvious shortcut somewhere (pun intended ;) ) ...
December 20, 2024 at 7:33 PM
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.
December 20, 2024 at 3:16 AM
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...
December 18, 2024 at 8:27 AM
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...
December 18, 2024 at 6:31 AM
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...
December 17, 2024 at 9:25 PM
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...
December 16, 2024 at 3:33 AM
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...
December 14, 2024 at 10:05 PM
Went back and optimized "Day 7 - Bridge Repair" by writing my own concatenate operator. It's not that I am smarter than std::format, it's just that I have a much smaller problem space :D

All 13 days so far now execute in ~200ms, running sample AND final input calculations.
#AdventOfCode
December 14, 2024 at 2:11 PM
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...
December 13, 2024 at 9:18 PM