r/cpp • u/rsjaffe • Sep 14 '26
Push-based vs Pull-based Customization
brevzin.github.ioEmulating Rust attributes with reflection (or at least trying to).
r/cpp • u/rsjaffe • Sep 14 '26
Emulating Rust attributes with reflection (or at least trying to).
r/cpp • u/Remi_Coulom • Sep 14 '26
r/cpp • u/ProgrammingArchive • Sep 14 '26
C++Now
2026-09-07 - 2026-09-13
2026-08-31 - 2026-09-06
ACCU
2026-09-07 - 2026-09-13
2026-08-31 - 2026-09-06
r/cpp • u/Street-Anteater1234 • Sep 14 '26
r/cpp • u/pavel_v • Sep 14 '26
r/cpp • u/germandiago • Sep 13 '26
Hello everyone.
I checked arewemodulesyet.org, which I do from time to time.
I was very positively surprised bc a couple of months ago there were 109 projects with modules support.
Now it is 228 and some of the most popular are there: fmt, ftxui, nlohmann.json and others.
So I had to share it with the community.
r/cpp • u/comfortcube • Sep 15 '26
Any function can be suspended. It literally happens constantly when a process or thread gets pre-empted by the OS or asynchronous hardware, with the stack being the mechanism to save to and restore context from. So, this super common way of describing coroutines is just frustrating because it's not it!
Coroutines are functions that can be suspended in a **controlled, intentional (as in, explicitly expressed) way**, with the relevant context (coroutine frame) being placed _not_ on the stack like a function's usual context, but on the heap (usually).
I wish someone had broken it down for me in this way before, so hopefully it helps someone else too.
What makes a compiler specialized for embedded development special? Jonas, a compiler developer at IAR, shares some of the key properties.
r/cpp • u/Prior-Drawer-3478 • Sep 12 '26
r/cpp • u/TheRavagerSw • Sep 13 '26
I used faster tools:
r/cpp • u/Xadartt • Sep 11 '26
MSVC is shipping C++23 constexpr <cmath> in the next Build Tools update! (And a partial implementation of C++26 constexpr <cmath>.) Our compiler frontend dev Cody Miller will be publishing a series of blog posts about this work, starting with this overview. The next one will be a guest post from LLVM libc's maintainers describing the incredible amount of effort that's gone into their code.
r/cpp • u/alexis_placet • Sep 10 '26
I'm sharing the work of a colleague, Anutosh Bhat.
What if the Clang & LLVM compiler toolchain could run entirely inside your browser ? Meet WasmBolt 😃
Inspired by 🖥️ Matt Godbolt's Compiler Explorer, WasmBolt runs Clang, mlir-opt, opt, llc, Graphviz and wasm-ld locally through WebAssembly, without a remote compilation server.
You can inspect Clang ASTs, progressively lower MLIR, run real LLVM optimization passes, render control-flow graphs, explore instruction selection and MIR, and generate assembly or object files for WebAssembly, AArch64 and x86-64. For WebAssembly, you can go one step further: link, load and execute the generated program directly in the browser.
Here the github project: https://github.com/Anutosh21/WasmBolt
r/cpp • u/ericbrumer • Sep 09 '26
Hi, one of the MSVC dev leads here.
The post covers what's new in the MSVC Build Tools Preview (version 14.52) since mid-August. Instructions to install & use the latest preview bits are at https://aka.ms/msvc/preview.
Some additional information:
r/cpp • u/boostlibs • Sep 09 '26
The Boost website has been rebuilt. Here's a summary of what's changed:
The libraries, release process, and formal review process are unchanged. The work is limited to the website itself and how you navigate, search, and contribute to it.
Link: boost.org
Bug reports and feedback on navigation or search are welcome.
r/cpp • u/pavel_v • Sep 09 '26
r/cpp • u/mropert • Sep 09 '26
r/cpp • u/TheRavagerSw • Sep 08 '26
I wanted to have fast test and release builds, so I decided to "upgrade" my compiler.
What I used:
I tested the build speed with hyperfine with 2 test cases, one is sqlite.c the other is tu including eigen.
| Workload | Build mode | Optimized Clang speedup | Compile-time reduction |
|---|---|---|---|
| Eigen, C++23 | -O0 | 1.69× | 40.8% |
| Eigen, C++23 | -O0 -g3 -fno-omit-frame-pointer | 1.72× | 41.9% |
| Eigen, C++23 | -O3 -DNDEBUG | 1.73× | 42.2% |
| SQLite amalgamation | -O0 | 1.74× | 42.5% |
| SQLite amalgamation | -O0 -g3 -fno-omit-frame-pointer | 1.89× | 47.1% |
| SQLite amalgamation | -O3 -DNDEBUG | 1.73× | 42.2% |
In case anyone is wondering, it also outperformed LLVM release binaries, by about %13 to %15 for each case, but having more performance than the system compiler is more cool so I'm not giving the table for that.
It is also very awesome to have a compiler not depend on glibc. If no errors arise, I'll probably never update my compiler for 2 years at least. As my build is portable(no march native just v3)
I'm planning on moving to cachyOS or any other optimized linux distro next, to finalise my build enviroment. I'm currently on Ubuntu.
r/cpp • u/ProgrammingArchive • Sep 08 '26
TICKETS AVAILABLE TO PURCHASE
The following conferences currently have tickets available to purchase
OPEN CALL FOR SPEAKERS
There are currently no open call for speakers
OTHER OPEN CALLS
ADC26/ADCx Gather Call For Posters – ADC is looking for
TRAINING COURSES AVAILABLE FOR PURCHASE
Conferences are offering the following training courses:
CppCon Online Workshops
9th – 11th September
21st – 23rd September
26th – 27th September
CppCon Onsite Workshops
All onsite workshops will take place in the Gaylord Rockies in Aurora, Colorado
12th & 13th September
13th September
19th & 20th September
OTHER NEWS
Finally anyone who is coming to a conference in the UK such as C++ on Sea or ADC from overseas may now be required to obtain Visas to attend. Find out more including how to get a VISA at https://homeofficemedia.blog.gov.uk/electronic-travel-authorisation-eta-factsheet-january-2025/
r/cpp • u/benjoffe • Sep 07 '26
r/cpp • u/Kelteseth • Sep 07 '26
moc: Properly handle modules
When moc'ing module interfaces and partitions, we make the generated cpp
file part of the respective module.
We do not support Q_OBJECT & friends in implementation units and private
module fragments, as our generated source file will not have access to
the respective classes, and we certainly do not want to carry over our
file inclusion hacks into the module world.
[ChangeLog][moc] moc now supports C++ modulesmoc: Properly handle modulesNote there is still a lot of work to be done: https://codereview.qt-project.org/c/qt/qtbase/+/767846 and I can't seem to find the PR where they fixed some qtbase code to make it work with modules. I guess most other qt modules will need some small fixes to work with modules as well.