Google talk at REBASE'26: Agentic Coding is not going to save C++
So the REBASE'26 conference happened recently, and besides the whole thing of what Carbon has achieved or never will, there are talks like this one from Google folks, regarding what they are doing with their C++.
The talk is all about the recent ongoing migration discussed on Google security blog, and other related efforts.
https://www.youtube.com/watch?v=Ob0CMX8s55s
https://redd.it/1y0bqfb
@r_cpp
So the REBASE'26 conference happened recently, and besides the whole thing of what Carbon has achieved or never will, there are talks like this one from Google folks, regarding what they are doing with their C++.
The talk is all about the recent ongoing migration discussed on Google security blog, and other related efforts.
https://www.youtube.com/watch?v=Ob0CMX8s55s
https://redd.it/1y0bqfb
@r_cpp
Google
Blog: Scaling Memory Safety: AI-Assisted Rewrites of C/C++ Dependencies to Rust
This blog post describes how we used AI to help us rewrite a C library (giflib) to Rust to mitigate memory safety vulnerabilities.
journey begins
freshman cs student
new to coding in general
need advices and when should i think iam good in c++ and pursue another languages
https://redd.it/1y0att5
@r_cpp
freshman cs student
new to coding in general
need advices and when should i think iam good in c++ and pursue another languages
https://redd.it/1y0att5
@r_cpp
Reddit
From the cpp community on Reddit
Explore this post and more from the cpp community
FixedString - A fully functional C++ string implementation that exists only on the stack, without dynamic memory allocation
https://gitlab.com/Monsterovich/fixedstring
https://redd.it/1y0p2v0
@r_cpp
https://gitlab.com/Monsterovich/fixedstring
https://redd.it/1y0p2v0
@r_cpp
GitLab
Nikolay Borodin / FixedString · GitLab
C++26 is done (again)! — Trip report: November 2026 ISO C++ standards meeting (Búzios, Brazil)
https://herbsutter.com/2026/11/21/c26-is-done-again-trip-report-november-2026-iso-c-standards-meeting-buzios-brazil/?utm_source=swedencpp
https://redd.it/1y1y10z
@r_cpp
https://herbsutter.com/2026/11/21/c26-is-done-again-trip-report-november-2026-iso-c-standards-meeting-buzios-brazil/?utm_source=swedencpp
https://redd.it/1y1y10z
@r_cpp
Sutter’s Mill
C++26 is done (again)! — Trip report: November 2026 ISO C++ standards meeting (Búzios, Brazil)
tl;dr: A few highlights C++26 technical work, originally completed in March, was reopened and is now recompleted: The anticipated plan is to reissue the updated C++26 document for a second approval…
How can we get MSVC to actually test their compiler?
It seems like every update to MSVC over the past year has had some sort of massive basic compiler regression, that the team refuses to actually hotfix because regressions are not actually considered problematic. What can we do to change this and actually make regressions fixable without waiting 6+ months?
https://redd.it/1y2w1j5
@r_cpp
It seems like every update to MSVC over the past year has had some sort of massive basic compiler regression, that the team refuses to actually hotfix because regressions are not actually considered problematic. What can we do to change this and actually make regressions fixable without waiting 6+ months?
https://redd.it/1y2w1j5
@r_cpp
Reddit
From the cpp community on Reddit
Explore this post and more from the cpp community
std::contracts::controls::enforced
From P4451R2,
\#include <contracts>
int f(int x)
pre<std::contracts::controls::enforced>(x > 0)
post<std::contracts::controls::enforced>(r : r > 0)
{
contract_assert<std::contracts::controls::enforced>(x > 0);
return x;
}
Long, 3 levels deep namespace? And
\> Because the label is found by ordinary name lookup, a namespace alias or a using-directive works
as well:
namespace scl = std::contracts::controls;
Same issue as with C++11 UDL: inconvinient to use, especially in headers, since include + alias is required - aliases will not make it better, in my opinion.
That makes me sad. Am I the only one?
https://redd.it/1y31isw
@r_cpp
From P4451R2,
\#include <contracts>
int f(int x)
pre<std::contracts::controls::enforced>(x > 0)
post<std::contracts::controls::enforced>(r : r > 0)
{
contract_assert<std::contracts::controls::enforced>(x > 0);
return x;
}
Long, 3 levels deep namespace? And
\> Because the label is found by ordinary name lookup, a namespace alias or a using-directive works
as well:
namespace scl = std::contracts::controls;
Same issue as with C++11 UDL: inconvinient to use, especially in headers, since include + alias is required - aliases will not make it better, in my opinion.
That makes me sad. Am I the only one?
https://redd.it/1y31isw
@r_cpp
Why is there no proper build system (CMake exists but...yk) like cargo in C++?
Meson and Bazel exist but I have not seen widespread adoptability.
https://redd.it/1y3bq9k
@r_cpp
Meson and Bazel exist but I have not seen widespread adoptability.
https://redd.it/1y3bq9k
@r_cpp
Reddit
From the cpp community on Reddit
Explore this post and more from the cpp community
MSVC automatic import std::vector bug
https://developercommunity.visualstudio.com/t/MSVC-C20-modules-expose-std::vector-on/11135469?sort=newest&scope=follow
https://redd.it/1y3db4j
@r_cpp
https://developercommunity.visualstudio.com/t/MSVC-C20-modules-expose-std::vector-on/11135469?sort=newest&scope=follow
https://redd.it/1y3db4j
@r_cpp
Visualstudio
MSVC C++20 modules expose std::vector only after auto type deduction
\[severity:Other\]
C++20 module reachiblity type automated became visibility types. MSVC C++2022 17.14.38
```
//math.ixx
module;
#include <vector...
C++20 module reachiblity type automated became visibility types. MSVC C++2022 17.14.38
```
//math.ixx
module;
#include <vector...
Boost.Graph 1.93: pass stateful visitors with std::ref
Dear Boost.Graph community,
Starting with Boost 1.93, you will be able to pass stateful visitors with
Counter vis;
boost::depthfirstsearch(g, boost::visitor(std::ref(vis)));
// vis.count is now up to date
For context, BGL visitors are small structures with event methods that are fired at specific points of an algorithm (e.g. the DFS algorithm calling
Historically, algorithms implementation (circa 2000) predate
From 1.93, algorithms will be able to unwrap visitors when the caller passed a
Four exceptions to this: we had 4 planar algorithms that surprisingly took visitors by reference, against this convention, and needed to be deprecated to harmonize their signatures:
\-
\-
\-
\-
In 1.93, your calls still compile and behave the same, but they now emit a deprecation warning, and the old overloads are planned for removal in Boost 1.95. The replacements live in
boost::makeconnected(g, vm, vis); // still works, deprecated
boost::graph::makeconnected(g, vm, std::ref(vis)); // replacement
All details, explanations and rational live in the dedicated Github Discussion: https://github.com/boostorg/graph/discussions/700
See you there ! 🥳
https://redd.it/1y3ggnv
@r_cpp
Dear Boost.Graph community,
Starting with Boost 1.93, you will be able to pass stateful visitors with
std::ref :Counter vis;
boost::depthfirstsearch(g, boost::visitor(std::ref(vis)));
// vis.count is now up to date
For context, BGL visitors are small structures with event methods that are fired at specific points of an algorithm (e.g. the DFS algorithm calling
vis.start_vertex(vertex, graph) at a certain point). Most visitors are meant to be pure observers and their events return void so they can't influence the execution flow of their algorithm. If a visitor only prints data, stateless is fine. But when wanting an answer out of a traversal (a yes/no, timestamps, paths...), it has to accumulate state.Historically, algorithms implementation (circa 2000) predate
std::ref (C++11). Any state stored in the visitor was therefore updated on a copy and lost. The recommended approach was to capture state through pointer or reference. But a reference member contradicts Core Guideline C.12 and triggers clang-tidy's cppcoreguidelines-avoid-const-or-ref-data-members, as reported by a redditor: https://www.reddit.com/r/cpp\_questions/comments/1oj6mi6/boost\_graph\_library\_example\_seems\_to\_run\_afoul\_of/From 1.93, algorithms will be able to unwrap visitors when the caller passed a
reference_wrapper. It's an extension, you don't need to modify your existing code if it works. But if you want to silence the clang-tidy once for all, you now can 😄Four exceptions to this: we had 4 planar algorithms that surprisingly took visitors by reference, against this convention, and needed to be deprecated to harmonize their signatures:
\-
planar_face_traversal, \-
make_connected, \-
make_biconnected_planar \-
make_maximal_planarIn 1.93, your calls still compile and behave the same, but they now emit a deprecation warning, and the old overloads are planned for removal in Boost 1.95. The replacements live in
boost::graph namespace (we are harmonizing namespaces progressively too)boost::makeconnected(g, vm, vis); // still works, deprecated
boost::graph::makeconnected(g, vm, std::ref(vis)); // replacement
All details, explanations and rational live in the dedicated Github Discussion: https://github.com/boostorg/graph/discussions/700
See you there ! 🥳
https://redd.it/1y3ggnv
@r_cpp
Reddit
From the cpp_questions community on Reddit
Explore this post and more from the cpp_questions community
New C++ Conference Videos Released This Month - November 2026 (Updated To Include Videos Released 2026-11-16 - 2026-11-22)
C++Now
2026-11-16 - 2026-11-22
Lightning Talk: Organic Evolution of Reflection in Apache Thrift - Shai Szulanski - [https://youtu.be/qlDhEPgE94g](https://youtu.be/qlDhEPgE94g)
Lightning Talk: The Unanticipated Allocator - Jeff Trull - https://youtu.be/QdD4-cPlG5c
Lightning Talk: Generative C++ - Alon Wolf - [https://youtu.be/QsVTEYVO230](https://youtu.be/QsVTEYVO230)
2026-11-09 - 2026-11-15
Lightning Talk: Bool - Implicitly Dangerous - Jeff Garland - https://youtu.be/dlFSJbtY49I
Lightning Talk: Mixed-Mode Rings: io\_uring\_context for Kernel 7.x - Robert Leahy - [https://youtu.be/Be1RA\_ypYrU](https://youtu.be/Be1RA_ypYrU)
Lightning Talk: Our Most Treacherous Adversary - James McNellis - https://youtu.be/degCN1CSd5w
2026-11-02 - 2026-11-08
Lightning Talk: The Hidden Superpower of Modern CPUs - Why ILP Can Make “More Work” Run Faster - Sampad Acharya - [https://youtu.be/WZl7tMBBn3U](https://youtu.be/WZl7tMBBn3U)
Lightning Talk: When Weird Things Happen - Ruslan Arutyunyan - https://youtu.be/VEIJkIEKEQ4
Lightning Talk: A Metaprogramming Checklist - Ben Deane - [https://youtu.be/6n\_mOFP\_kBA](https://youtu.be/6n_mOFP_kBA)
2026-10-26 - 2026-11-01
AI is Forcing us to Obey Scott Meyers - Jody Hagins - https://youtu.be/CiaZq4kCH08
C++ Libraries - The Road Ahead - Jeffrey Garland - [https://youtu.be/bNipVnNaDdk](https://youtu.be/bNipVnNaDdk)
Lightning Talk: ?: - Jonathan Müller - https://youtu.be/TLj6NVx5xvk
ACCU
2026-11-16 - 2026-11-22
Constraining Templates Before and After C++20 - The What, the How, and the Why - [https://youtu.be/2XvLjFQFx9M](https://youtu.be/2XvLjFQFx9M)
How to Properly Implement Code Quality Gates in your Development Process - Paul Jansen - https://youtu.be/udHksfcEaoQ
The Performance Mindset - Mathieu Ropert - [https://youtu.be/vW-xgQM0iwk](https://youtu.be/vW-xgQM0iwk)
2026-11-09 - 2026-11-15
C++26 Uncovered - Everything You Need to Know About the New Standard - Inbal Levi - https://youtu.be/1r5Hl1EoaYo
C++ Templates - Two-Phase Lookup - Amir Kirsh - [https://youtu.be/rQgj9agTqok](https://youtu.be/rQgj9agTqok)
Fearless Concurrency in C++ - Tristan Brindle - https://youtu.be/-FP6tLlCxWE
2026-11-02 - 2026-11-08
Implementing C++ Standard Library - Design and Optimisations in Libc++ - Hui Xie - [https://youtu.be/9efvPYY7CuY](https://youtu.be/9efvPYY7CuY)
How Invariant are Invariants? - David Olsen - https://youtu.be/TLk4mm4u02A
The Biggest Misconception of Computer Science - Alex Dathskovsky - [https://youtu.be/EwgkN3an1Gs](https://youtu.be/EwgkN3an1Gs)
2026-10-26 - 2026-11-01
Creating Composable Callables in Contemporary C++ - Using Senders / Receivers as a Frame Graph - Björn Fahller - https://youtu.be/A4mMO5xeQDA
Incrementally Migrating C++ to a Memory Safe Language with Swift - Tim Condon - [https://youtu.be/LMQ21X6\_2FQ](https://youtu.be/LMQ21X6_2FQ)
CallMeMaybe - Building Modern Runtime Reflection via C++26 - Laurie Kirk - https://youtu.be/cA0F3wRtZIU
CppCon
2026-11-16 - 2026-11-22
From Firmware to Screen: Real-Time Control, Simulation, and Visualization in C++23 With CUDA and Unreal Engine - Kevin Gomez - [https://youtu.be/CUQbzKDPp\_I](https://youtu.be/CUQbzKDPp_I)
Back to Basics: Move Semantics - Ruslan Arutyunyan - https://youtu.be/3D4SY5vRZYk
Same Bits Without Losing MIPS: Reproducible Numerics at Full Hardware Speed - Andrew Drakeford - [https://youtu.be/-5yzXMyyV98](https://youtu.be/-5yzXMyyV98)
2026-11-09 - 2026-11-15
C++ in the Age of AI: How Visual Studio Is Evolving -
C++Now
2026-11-16 - 2026-11-22
Lightning Talk: Organic Evolution of Reflection in Apache Thrift - Shai Szulanski - [https://youtu.be/qlDhEPgE94g](https://youtu.be/qlDhEPgE94g)
Lightning Talk: The Unanticipated Allocator - Jeff Trull - https://youtu.be/QdD4-cPlG5c
Lightning Talk: Generative C++ - Alon Wolf - [https://youtu.be/QsVTEYVO230](https://youtu.be/QsVTEYVO230)
2026-11-09 - 2026-11-15
Lightning Talk: Bool - Implicitly Dangerous - Jeff Garland - https://youtu.be/dlFSJbtY49I
Lightning Talk: Mixed-Mode Rings: io\_uring\_context for Kernel 7.x - Robert Leahy - [https://youtu.be/Be1RA\_ypYrU](https://youtu.be/Be1RA_ypYrU)
Lightning Talk: Our Most Treacherous Adversary - James McNellis - https://youtu.be/degCN1CSd5w
2026-11-02 - 2026-11-08
Lightning Talk: The Hidden Superpower of Modern CPUs - Why ILP Can Make “More Work” Run Faster - Sampad Acharya - [https://youtu.be/WZl7tMBBn3U](https://youtu.be/WZl7tMBBn3U)
Lightning Talk: When Weird Things Happen - Ruslan Arutyunyan - https://youtu.be/VEIJkIEKEQ4
Lightning Talk: A Metaprogramming Checklist - Ben Deane - [https://youtu.be/6n\_mOFP\_kBA](https://youtu.be/6n_mOFP_kBA)
2026-10-26 - 2026-11-01
AI is Forcing us to Obey Scott Meyers - Jody Hagins - https://youtu.be/CiaZq4kCH08
C++ Libraries - The Road Ahead - Jeffrey Garland - [https://youtu.be/bNipVnNaDdk](https://youtu.be/bNipVnNaDdk)
Lightning Talk: ?: - Jonathan Müller - https://youtu.be/TLj6NVx5xvk
ACCU
2026-11-16 - 2026-11-22
Constraining Templates Before and After C++20 - The What, the How, and the Why - [https://youtu.be/2XvLjFQFx9M](https://youtu.be/2XvLjFQFx9M)
How to Properly Implement Code Quality Gates in your Development Process - Paul Jansen - https://youtu.be/udHksfcEaoQ
The Performance Mindset - Mathieu Ropert - [https://youtu.be/vW-xgQM0iwk](https://youtu.be/vW-xgQM0iwk)
2026-11-09 - 2026-11-15
C++26 Uncovered - Everything You Need to Know About the New Standard - Inbal Levi - https://youtu.be/1r5Hl1EoaYo
C++ Templates - Two-Phase Lookup - Amir Kirsh - [https://youtu.be/rQgj9agTqok](https://youtu.be/rQgj9agTqok)
Fearless Concurrency in C++ - Tristan Brindle - https://youtu.be/-FP6tLlCxWE
2026-11-02 - 2026-11-08
Implementing C++ Standard Library - Design and Optimisations in Libc++ - Hui Xie - [https://youtu.be/9efvPYY7CuY](https://youtu.be/9efvPYY7CuY)
How Invariant are Invariants? - David Olsen - https://youtu.be/TLk4mm4u02A
The Biggest Misconception of Computer Science - Alex Dathskovsky - [https://youtu.be/EwgkN3an1Gs](https://youtu.be/EwgkN3an1Gs)
2026-10-26 - 2026-11-01
Creating Composable Callables in Contemporary C++ - Using Senders / Receivers as a Frame Graph - Björn Fahller - https://youtu.be/A4mMO5xeQDA
Incrementally Migrating C++ to a Memory Safe Language with Swift - Tim Condon - [https://youtu.be/LMQ21X6\_2FQ](https://youtu.be/LMQ21X6_2FQ)
CallMeMaybe - Building Modern Runtime Reflection via C++26 - Laurie Kirk - https://youtu.be/cA0F3wRtZIU
CppCon
2026-11-16 - 2026-11-22
From Firmware to Screen: Real-Time Control, Simulation, and Visualization in C++23 With CUDA and Unreal Engine - Kevin Gomez - [https://youtu.be/CUQbzKDPp\_I](https://youtu.be/CUQbzKDPp_I)
Back to Basics: Move Semantics - Ruslan Arutyunyan - https://youtu.be/3D4SY5vRZYk
Same Bits Without Losing MIPS: Reproducible Numerics at Full Hardware Speed - Andrew Drakeford - [https://youtu.be/-5yzXMyyV98](https://youtu.be/-5yzXMyyV98)
2026-11-09 - 2026-11-15
C++ in the Age of AI: How Visual Studio Is Evolving -
YouTube
Lightning Talk: Organic Evolution of Reflection in Apache Thrift - Shai Szulanski - C++Now 2026
https://www.cppnow.org
---
Lightning Talk: Organic Evolution of Reflection in Apache Thrift - Shai Szulanski - C++Now 2026
---
Presents some patterns produced by our users that hint towards language level reflection and how we generalized them, as a sort…
---
Lightning Talk: Organic Evolution of Reflection in Apache Thrift - Shai Szulanski - C++Now 2026
---
Presents some patterns produced by our users that hint towards language level reflection and how we generalized them, as a sort…
Augustin Popa & David Li - https://youtu.be/PM2tymEL2aQ
C++26: A Curated Tour of What's New - Marc Gregoire - [https://youtu.be/ak1zrDo2y-U](https://youtu.be/ak1zrDo2y-U)
Optimizing Bishop, Rook, and Queen Move Generation in a Chess Engine - Aryan Naraghi - https://youtu.be/i4XWhpoKPDs
ADC
2026-11-16 - 2026-11-22
Introducing Focusrite Group Japan - Takeshi Nishimoto & Kengo Shimizu - [https://youtu.be/TvuqBL5Q3js](https://youtu.be/TvuqBL5Q3js)
Write 0 Lines of C++ / C++を1行も書かずに - Sota Ichikawa & hotwatermorning - https://youtu.be/EUFulnf7-RI
Real-Time AI Audio Processing at Scale - Building Cloud-Native Audio Applications - Vishal Alhat - [https://youtu.be/Tl6ZXlfIWRE](https://youtu.be/Tl6ZXlfIWRE)
2026-11-09 - 2026-11-15
Protect, License, Distribute with PACE Fusion Security - Ryan Wardell, Brett g Porter & Ted Barram - https://youtu.be/-JaMVZXYlBE
The Dawn of Electronic Musical Instruments in Japan - Fumio Mieda - [https://youtu.be/sNJrlMXd9dg](https://youtu.be/sNJrlMXd9dg)
Talk to Your Synth - Sound Design as a Conversation - Aurnik - https://youtu.be/LnR0Zj6NB\_w
2026-11-02 - 2026-11-08
Are You Shipping Your Source Code? - Ryan Wardell - [https://youtu.be/ToPPQ6uTUJ0](https://youtu.be/ToPPQ6uTUJ0)
Porting a Native C++ Synth Engine to the Browser: Lessons from Katokatone - Kazuhito Inoue - https://youtu.be/KmX7mfkvDHg
Generative Instruments with Large Piano Models - Tomek Roszczynialski - [https://youtu.be/EO-hGj8\_BUY](https://youtu.be/EO-hGj8_BUY)
2026-10-26 - 2026-11-01
TX/RX Part 2 - AI Audio on the Raspberry Pi - Kieran Coulter - https://youtu.be/QSiyLDHoBpo
JUCE in DJ Products - Current Status and Future Prospects - Masamichi Tomii, Akihito Yamada & Tetsuro Abe - [https://youtu.be/VElORkcpE78](https://youtu.be/VElORkcpE78)
Generative Instruments with Large Piano Models - Tomek Roszczynialski - https://youtu.be/EO-hGj8\_BUY
https://redd.it/1y3mey7
@r_cpp
C++26: A Curated Tour of What's New - Marc Gregoire - [https://youtu.be/ak1zrDo2y-U](https://youtu.be/ak1zrDo2y-U)
Optimizing Bishop, Rook, and Queen Move Generation in a Chess Engine - Aryan Naraghi - https://youtu.be/i4XWhpoKPDs
ADC
2026-11-16 - 2026-11-22
Introducing Focusrite Group Japan - Takeshi Nishimoto & Kengo Shimizu - [https://youtu.be/TvuqBL5Q3js](https://youtu.be/TvuqBL5Q3js)
Write 0 Lines of C++ / C++を1行も書かずに - Sota Ichikawa & hotwatermorning - https://youtu.be/EUFulnf7-RI
Real-Time AI Audio Processing at Scale - Building Cloud-Native Audio Applications - Vishal Alhat - [https://youtu.be/Tl6ZXlfIWRE](https://youtu.be/Tl6ZXlfIWRE)
2026-11-09 - 2026-11-15
Protect, License, Distribute with PACE Fusion Security - Ryan Wardell, Brett g Porter & Ted Barram - https://youtu.be/-JaMVZXYlBE
The Dawn of Electronic Musical Instruments in Japan - Fumio Mieda - [https://youtu.be/sNJrlMXd9dg](https://youtu.be/sNJrlMXd9dg)
Talk to Your Synth - Sound Design as a Conversation - Aurnik - https://youtu.be/LnR0Zj6NB\_w
2026-11-02 - 2026-11-08
Are You Shipping Your Source Code? - Ryan Wardell - [https://youtu.be/ToPPQ6uTUJ0](https://youtu.be/ToPPQ6uTUJ0)
Porting a Native C++ Synth Engine to the Browser: Lessons from Katokatone - Kazuhito Inoue - https://youtu.be/KmX7mfkvDHg
Generative Instruments with Large Piano Models - Tomek Roszczynialski - [https://youtu.be/EO-hGj8\_BUY](https://youtu.be/EO-hGj8_BUY)
2026-10-26 - 2026-11-01
TX/RX Part 2 - AI Audio on the Raspberry Pi - Kieran Coulter - https://youtu.be/QSiyLDHoBpo
JUCE in DJ Products - Current Status and Future Prospects - Masamichi Tomii, Akihito Yamada & Tetsuro Abe - [https://youtu.be/VElORkcpE78](https://youtu.be/VElORkcpE78)
Generative Instruments with Large Piano Models - Tomek Roszczynialski - https://youtu.be/EO-hGj8\_BUY
https://redd.it/1y3mey7
@r_cpp
Prediction c++26
Since there's no kalshi market for c++ standards, put your predictions below for the upcoming second dis.
https://redd.it/1y3svqv
@r_cpp
Since there's no kalshi market for c++ standards, put your predictions below for the upcoming second dis.
https://redd.it/1y3svqv
@r_cpp
Reddit
From the cpp community on Reddit
Explore this post and more from the cpp community
Extract
Extract the files from the following period: . Active duty. Send the files back to me. Necessary. Preferably a woman extracting the files in C++ like this. Ask this.
https://redd.it/1y4181i
@r_cpp
Extract the files from the following period: . Active duty. Send the files back to me. Necessary. Preferably a woman extracting the files in C++ like this. Ask this.
https://redd.it/1y4181i
@r_cpp
Reddit
From the cpp community on Reddit
Explore this post and more from the cpp community
4 filesystem performance traps in the standard library · Mathieu Ropert
https://mropert.github.io/2026/11/24/filesystem_traps/
https://redd.it/1y4aetk
@r_cpp
https://mropert.github.io/2026/11/24/filesystem_traps/
https://redd.it/1y4aetk
@r_cpp
mropert.github.io
4 filesystem performance traps in the standard library · Mathieu Ropert
C++ might claim to be the language of performance, but when it comes to file operations its standard library is a bit of a minefield. And it’s not even (entirely) Windows’ fault.
Decoding base64 email attachments: a speed ranking of programming languages
https://lemire.me/blog/2026/11/20/decoding-base64-email-attachments/
https://redd.it/1y4dl62
@r_cpp
https://lemire.me/blog/2026/11/20/decoding-base64-email-attachments/
https://redd.it/1y4dl62
@r_cpp
Daniel Lemire's blog
Decoding base64 email attachments: a speed ranking of programming languages
Email attachments are base64. So are cryptographic PEM certificates. In both cases the text is broken into lines, 76 characters for email and 64 for PEM. Skipping line endings sounds trivial. Yet many fast decoders only work on uninterrupted base64. As soon…
Why does this return false even when cart has 3 items?
bool has_discount(const std::vector<int>& cart) {
int min_items = -1;
if (cart.size() > min_items) {
return true;
}
return false;
}
Under C++ usual arithmetic conversions, comparing unsigned std::size_t with signed int converts -1 to SIZE_MAX, so 3 > SIZE_MAX evaluates to false. Cleanest fix in C++20 is std::cmp_greater(cart.size(), min_items) or std::ssize(cart) > min_items.
Always wild how -Wall -Wextra catches this immediately, yet it still slips into live codebases and coding assessments all the time.
Spotted this in a daily C++ bug-spotting speedrun called Redline (3 short snippets a day against a clock) if anyone wants to try today's rounds: https://redline.playredline.workers.dev
https://redd.it/1y4flkr
@r_cpp
bool has_discount(const std::vector<int>& cart) {
int min_items = -1;
if (cart.size() > min_items) {
return true;
}
return false;
}
Under C++ usual arithmetic conversions, comparing unsigned std::size_t with signed int converts -1 to SIZE_MAX, so 3 > SIZE_MAX evaluates to false. Cleanest fix in C++20 is std::cmp_greater(cart.size(), min_items) or std::ssize(cart) > min_items.
Always wild how -Wall -Wextra catches this immediately, yet it still slips into live codebases and coding assessments all the time.
Spotted this in a daily C++ bug-spotting speedrun called Redline (3 short snippets a day against a clock) if anyone wants to try today's rounds: https://redline.playredline.workers.dev
https://redd.it/1y4flkr
@r_cpp
redline.playredline.workers.dev
REDLINE — Daily Bug-Spotting Speedrun
Spot the broken line, patch or diagnose why it fails, and beat the clock across 3 rounds in Python, C++, Java, or SQL.
Búzios Trip Report
I wrote up a short report from the Búzios meeting and where things stand with C++26:
https://cppalliance.org/newsmedia/news/b%C3%BAzios-trip-report-what-the-c26-ballot-taught-us/
https://redd.it/1y4jsui
@r_cpp
I wrote up a short report from the Búzios meeting and where things stand with C++26:
https://cppalliance.org/newsmedia/news/b%C3%BAzios-trip-report-what-the-c26-ballot-taught-us/
https://redd.it/1y4jsui
@r_cpp
C++ Alliance
Búzios Trip Report: What the C++26 ballot taught us