Profile avatar
tristanbrindle.com
38 posts 209 followers 92 following
Regular Contributor
Conversation Starter

Very fortunate to have the one and only Herb Sutter as a guest speaker at C++ London this evening

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...

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*

📢 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...

📢 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...

📢 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...

📢 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...

An all-star lineup discussing contracts for #cplusplus at C++ London

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!

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.

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...

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...

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...

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...

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

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...

I forgot to mention, the full code is on Github if you want to take a look: github.com/tcbrindle/ad...

#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...

Day 2 of #adventofcode was a little trickier than day 1. There might be more efficient ways but this gets the job done...

I'm a bit late to the #adventofcode party this year, but Day 1 was a nice gentle start

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

My @cppnorth.bsky.social 2024 talk "Practical Tips for Safer C++" is now on YouTube. Enjoy! youtu.be/lW_y0N9dZZA

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

Finally joined Bluesky. All aboard, there's a bandwagon leaving town...