r/cpp • u/quicknir • 15d ago
Herb Sutter: When a language’s creator and its owners strongly disagree: C++26 post-DIS, historical experience, and paths forward
isocpp.orgr/cpp • u/antiquark2 • 15d ago
Exploration of a more library-oriented approach to contracts (Voutilainen, 2026)
open-std.orgr/cpp • u/ProgrammingArchive • 15d ago
New C++ Conference Videos Released This Month - November 2026 (Updated To Include Videos Released 2026-11-02 - 2026-11-08)
C++Now
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
- 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
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
- Lightning Talk: ?: - Jonathan Müller - https://youtu.be/TLj6NVx5xvk
ACCU
2026-11-02 - 2026-11-08
- Implementing C++ Standard Library - Design and Optimisations in Libc++ - Hui Xie - 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
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
- CallMeMaybe - Building Modern Runtime Reflection via C++26 - Laurie Kirk - https://youtu.be/cA0F3wRtZIU
ADC
2026-11-02 - 2026-11-08
- Are You Shipping Your Source Code? - Ryan Wardell - 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
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
- Generative Instruments with Large Piano Models - Tomek Roszczynialski - https://youtu.be/EO-hGj8_BUY
C++Day
2026-10-26 - 2026-11-01
- [C++ Day 2026] Old-School C++ for the Agentic Age: Lessons from Sane C++ (Stefano Cristiano) - https://www.youtube.com/watch?v=tAf-HsET0pE
- [C++ Day 2026] Zero-cost GIS: parsing binary formats in C++23 (Giorgio Bignotti) - https://www.youtube.com/watch?v=VHeNHf6t76Q
r/cpp • u/NoCard6774 • 16d ago
How does one actually contribute to LLVM these days?
I have had several patches that I’ve sent PRs for )(using my work email since I thought that looked a bit more legitimate)
- Someone who was nice responded to one of them and said that someone at Intel needed to code review i. Never got another response, I followed up in the comments and emailed the person at Intel no response
Patch 2) Someone responded that they were busy and would get around to it when they had a chance to. It’s been a few months and followed up in the comments to no response
patch 3) Someone was assigned to look at it. They worked at a company I haven’t heard about but they seem to no longer work there and the account has been deactivated since. I haven’t been able to get it reassigned.
I don’t really contribute to open source projects at all and I‘m unsure if this is the norm. All of them are fairly small patches to fix bugs I’ve experienced day to day and I’m curious if there’s a way to get file PRs that I am missing
Jonas Lund: Reflection Walkthrough
youtu.beA walkthrough of the new C++ 26 reflection feature, from high-level benefits via end-user usage and previous workaround hacks to the standard's final form and some of its grittier details
r/cpp • u/SoilGreat6312 • 17d ago
Dealing with AI Slop At Work
I work at a C++ shop with coders that I really respected - very deep C++ knowledge and are building very technical deep systems products. Over the last few months the CTO has gone off the deep end with AI talking of creating software factory (He’s been reading too much X), he releases huge multi thousand line PRs with basically no review. All sense of scientific temperament and engineering rigour has gone out of the window it seems.
I do believe that AI is a transformational tool and I use it plenty in the development process but I still strive to understand what the AI has written and often use the AI as multiplier rather than surrendering my thinking to it. it’s become increasingly hard to actually develop while deeply understanding the codebase because it has become so sloppy.
I am very sad as this means I’m not really interfacing with writing C++ as much and exploring cool new corners of the language in my daily work.
There is definitely some cool stuff this lets us do a bit more of - high level planning and systems design by reading many papers as well as exploring formal verification.
But overall I am left disappointed. I wonder how it is like at everyone else’s work places and if anyone has any thoughts and suggestions on how I can still develop my C++ knowledge.
r/cpp • u/Xaneris47 • 17d ago
"C++26 DIS failed, how does C++ survive?"
andreasfertig.comr/cpp • u/emilios_tassios • 16d ago
hpx.dev – The documentation and community portal for the HPX project
Sharing https://hpx.dev, the central web portal for the open-source HPX C++ runtime.
The site serves as a dedicated hub for HPX developer resources, engineering updates, and community content. Currently, you can find:
- Official Documentation: Direct, searchable access to the HPX API references and technical manuals.
- Engineering Blog & Release Notes: Technical write-ups on architectural updates, subsystem integration, and project releases.
- Contributor Reports: Detailed summaries from open-source contributors, including deep-dives into recent Google Summer of Code (GSoC) projects.
- The "HPX In Action" Series: Ongoing interviews featuring developers, researchers, and contributors discussing their workflows and HPC challenges.
Feedback from the C++ community on the site's content and organization is always welcome.
r/cpp • u/seeking-health • 16d ago
Is there any point in improving the/any language at this point ?
What's the point of spending years debating new syntax, language features, and abstractions if the majority of future C++ code might not be written by humans anyway?
r/cpp • u/hansvonhinten • 18d ago
Potential GCC 16 bug: annotations disappear on nested class declarations inside class templates
Im playing around with reflection (GCC16) and I ran into the following problem:
When using std::meta::define_aggregateto complete an annotated nested class, the annotation is removed, iff the enclosing class is templated.
Below is a minimal reproducible example (Godbolt link).
I would expect both assertions to succeed, but they don't. There is also GCC PR124399, which addresses a related problem, but I'm not sure if this is the same underlying problem. Its not the same bug, since it's fixed.
Is this a bug, or am I overlooking/misunderstanding some template instantiation rules?
#include <meta>
// Works: ordinary forward declaration.
struct [[=42]] Ordinary;
static_assert(std::meta::annotations_of(^^Ordinary).size() == 1);
// Fails: forward declaration inside a class template.
template <typename T>
struct Outer {
struct [[=42]] Inner;
};
static_assert(sizeof(Outer<int>) > 0);
static_assert(std::meta::annotations_of(^^Outer<int>::Inner).size() == 1);Context: I'm experimenting with rust-like derive(debug) functionality using annotations, combined with structural type transformations (similar to AoS to SoA). I originally encountered this while trying to propagate annotations to a generated type, before reducing it to the example above.
r/cpp • u/meetingcpp • 18d ago
Meeting C++ Interview with Guy Davidson on C++26 and profiles for Meeting C++ 2026
youtube.comr/cpp • u/victor-s8n • 20d ago
How I design C++ classes
rafb.euThis is my first ever blog-post, any feedback is welcome! ofc, no AI got used.
r/cpp • u/R3DKn16h7 • 20d ago
Pretty nasty MSVC 19.51 hash of float bug
Hash of 0.0 and -0.0 are not the same, as the condition:
_Keyval == 0.0F ? 0.0F : _Keyval
is optimized away if you compile with:
/arch:AVX2 /O2
https://godbolt.org/z/45WPzceYx
If you use Visual Studio 2022 it works fine. I'm somewhat surprised they don't have regression tests since the standard library explicitly handles this case.
So I guess, check you hash maps if you update.
r/cpp • u/Background-Error-910 • 19d ago
Maybe C++ would win if it adapted quicker?
I know that I'm oversimplifying here. The way the new C++ standard is released is pushing the language behind the others, especially those who adapt new language features quicker and favorize new modern language features.
I'm not saying that the movement towards modern C++ (whatever that might mean) is not helping. I love the fact that there are new exciting features such as reflection in the C++26 standard. Saying that however, even though the standard is supposed to have these features, the adaptibility by the compilers and the ecosystem is extremely slow.
Here we are in 2026 and MSVC as of now has zero C++26 core language features implemented. And god knows how long they will be unavailable. I feel like only now when its 2026, c++23 started to be slowly adopting, which I find sad. PS: I'm aware that GCC has mostly all features implemented, but STILL not all of them. Similar situation for Clang.
Maybe a more "aggressive" and faster release cycle would help? Also faster deprecation and language cleanup? The general push has always been towards backwards compatibility, but you can't always add new things that people want without breaking compatibility and removing deprecated features. And I think that for the language it's very important to adapt the modern programming language standards. But now I don't feel like that's happening.
Obviously there are other issues with C++, such as not having standardized package managers, linters, formatters, etc. For example, the clang-tidy formatter is abysmaly slow, and just painful to use, probably because it has to accomodate the million features the C++ language permits, and even the things that doesn't make sense no more and are just left in the language as obsolete things, ready to be removed after 20 years, which is hilarious.
Anyway, what are your thoughts on this topic?
EDIT: I agree that chosing the wording "win" is a bad wording here. The main point was to address some of the weaknesses C++ has compared to other languages/ecosystems.
Catastrophic misoptimization of byte-range equality comparison in all major C++ compilers (and Rust). Language issue or compiler issue?
Someone brought a C++ snippet that reduced to the following (std::array used instead of char* for consistency for later)
bool eq2(const std::array<char, 64>& lhs, const std::array<char, 64>& rhs) {
for (int i = 0; i < 64; ++i)
if (lhs[i] != rhs[i])
return false;
return true;
}It basically returns true iff two 64 byte memory regions are a bitwise match. You'd think this can be optimized by modern compilers flawlessly, right? Right?! And the worst thing that can happen is it doesn't get autovectorized, right? Right?!
Well, to everybody's surprise... https://godbolt.org/z/v4d8G5ovh
GCC attempts to partially conditionally vectorize but doesn't want to use unaligned loads. Moreover its vectorization is way more cumbersome than it needs to be. Then after it finds a mismatch it... reverts to the unvectorized version?! Clang and MSVC do not even attempt to vectorize it - and in a way it makes them end up better than GCC, which is wild.
Now, to try to investigate we've checked how it looks in Rust. https://godbolt.org/z/K7xE3qc94. It does what GCC does but fully vectorized.
At this point we're confused as to what the source of the problem is. Are we missing something with respect to what transformations are allowed? Is it really that much to ask from the as-if rule?
As a sanity check we use std::array's operator==. https://godbolt.org/z/xPhPYMjvz. Oh would you look at that? Now the compilers can do well (ok not you MSVC. GCC also fumbles the flag register slightly). The situation is the same in Rust - https://godbolt.org/z/3GjWorze8. Not only does it vectorize correctly but the vectorized code is better - using vpxor.
Ultimately this isn't just academical. Situations like this undermine the trust in the compiler at the most fundamental level. Not every place can use std::array, not everyone can use ranges and span yet. We could use std::equal but why does it matter so much? What if != changes to < and there's no good solution anymore? To what degree are we supposed to be paranoid about basic optimizations being done or not?
The similarity of codegen between Rust and C++ would point to it being either a compiler issue or a fundamental code correctness issue. The fact that C++ Clang differs from Rust (LLVM) would suggest it's at least partially a language issue. Why is this extremely simple code so nasty?
edit. some more [not so] fun findings https://www.reddit.com/r/cpp/comments/1xlyti8/catastrophic_misoptimization_of_byterange/19s1i09srxdaa/
r/cpp • u/ProgrammingArchive • 21d ago
New C++ Conference Videos Released This Month - November 2026
C++Day
2026-10-26 - 2026-11-01
- [C++ Day 2026] Old-School C++ for the Agentic Age: Lessons from Sane C++ (Stefano Cristiano) - https://www.youtube.com/watch?v=tAf-HsET0pE
- [C++ Day 2026] Zero-cost GIS: parsing binary formats in C++23 (Giorgio Bignotti) - https://www.youtube.com/watch?v=VHeNHf6t76Q
C++Now
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
- Lightning Talk: ?: - Jonathan Müller - https://youtu.be/TLj6NVx5xvk
ACCU
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
- CallMeMaybe - Building Modern Runtime Reflection via C++26 - Laurie Kirk - https://youtu.be/cA0F3wRtZIU
ADC
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
- Generative Instruments with Large Piano Models - Tomek Roszczynialski - https://youtu.be/EO-hGj8_BUY