New features in GCC 16: Improved error messages and SARIF output
https://developers.redhat.com/articles/2026/04/28/gcc-16-improved-error-messages-sarif-output
https://redd.it/1sy031g
@r_cpp
https://developers.redhat.com/articles/2026/04/28/gcc-16-improved-error-messages-sarif-output
https://redd.it/1sy031g
@r_cpp
Red Hat Developer
New features in GCC 16: Improved error messages and SARIF output | Red Hat Developer
I work at Red Hat on the GNU Compiler Collection (GCC). GCC 16 is about to be released, so I'm sharing some of the new features I worked on this year. Some changes are visible to users, while others
Things C++26 define_static_array can’t do
https://quuxplusone.github.io/blog/2026/04/24/define-static-array/
https://redd.it/1syc79o
@r_cpp
https://quuxplusone.github.io/blog/2026/04/24/define-static-array/
https://redd.it/1syc79o
@r_cpp
Arthur O’Dwyer
Things C++26 define_static_array can’t do
We’ve seen previously
that it’s not possible to create a constexpr global variable of container type,
when that container holds a pointer to a heap allocation. It’s fine to create a
global constexpr std::array, or even a std::string that uses only its SSO…
that it’s not possible to create a constexpr global variable of container type,
when that container holds a pointer to a heap allocation. It’s fine to create a
global constexpr std::array, or even a std::string that uses only its SSO…
A Principal Software Engineer at Epic Games / 25 Year Vet, talks about why AI is just a "giant switchboard" and why code is a delicate crystal.
I’ve been thinking a lot about how people actually get comfortable with complex topics like programming, not by tutorials, but by just being passively around the conversations.
So I recorded one of those conversations.
I sat down with Dietmar Hauser (25+ years in the industry, Principal Software Engineer at Epic), and we went from Commodore 64 days, literally typing code out of magazines. All the way to modern C++ and where we find ourselves at the moment with another layer of abstraction = LLMs.
What stuck with me wasn’t just the history, but how he talks about coding as this fragile, interconnected system (“a delicate crystal”), that shatters if you touch the wrong thing, which i found very interesting.
It’s a long, unfiltered discussion, more like something you overhear between two people deep in the field than a structured interview.
If you’re trying to get a feel for how experienced engineers actually think about code, or if you wanna warm up to the idea, this convo might be useful:
https://youtu.be/PE3aCgSHvTQ
https://redd.it/1syd309
@r_cpp
I’ve been thinking a lot about how people actually get comfortable with complex topics like programming, not by tutorials, but by just being passively around the conversations.
So I recorded one of those conversations.
I sat down with Dietmar Hauser (25+ years in the industry, Principal Software Engineer at Epic), and we went from Commodore 64 days, literally typing code out of magazines. All the way to modern C++ and where we find ourselves at the moment with another layer of abstraction = LLMs.
What stuck with me wasn’t just the history, but how he talks about coding as this fragile, interconnected system (“a delicate crystal”), that shatters if you touch the wrong thing, which i found very interesting.
It’s a long, unfiltered discussion, more like something you overhear between two people deep in the field than a structured interview.
If you’re trying to get a feel for how experienced engineers actually think about code, or if you wanna warm up to the idea, this convo might be useful:
https://youtu.be/PE3aCgSHvTQ
https://redd.it/1syd309
@r_cpp
YouTube
25 Years in Game Dev: The Uncomfortable Truth About Abstraction Layers - Dietmar Hauser
Can AI replace 25 years of software engineering experience? I sit down with Dietmar Hauser, a Principal Software Engineer at Epic Games, to unpack the evolution of programming.
We go from coding on the Commodore 64 to navigating modern abstraction layers.…
We go from coding on the Commodore 64 to navigating modern abstraction layers.…
boost::container::hub ACCEPTED into Boost
Hi to all, I'm glad to announce that the proposed boost::container::hub container has been ACCEPTED. Congrats u/joaquintides !
More details here:
https://lists.boost.org/archives/list/[email protected]/thread/7WZ7QTPE2YDYD5OYCKXKKV2N74JHJRZL/
Reminder:
https://redd.it/1sycrw7
@r_cpp
Hi to all, I'm glad to announce that the proposed boost::container::hub container has been ACCEPTED. Congrats u/joaquintides !
More details here:
https://lists.boost.org/archives/list/[email protected]/thread/7WZ7QTPE2YDYD5OYCKXKKV2N74JHJRZL/
Reminder:
hub is a sequence container with O(1) insertion and erasure and element stability with great performance (see these benchmarks): pointers/iterators to an element remain valid as long as the element is not erased. hub is very similar but not entirely equivalent to C++26 std::hive (hence the different naming, consult the section "Comparison with std::hive" for details).https://redd.it/1sycrw7
@r_cpp
I tried compile-time heapsort in TMP. It basically became selection sort.
Tried implementing compile-time sorting with old-school TMP (recursive templates, no constexpr). Yeah, constexpr sort exists now, but I wanted to see how far pure template recursion could go. Quicksort and mergesort worked fine. Heapsort was the one that broke.
Then it clicked: heapsort assumes cheap random access. Parent node, left child, right child, all index arithmetic. But in a typelist like
What I actually ended up with was... selection sort. Find the min by scanning the whole list, pull it out, recurse. O(n²) template instantiations. Not great.
Quicksort doesn't have this problem because it just filters into two sublists (less-than pivot, greater-than pivot). No indexing needed. Mergesort splits with take/drop which is O(n) but only happens once per level, so it stays O(n log n) overall.
I didn't really clock the random access dependency until I was halfway through writing the heap version. Felt kind of dumb in retrospect. Never really felt how much big-O depends on the data structure until TMP took away my arrays.
Full code in comments if anyone wants to look at it. Fair warning the mergesort lives in
Anyone else run into algorithms that stop making sense in TMP?
https://redd.it/1syqjdu
@r_cpp
Tried implementing compile-time sorting with old-school TMP (recursive templates, no constexpr). Yeah, constexpr sort exists now, but I wanted to see how far pure template recursion could go. Quicksort and mergesort worked fine. Heapsort was the one that broke.
Then it clicked: heapsort assumes cheap random access. Parent node, left child, right child, all index arithmetic. But in a typelist like
arr<5, 3, 8, 1> there's no arr[i]. Every element access peels the head off recursively, so it's O(n) per lookup. Heapify becomes expensive, sift-down becomes expensive, and the whole thing degrades.What I actually ended up with was... selection sort. Find the min by scanning the whole list, pull it out, recurse. O(n²) template instantiations. Not great.
Quicksort doesn't have this problem because it just filters into two sublists (less-than pivot, greater-than pivot). No indexing needed. Mergesort splits with take/drop which is O(n) but only happens once per level, so it stays O(n log n) overall.
I didn't really clock the random access dependency until I was halfway through writing the heap version. Felt kind of dumb in retrospect. Never really felt how much big-O depends on the data structure until TMP took away my arrays.
Full code in comments if anyone wants to look at it. Fair warning the mergesort lives in
namespace www because I was iterating on these in separate files and never bothered renaming.Anyone else run into algorithms that stop making sense in TMP?
https://redd.it/1syqjdu
@r_cpp
Reddit
From the cpp community on Reddit
Explore this post and more from the cpp community
atomic_queue benchmarks SMT vs no-SMT performance
https://max0x7ba.github.io/atomic_queue/html/benchmarks.html
https://redd.it/1syrt4e
@r_cpp
https://max0x7ba.github.io/atomic_queue/html/benchmarks.html
https://redd.it/1syrt4e
@r_cpp
Discussion: Using Python as a control plane for high-performance systems - Is the overhead of the C-API still the main bottleneck?
Hi everyone,
I’ve been working on a high-performance infrastructure project where the core data engines are written in Rust and C++ (using Polars and custom C-style binary protocols), but the orchestration and business logic are handled by Python 3.13+.
In the C++ world, we often avoid Python for anything "mission-critical" due to the GIL and the overhead of the Python C-API. However, I’ve been experimenting with a Shared Memory IPC approach to decouple the high-level logic from the data plane.
I’d love to get some feedback from the C++ community on this architecture:
1. Zero-Copy IPC via Shared Memory: Instead of using Protobuf or JSON over a socket, I'm allocating segments in the Windows Kernel and using
2. Memory Alignment and Padding: When interfacing Python’s
3. CPU Affinity: I'm pinning the Python consumer to specific cores to avoid context switching when reading from the shared buffer. In a hybrid system, do you usually reserve specific cores for the C++ engine and leave others for the management scripts, or do you let the OS scheduler handle it?
The Goal:
I'm trying to build a system where Python handles the "thinking" (logic/orchestration) while the "doing" (I/O and computation) happens at $O(1)$ or $O(\\log n)$ at the hardware level.
I'm curious: What is your "threshold" for moving a component out of Python/Go and into pure C++? Is it strictly latency, or is it about memory safety and deterministic behavior?
https://redd.it/1syrus9
@r_cpp
Hi everyone,
I’ve been working on a high-performance infrastructure project where the core data engines are written in Rust and C++ (using Polars and custom C-style binary protocols), but the orchestration and business logic are handled by Python 3.13+.
In the C++ world, we often avoid Python for anything "mission-critical" due to the GIL and the overhead of the Python C-API. However, I’ve been experimenting with a Shared Memory IPC approach to decouple the high-level logic from the data plane.
I’d love to get some feedback from the C++ community on this architecture:
1. Zero-Copy IPC via Shared Memory: Instead of using Protobuf or JSON over a socket, I'm allocating segments in the Windows Kernel and using
struct packing to write raw bytes. For those of you building C++ engines that need to talk to high-level "glue" languages, do you still prefer Unix Domain Sockets/Named Pipes, or has Shared Memory become your standard?2. Memory Alignment and Padding: When interfacing Python’s
struct module (C-style) with C++ structs, I've had to be extremely careful with Little Endianness and memory alignment. Is there a more robust way to handle this without bringing in heavy dependencies like FlatBuffers?3. CPU Affinity: I'm pinning the Python consumer to specific cores to avoid context switching when reading from the shared buffer. In a hybrid system, do you usually reserve specific cores for the C++ engine and leave others for the management scripts, or do you let the OS scheduler handle it?
The Goal:
I'm trying to build a system where Python handles the "thinking" (logic/orchestration) while the "doing" (I/O and computation) happens at $O(1)$ or $O(\\log n)$ at the hardware level.
I'm curious: What is your "threshold" for moving a component out of Python/Go and into pure C++? Is it strictly latency, or is it about memory safety and deterministic behavior?
https://redd.it/1syrus9
@r_cpp
Reddit
From the cpp community on Reddit
Explore this post and more from the cpp community
learncpp. com not online anymore
I can't seem to get in the site learncpp.com anymore.
Anyone else with the same issue?
Do you have any suggestions for a similar site where i can learn cpp, I am a complete novice trying to learn cpp after C (still learning C)
https://redd.it/1syvxrb
@r_cpp
I can't seem to get in the site learncpp.com anymore.
Anyone else with the same issue?
Do you have any suggestions for a similar site where i can learn cpp, I am a complete novice trying to learn cpp after C (still learning C)
https://redd.it/1syvxrb
@r_cpp
Reddit
From the cpp community on Reddit
Explore this post and more from the cpp community
Build a simple and yet powerful TUI file-organizer (forg?)
And Yes, i know, organizing can quit your searching. But I'm constantly nerved down to my bones (don't know how to bring this in proper english) when I'm looking at my /Downloads, /Documents, /Active_Projects, /AnythingAtAll and still find a lot of stuff in it after some days of intensive work at my lap.... Aaargh...I think often by myself.
So here it is. Simple OSX/Linux Tool with TUI ...everything lined up in your /Organized.... (configurable of 'cause)
May it be useful. For you as it is already for me.
FREE at all. clone...compile...have fun.... cheers...
github: https://github.com/SaschaKohler/file-organizer
https://redd.it/1sywf3f
@r_cpp
And Yes, i know, organizing can quit your searching. But I'm constantly nerved down to my bones (don't know how to bring this in proper english) when I'm looking at my /Downloads, /Documents, /Active_Projects, /AnythingAtAll and still find a lot of stuff in it after some days of intensive work at my lap.... Aaargh...I think often by myself.
So here it is. Simple OSX/Linux Tool with TUI ...everything lined up in your /Organized.... (configurable of 'cause)
May it be useful. For you as it is already for me.
FREE at all. clone...compile...have fun.... cheers...
github: https://github.com/SaschaKohler/file-organizer
https://redd.it/1sywf3f
@r_cpp
GitHub
GitHub - SaschaKohler/file-organizer: just another file management tool written in C++20
just another file management tool written in C++20 - SaschaKohler/file-organizer
Custom shell i have been working on
hi i have been working on this shell for some time and i though of getting some feedback, note that i still am working on the project : https://github.com/Indective/Ish
https://redd.it/1sz22ws
@r_cpp
hi i have been working on this shell for some time and i though of getting some feedback, note that i still am working on the project : https://github.com/Indective/Ish
https://redd.it/1sz22ws
@r_cpp
GitHub
GitHub - Indective/Ish: UNIX-based shell
UNIX-based shell. Contribute to Indective/Ish development by creating an account on GitHub.
Cpp Files Still Help Breaking Build Dependencies of Modules
https://abuehl.github.io/2026/04/23/cpp-files-still-help-breaking-dependencies.html
https://redd.it/1sz5a9o
@r_cpp
https://abuehl.github.io/2026/04/23/cpp-files-still-help-breaking-dependencies.html
https://redd.it/1sz5a9o
@r_cpp
Adrian’s Notes
Cpp Files Still Help Breaking Build Dependencies
C++ modules provide a whole new level of information hiding, which is not possible with header files. If we have an interface: // Translation unit #1a export module M; import R; export void foo() { R::T x; ... } ... With R being: // Translation unit #2 export…
ACAV v1.0.0: an open-source GUI tool for exploring Clang ASTs in C/C++ projects
I am the author of ACAV, the Aurora Clang AST Viewer, and I have just made the first public release, v1.0.0.
ACAV is an open-source Qt desktop application for exploring Clang ASTs in C, C++, Objective-C, and Objective-C++ projects that provide a `compile_commands.json` compilation database.
It supports source-to-AST navigation, AST-node search, source-code search, declaration-context views, selected-subtree JSON export, and background AST generation/caching.
Links:
\- GitHub: https://github.com/uvic-aurora/acav
\- Release: https://github.com/uvic-aurora/acav/releases/tag/v1.0.0
\- Manual: https://uvic-aurora.github.io/acav-manual/index.html
\- Demo video: https://youtu.be/0M7dYAlnrTI
There are also prebuilt Docker/Podman demo images for LLVM 20, 21, and 22.
https://github.com/uvic-aurora/acav/pkgs/container/acav
I would appreciate feedback from C++ users, especially anyone who works with Clang tooling or wants a more visual way to inspect ASTs.
https://redd.it/1sz6w3w
@r_cpp
I am the author of ACAV, the Aurora Clang AST Viewer, and I have just made the first public release, v1.0.0.
ACAV is an open-source Qt desktop application for exploring Clang ASTs in C, C++, Objective-C, and Objective-C++ projects that provide a `compile_commands.json` compilation database.
It supports source-to-AST navigation, AST-node search, source-code search, declaration-context views, selected-subtree JSON export, and background AST generation/caching.
Links:
\- GitHub: https://github.com/uvic-aurora/acav
\- Release: https://github.com/uvic-aurora/acav/releases/tag/v1.0.0
\- Manual: https://uvic-aurora.github.io/acav-manual/index.html
\- Demo video: https://youtu.be/0M7dYAlnrTI
There are also prebuilt Docker/Podman demo images for LLVM 20, 21, and 22.
https://github.com/uvic-aurora/acav/pkgs/container/acav
I would appreciate feedback from C++ users, especially anyone who works with Clang tooling or wants a more visual way to inspect ASTs.
https://redd.it/1sz6w3w
@r_cpp
GitHub
GitHub - uvic-aurora/acav: Aurora Clang AST Viewer
Aurora Clang AST Viewer. Contribute to uvic-aurora/acav development by creating an account on GitHub.
Why C++ Is Growing and What C++26 Means for Production Systems
https://www.youtube.com/watch?v=Qvr9MTAU_y4
https://redd.it/1szbl25
@r_cpp
https://www.youtube.com/watch?v=Qvr9MTAU_y4
https://redd.it/1szbl25
@r_cpp
YouTube
Herb Sutter: Why C++ Is Growing and What C++26 Means for Production Systems
C++ is accelerating, and C++26 is built for what developers need now. Hear Herb Sutter on what’s driving its growth.
Citadel Securities is a leading quantitative trading firm. We deploy powerful predictive models and develop leading technology to execute…
Citadel Securities is a leading quantitative trading firm. We deploy powerful predictive models and develop leading technology to execute…
CPP* Compiler Project *Almost Too Good To Be True
https://github.com/LukeSchoen/CPrime
https://redd.it/1szi16y
@r_cpp
https://github.com/LukeSchoen/CPrime
https://redd.it/1szi16y
@r_cpp
GitHub
GitHub - LukeSchoen/CPrime: Fast C compiler with essential C++ features like constructors, class-templates, overloads, etc
Fast C compiler with essential C++ features like constructors, class-templates, overloads, etc - LukeSchoen/CPrime
GCC 16.1 released with many new C++26/23 features, C++20 now the default stable language version
https://gcc.gnu.org/gcc-16/changes.html#cxx
https://redd.it/1szveq3
@r_cpp
https://gcc.gnu.org/gcc-16/changes.html#cxx
https://redd.it/1szveq3
@r_cpp
Reddit
From the cpp community on Reddit: GCC 16.1 released with many new C++26/23 features, C++20 now the default stable language version
Posted by AccordingWarthog - 17 votes and 3 comments
Some theory and practice of alignment in C++ (guide part 3).
https://pvs-studio.com/en/blog/posts/cpp/1369/
https://redd.it/1szx3m5
@r_cpp
https://pvs-studio.com/en/blog/posts/cpp/1369/
https://redd.it/1szx3m5
@r_cpp
PVS-Studio
Silent foe or quiet ally: Brief guide to alignment in C++. Part 3
We′ve already covered basic field alignment and explored how inheritance layers data atop one another. By now you might think we have uncovered every trap. But not so fast! This topic has a truly...
Working on a new language (vibe-compiler) – Looking for feedback on my C++23 Lexer/Parser
Hey everyone,
I've been working on a custom programming language called vibe-compiler. It's a low-level project built with C++23.
I want to learn more about how can I built a OOP in my custom language. I'm following the www.craftinginterpreters.com . I'd love some feedback on my approach to naming convention and how can i improve the project. Also, if anyone is interested in contributing or just chatting about compiler design, I'd love to connect!
This is the GitHub repo: https://github.com/gemrey13/vibe-compiler
https://redd.it/1szwqdg
@r_cpp
Hey everyone,
I've been working on a custom programming language called vibe-compiler. It's a low-level project built with C++23.
I want to learn more about how can I built a OOP in my custom language. I'm following the www.craftinginterpreters.com . I'd love some feedback on my approach to naming convention and how can i improve the project. Also, if anyone is interested in contributing or just chatting about compiler design, I'd love to connect!
This is the GitHub repo: https://github.com/gemrey13/vibe-compiler
https://redd.it/1szwqdg
@r_cpp
GitHub
GitHub - gemrey13/vibe-compiler
Contribute to gemrey13/vibe-compiler development by creating an account on GitHub.
C++26: string and string_view improvements
https://www.sandordargo.com/blog/2026/04/29/cpp26-string-string_view-improvements
https://redd.it/1t02001
@r_cpp
https://www.sandordargo.com/blog/2026/04/29/cpp26-string-string_view-improvements
https://redd.it/1t02001
@r_cpp
Sandor Dargo’s Blog
C++26: string and string_view improvements
Let’s continue our exploration of C++26 improvements. Today we focus on string_view. Some types got new constructors accepting string_views, and concatenation of strings and string_views just got easier. But let’s start with a brief reminder of what a string_view…
Fast GPU Linear Algebra via Compile Time Expression Fusion
https://arxiv.org/abs/2604.22242
https://redd.it/1t01hj5
@r_cpp
https://arxiv.org/abs/2604.22242
https://redd.it/1t01hj5
@r_cpp
arXiv.org
Fast GPU Linear Algebra via Compile Time Expression Fusion
We describe the Bandicoot GPU linear algebra toolkit, a C++ based library that prioritises ease of use without compromising efficiency. Bandicoot's API is compatible with the popular Armadillo CPU...