Jonas Persson: Making every byte count
youtu.beWhat makes a compiler specialized for embedded development special? Jonas, a compiler developer at IAR, shares some of the key properties.
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.
r/cpp • u/ProgrammingArchive • Sep 07 '26
C++Now
2026-08-31 - 2026-09-06
ACCU
r/cpp • u/holyblackcat • Sep 05 '26
What if AI could do more than suggest code, and actually drive hardware-in-the-loop test cycles on real systems? This talk looks under the hood of a practical agentic AI workflow for embedded C++ development.
r/cpp • u/martinus • Sep 04 '26
I recently did a big update to my ankerl::unordered_dense::map which now features several optimizations, bug fixes, and most importantly an SSE optimized lookup which brings the lookup speed quite close to the fastest competitor which is boost::unordered_flat_map. Get it here: https://github.com/martinus/unordered_dense
Since it is not easy to decide what map is best for one's usecase, I have redone and improved the benchmarks I did a while ago, crunched some numbers and tried to compress everything into a quiz that helps you figure out what to use.
While doing the numbers, a few things surprised me:
unordered_dense map would be any benefit. Thanks to AI, I found a way to speed up random access a lot, it is now very close to boost::unordered_flat_map.unordered_dense map.r/cpp • u/foonathan • Sep 04 '26
Use this thread to share anything you've written in C++. This includes:
The rules of this thread are very straight forward:
If you're working on a C++ library, you can also share new releases or major updates in a dedicated post as before. The line we're drawing is between "written in C++" and "useful for C++ programmers specifically". If you're writing a C++ library or tool for C++ developers, that's something C++ programmers can use and is on-topic for a main submission. It's different if you're just using C++ to implement a generic program that isn't specifically about C++: you're free to share it here, but it wouldn't quite fit as a standalone post.
Last month's thread: https://www.reddit.com/r/cpp/comments/1vhdqw8/c_show_and_tell_august_2026/
r/cpp • u/javascript • Sep 05 '26
It would be nice if there was a single place to see where, for example, the keyword "SFINAE" shows up across the content of all papers, not just titles. Thanks!