
Tristan Brindle
@tristanbrindle
Followers
1K
Following
725
Media
119
Statuses
1K
Computer guy. Recovering mathematician. Likes C++, for some reason.
London, England
Joined March 2009
RT @BarryRevzin: C++26 is going to have Reflection!. I am very excited about that fact, so I wrote a new #cpp post with a very cool example….
0
48
0
RT @cpponsea: C++OnSea 2025 SESSION ANNOUNCEMENT: Faster, Safer, Better Ranges by @tristanbrindle. Register now at .
cpponsea.uk
0
1
0
I've just posted a long old update about my plans for the Flux library, focusing on ease of use, performance and a potential future standardisation effort. I'm keen to get feedback at this stage so please have a read and leave a comment if you so choose.
github.com
Flux has been around for a couple of years now, and the feedback I get is mostly that people seem to think it's pretty good. I think it's pretty good too! But I'm also aware that the cu...
1
3
16
RT @cpponsea: C++OnSea 2025 SESSION ANNOUNCEMENT: Faster, Safer, Better Ranges by @tristanbrindle. Register now at .
cpponsea.uk
0
1
0
“But if you want a solution now — use Flux”.
This new #cpp post started out when I was trying to investigate how to use token sequence injection to solve the internal iteration problem. This was an extremely mild-melting experience to implement — so hopefully it is just as fun to read! .
0
0
9
RT @adspthepodcast: 📢 Episode 225 is out! 📢 In this episode, @code_report and @ben_deane chat with @tristanbrindle about plans for @CppNort….
0
3
0
I had high hopes for #chessmasters because @DavidHowellGM is the best commentator in the business, but that was… really, really not great. Would it be too much to ask to actually show some chess?.
1
0
9
RT @adspthepodcast: 📢 Episode 224 is out! 📢 In this episode, @ben_deane and @code_report chat with @tristanbrindle about updates in Flux, i….
0
3
0
RT @adspthepodcast: 📢 Episode 223 is out! 📢 In this episode, @ben_deane and @code_report chat with @tristanbrindle about the recent @CppLon….
0
4
0
RT @adspthepodcast: 📢 Episode 222 is out! 📢 In this episode, @ben_deane and @code_report chat with @tristanbrindle about graph algorithms r….
0
8
0
I've found the last few days pretty tricky, so #AdventOfCode day 18 was a nice change of pace. Dijkstra's algorithm came up a couple of days ago so I had an implementation ready to go, and then std::partition_point() does all the hard work for part 2. I like this one!
1
1
7
Ah, #AdventOfCode day 13, in which I fail to spot that we're solving a system of two simultaneous equations despite allegedly holding multiple degrees in mathematics AND WRITING THE EQUATIONS DOWN IN FRONT OF ME 🤦♂️. I got there in the end though.
0
0
8
Exponential growth was the enemy in #AdventOfCode.today! . A simple vector was good enough for part 1, but more iterations in part 2 required a different approach. I went for storing the data in a (value, count) hash map, which worked very well. A nice puzzle!
0
1
11
No #AdventOfCode screenshots today as my code is super messy and not worth showing off. But it was very satisfying taking the initial 5 minute(!) runtime for part 2 down to ~70ms on my laptop.
github.com
Advent of Code 2024 solutions using C++23. Contribute to tcbrindle/advent_of_code_2024 development by creating an account on GitHub.
0
0
8
Day 5 of #AdventOfCode felt kinda like cheating once I realised that the rules give us an ordering that we can use as a comparator with sort()/is_sorted(). Using a hash set gives about a 10x speedup versus a sorted vector + binary search, but the latter is plenty fast enough
2
1
15
Day 4 of #AdventOfCode and we're solving word searches! . Part 1 had me scratching my head for a little while, because I didn't account for the fact that an 'X' can be the root of more than one 'XMAS'. Fortunately part 2 was less tricky.
3
1
19