Tristan Brindle
tristanbrindle.com
Tristan Brindle
@tristanbrindle.com
Very fortunate to have the one and only Herb Sutter as a guest speaker at C++ London this evening
June 13, 2025 at 7:12 PM
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 head on over to Github and leave a comment if you so choose...

github.com/tcbrindle/fl...
The Road to Flux 1.0 · tcbrindle flux · Discussion #242
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 current design...
github.com
May 29, 2025 at 10:13 PM
I'm a bit of an AI skeptic, but I thought I'd give Copilot a go in VSCode since it's now free. After writing some documentation in Markdown format, I asked it to check for any spelling or grammar mistakes. It insisted, repeatedly, that I had misspelled words *that didn't even appear in the document*
May 29, 2025 at 3:52 PM
Reposted by Tristan Brindle
📢 Episode 225 is out! 📢 In this episode, @elbeno.com and I chat with @tristanbrindle.com about plans for @cppnorth.bsky.social, future Flux plans, the slow death of Twitter and more! adspthepodcast.com/2025/03/14/E...
March 14, 2025 at 7:05 AM
Reposted by Tristan Brindle
📢 Episode 224 is out! 📢 In this episode, @elbeno.com and I chat with @tristanbrindle.com about updates in Flux, internal iteration vs external iteration and more! adspthepodcast.com/2025/03/07/E...
March 7, 2025 at 4:13 PM
Reposted by Tristan Brindle
📢 Episode 223 is out! 📢 In this episode, @elbeno.com and I chat with @tristanbrindle.com about the recent C++ London meetup, the status of safety in C++ and the future of C++ and whether it is dying ☠️ adspthepodcast.com/2025/02/28/E...
February 28, 2025 at 1:13 PM
Reposted by Tristan Brindle
📢 Episode 222 is out! 📢 In this episode, @elbeno.com and I chat with @tristanbrindle.com about graph algorithms resources 📊, tropical semirings 🌴, Stepanov stories 📖, FM2GP 📓, EOP 📙, TV shows & movies 📺 and more! adspthepodcast.com/2025/02/21/E...
February 21, 2025 at 1:23 PM
An all-star lineup discussing contracts for #cplusplus at C++ London
January 20, 2025 at 7:05 PM
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!
December 18, 2024 at 1:00 PM
A frustratingly vague #AdventOfCode day 14, where we're asked to "find a picture of a Christmas tree" with no absolutely no further details. I solved it by the ingenious method of dumping 10,000 ASCII "pictures" to a text file and searching for "*********". I'm not proud!

At least part 1 was easy.
December 14, 2024 at 4:55 PM
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.

github.com/tcbrindle/ad...
December 13, 2024 at 1:06 PM
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!

github.com/tcbrindle/ad...
December 11, 2024 at 3:11 PM
A strange #AdventOfCode problem today where you had to solve part 2 in order to get part 1! I'm pretty happy with my solution to this one, runs in ~100µs on my laptop and has my first use of a C++23 recursive lambda.

Github: github.com/tcbrindle/ad...
December 10, 2024 at 4:29 PM
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/tcbrindle/ad...
github.com
December 6, 2024 at 5:29 PM
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 for the problem size
December 5, 2024 at 1:49 PM
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.

Code: github.com/tcbrindle/ad...
December 4, 2024 at 3:43 PM
I forgot to mention, the full code is on Github if you want to take a look: github.com/tcbrindle/ad...
December 3, 2024 at 7:41 PM
#AdventOfCode day 3 part 1 was super easy thanks to @hanicka.net's amazing CTRE library. And part 2 is pretty lovely using Flux, if I do say so myself...
December 3, 2024 at 3:27 PM
Day 2 of #adventofcode was a little trickier than day 1. There might be more efficient ways but this gets the job done...
December 3, 2024 at 11:22 AM
I'm a bit late to the #adventofcode party this year, but Day 1 was a nice gentle start
December 3, 2024 at 10:09 AM
Reposted by Tristan Brindle
We have published a new C++ on Sea 2024 video!

Practical Tips for Safer C++ - Tristan Brindle - C++ on Sea 2024

#coding #cplusplus #cpp #programming #safety
Practical Tips for Safer C++ - Tristan Brindle - C++ on Sea 2024
Watch our latest video on YouTube
www.youtube.com
November 25, 2024 at 4:01 PM
My @cppnorth.bsky.social 2024 talk "Practical Tips for Safer C++" is now on YouTube. Enjoy! youtu.be/lW_y0N9dZZA
Practical Tips for Safer C++ - Tristan Brindle
YouTube video by CppNorth
youtu.be
November 15, 2024 at 5:26 PM
I don't think Sean Baxter is on bsky yet, but if you're interested in seeing how #cplusplus can be as safe as #rust then check out this presentation about his work on memory safety in the Circle compiler: youtu.be/5Q1awoAwBgQ
Sean Baxter: Safe C++
Online presentation by Sean Baxter demonstrating memory safe C++ using his Circle compiler
youtu.be
May 9, 2024 at 5:16 PM
Finally joined Bluesky. All aboard, there's a bandwagon leaving town...
February 6, 2024 at 6:06 PM