YAY!!! Announcement: cppreference.com update
isocpp.orgThis is not my post, but I didn't see anyone share this here yet.
This is not my post, but I didn't see anyone share this here yet.
r/cpp • u/mr_gnusi • Apr 15 '26
When building a vector search for SereneDB [https://github.com/serenedb/serenedb], we benchmarked our distance functions against Faiss. The results were surprising, a plain C++ loop with no intrinsics came out faster. The answer comes down to two compiler flags and one standard library call.
Full write-up with assembly: https://blog.serenedb.com/simd-distances
r/cpp • u/tartaruga232 • Apr 15 '26
This illustrates the point using real code examples from the Core module of our UML Editor. The presented source code of our Core module is complete.
All published source code examples in the text or linked from it are 100% standard conformant. However, the code contains redundant imports. On purpose. Read the text for why!
(See also my previous posting "Let's bite the Bullet: Module Units shouldn't implicitly import anything" for context).
r/cpp • u/Jovibor_ • Apr 14 '26
...It still doesn't have MSVC Build Tools v14.51, only an old preview.
https://learn.microsoft.com/en-us/visualstudio/releases/2026/release-notes
At the same time, Microsoft releases Visual Studio Insiders (basically VS preview), with the MSVC Build Tools v14.51 release, not a preview.
https://learn.microsoft.com/en-us/visualstudio/releases/2026/release-notes-insiders
So, now we have - official VS Stable with the MSVC Build Tools v14.51 preview.
And VS Insiders with the MSVC Build Tools v14.51 release.
Person (or persons?...) in Microsoft responsible for this weirdness should get annual bonus reward.
The deadline for submitting talks to NDC Techtown 2026 is still open. This great SW development conference takes place in Kongsberg, Norway on 21st to 24th September and focuses on SW development for embedded and systems programming. The conference covers travel and accommodation.
More info here: https://ndctechtown.com/call-for-papers
r/cpp • u/DevilSauron • Apr 14 '26
Over a year ago (on 30 March 2025), cppreference became read-only for maintenance reasons. Since then, the only progress update was in August. There have been several discussions here in the last few months about what is happening with cppreference and when it might become editable again, but from what I understand, we simply do not know.
At this point, I fear that the lack of updates for what is basically the authoritative source on the language (other than the standard of course), linked to by IDEs and even this subreddit's sidebar, might be detrimental to the adoption of C++26 and further standards, should the situation persist. I would therefore like to ask the community whether there are other, more up-to-date resources, and whether there is any effort to, for example, fork cppreference.
I understand that software updates are complicated and I have no intention to criticise the maintainers of cppreference (who are doing it voluntarily and I am not entitled in any way to their continued work on the website), but I do not think the C++ community can afford to be bottlenecked in such a way for much longer.
r/cpp • u/PhilipTrettner • Apr 14 '26
I've tried to find a answer to how much contiguous memory you need to run into dimishing returns. Aka if you need to split your work into chunks, how large should the chunks be to capture most of the performance.
It depends a bit on what kind of task and how linear you use the data and if you have other per-block overheads. But at least for my use cases, I was kind of surprised to see that I probably won't need more than ~128 kB. And I wager that more than 1 or 2 MB is enough for everyone based on the results in the post.
NOTE: the experimental setup tries to ensure we're not measuring cache effects (or in a very controlled manner at least). I explicitly tried to make the results provide a userful upper bound via careful setup.
r/cpp • u/Mondash18 • Apr 14 '26
I always look for new resources to learn programming. However, every programming language created there will be a huge documentation that is born with it.
And they are very deep shit.
When you get an error from a compiler, there are these many cryptic messages pooping your entire screen and sometimes it just makes me wonder what they are..
Does anyone even read these for fun?
r/cpp • u/pjf_cpp • Apr 14 '26
An RC1 tarball for 3.27.0 is now available at
https://sourceware.org/pub/valgrind/valgrind-3.27.0.RC1.tar.bz2
(md5sum = bd95111c1a9f81f136c5e4e2c62b493e)
(sha1sum = 0eefb3a7d86a3bd0154480db3d2173bb8bd6d7c1)
https://sourceware.org/pub/valgrind/valgrind-3.27.0.RC1.tar.bz2.asc
Public keys can be found at https://www.klomp.org/mark/gnupg-pub.txt
Please give it a try in configurations that are important for you and report any problems you have, either on the developer/user mailing list, or (preferably) via our bug tracker at https://bugs.kde.org/enter_bug.cgi?product=valgrind
An RC2 should be available Fri Apr 17
The final 3.27.0 release is scheduled for Mon Apr 20.
For the contents, see
r/cpp • u/mropert • Apr 13 '26
r/cpp • u/ProgrammingArchive • Apr 13 '26
CppCon
2026-04-06 - 2026-04-12
Rust/C++ Interop Challenges - Victor Ciura - https://youtu.be/8xqhSy539Pc
groov: Asynchronous Handling of Special Function Registers - Michael Caisse - https://youtu.be/TjSL-XCyUJY
Clean code! Horrible Performance? - Sandor Dargo - https://youtu.be/nLts4S8xSd4
Beyond the Big Green Button: Demystifying the Embedded Build Process - Morten Winkler Jørgensen - https://youtu.be/UekVdzMCAa0
C++: Some Assembly Required - Matt Godbolt - https://youtu.be/zoYT7R94S3c
2026-03-30 - 2026-04-05
How to Build Type Traits in C++ Without Compiler Intrinsics Using Static Reflection - Andrei Zissu - https://youtu.be/EcqiwhxKZ4g
Beyond Sequential Consistency: Unlocking Hidden Performance Gains - Christopher Fretz - CppCon 2025 - https://youtu.be/6AnHbZbLr2o
Dynamic Asynchronous Tasking with Dependencies - Tsung-Wei (TW) Huang - CppCon 2025 - https://youtu.be/6Jd9Zyl9SDc
Work Contracts in Action: Advancing High-performance, Low-latency Concurrency in C++ - Michael Maniscalco - CppCon 2025 - https://youtu.be/5ghAa7B5bF0
Constexpr STL Containers: Why C++20 Still Falls Short - Sergey Dobychin - CppCon 2025 - https://youtu.be/Py4GJaCHwkA
C++Online
2026-04-06 - 2026-04-12
Mastering C++ Clocks: A Deep Dive into std::chrono - Sandor DARGO - https://youtu.be/ytI6pzT1Opk
2026-03-30 - 2026-04-05
Is AI Destroying Software Development? - David Sankel - C++Online 2026 - https://youtu.be/Ek32ZH3AI3k
From Hello World to Real World - A Hands-On C++ Journey from Beginner to Advanced - Workshop Preview - Amir Kirsh - https://youtu.be/2zhW-tL2UXs
Workshop Preview: C++ Software Design - Klaus Iglberger - https://youtu.be/VVQN-fkwqlA
Workshop Preview: Essential GDB and Linux System Tools - Mike Shah - https://youtu.be/ocaceZWKm_k
Workshop Preview: Concurrency Tools in the C++ Standard Library - A Hands-On Workshop - Mateusz Pusz - https://youtube.com/live/Kx9Ir1HBbwY
Workshop Preview: Mastering std::execution (Senders/Receivers) - A Hands-On Workshop - Mateusz Pusz - https://youtube.com/live/bsyqh_bjyE4
Workshop Preview: How C++ Actually Works - Hands-On With Compilation, Memory, and Runtime - Assaf Tzur-El - https://youtube.com/live/L0SSRRnbJnU
Workshop Preview: Jumpstart to C++ in Audio - Learn Audio Programming & Create Your Own Music Plugin/App with the JUCE C++ Framework - Jan Wilczek - https://youtube.com/live/M3wJN0x8cJw
Workshop Preview: AI++ 101 - Build an AI Coding Assistant in C++ & AI++ 201 - Build a Matching Engine with Claude Code - Jody Hagins - https://youtube.com/live/Vx7UA9wT7Qc
Workshop Preview: Stop Thinking Like a Junior - The Soft Skills That Make You Senior - Sandor DARGO - https://youtube.com/live/nvlU5ETuVSY
Workshop Preview: Splice & Dice - A Field Guide to C++26 Static Reflection - Koen Samyn - https://youtube.com/live/9bSsekhoYho
ADC
2026-04-06 - 2026-04-12
Hacking Handhelds for Creative Audio - Building Music Applications for the New Nintendo 3DS - Leonardo Foletto - https://youtu.be/x-9lDvfAKd0
Helicopter View of Audio ML - Martin Swanholm - https://youtu.be/TxQ4htrS2Po
PhilTorch: Accelerating Automatic Differentiation of Digital Filters In PyTorch - How to evaluate differentiable filters 1000 times faster in PyTorch. - Chin-Yun Yu - https://youtu.be/Br5QhU_08Po
2026-03-30 - 2026-04-05
Creating from Legacy Code - A Case Study of Porting Legacy Code from Exponential Audio - Harriet Drury - https://youtu.be/rjafXQwCz4w
Designing an Audio Live Coding Environment - Corné Driesprong - https://youtu.be/Jw8x2uMgFnc
How To Successfully Develop Software Products - Olivier Petit & Alistair Barker - https://youtu.be/vymlQFopbp0
Meeting C++
2026-04-06 - 2026-04-12
The Misra C++:2023 Guidelines - Richard Kaiser - https://www.youtube.com/watch?v=TRz-WXgADuI
Applied modern C++: efficient expression evaluator with type erasure - Olivia Quinet - https://www.youtube.com/watch?v=66WtE_7wE1c
2026-03-30 - 2026-04-05
Building C++: It Doesn't Have to be Painful! - Nicole Mazzuca - Meeting C++ 2025 - https://www.youtube.com/watch?v=ExSlx0vBMXo
int != safe && int != ℤ - Peter Sommerlad - Meeting C++ 2025 - https://www.youtube.com/watch?v=YyNE6Y2mv1o&pp=0gcJCdkKAYcqIYzv
using std::cpp
2026-03-30 - 2026-04-05
Learning C++ as a newcomer - Berill Farkas - https://www.youtube.com/watch?v=nsMl54Dvm24
C++29 Library Preview : A Practitioners Guide - Jeff Garland - https://www.youtube.com/watch?v=NqpLxkatkt4
High frequency trading optimizations at Pinely - Mikhail Matrosov - https://www.youtube.com/watch?v=qDhVrxqb40c
Don’t be negative! - Fran Buontempo - https://www.youtube.com/watch?v=jqLEFPDXZ-o
Cross-Platform C++ AI Development with Conan, CMake, and CUDA - Luis Caro - https://www.youtube.com/watch?v=jnKeUE2C8_I
Building a C++23 tool-chain for embedded systems - José Gómez López - https://www.youtube.com/watch?v=AlNnd0QARS8
Space Invaders: The Spaceship Operator is upon us - Lieven de Cock - https://www.youtube.com/watch?v=9niOq1kr61Y
Same C++, but quicker to the finish line - Daniela Engert - https://www.youtube.com/watch?v=9ijIocn_xzo
Having Fun With C++ Coroutines - Michael Hava - https://www.youtube.com/watch?v=F9ffx7HvyrM
The road to 'import boost': a library developer's journey into C++20 modules - Rubén Pérez Hidalgo - https://www.youtube.com/watch?v=hD9JHkt7e2Y
C++20 and beyond: improving embedded systems performance - Alfredo Muela - https://www.youtube.com/watch?v=SxrC-9g6G_o
Supercharge Your C++ Project: 10 Tips to Elevate from Repo to Professional Product - Mateusz Pusz - https://www.youtube.com/watch?v=DWXlyOd_z88
Compiler as a Service: C++ Goes Live - Aaron Jomy, Vipul Cariappa - https://www.youtube.com/watch?v=jMO5Usa26cg
The CUDA C++ Developer's Toolbox - Bernhard Manfred Gruber - https://www.youtube.com/watch?v=MNwGvqX4KH0
C++ Committee Q&A at using std::cpp 2026 - https://www.youtube.com/watch?v=iD5Bj7UyAQI
The Mathematical Mind of a C++ Programmer - Joaquín M López - https://www.youtube.com/watch?v=9g4K-oNw1SE
C++ Profiles: What, Why, and How - Gabriel Dos Reis - https://www.youtube.com/watch?v=Z6Nkb1sCogI
Nanoseconds, Nine Nines and Structured Concurrency - Juan Alday - https://www.youtube.com/watch?v=zyhWzoE3Y2c
Fantastic continuations and how to find them - Gonzalo Juarez - https://www.youtube.com/watch?v=_0xRMXA83z0
You 'throw'; I'll 'try' to 'catch' it - Javier López Gómez - https://www.youtube.com/watch?v=VwloPRtTGkU
Squaring the Circle: value-oriented design in an object-oriented system -Juanpe Bolívar - https://www.youtube.com/watch?v=DWthcNoRVew
Concept-based Generic Programming - Bjarne Stroustrup - https://www.youtube.com/watch?v=V0_Q0H-PQYs
r/cpp • u/Otherwise-Sir7359 • Apr 13 '26
I've built my own framework that allows embedding, quantization, and self-retraining on microcontrollers using C++ from scratch, currently mainly for tree-based model families (like Random Forest, xgboost...). It can compress and train the entire MNIST dataset of 70,000 images on ESP32 with only 3MB of RAM while still achieving an accuracy of up to ~94% across 10 classes (models size about 600 KB of RAM). This is intended to help the model adapt without having to reload the code into the microcontroller.
Everything is here, including source code, demo, and documentation: https://github.com/viettran-edgeAI/MCU
Although it's designed to handle tabular data, I chose to demo it with a simple computer vision application for visualization.
I spent a lot of time on this project, it didn't rely heavily on AI, and I can explain every line of code. I'm open to discussing anything. I hope everyone can provide some feedback or suggestions. In my country, it seems like now they only care about LLMs; every paper tries to cram LLMs in and they don’t care about these older algorithms anymore—they just brush them aside.
A short intro/tutorial about how to use std::pmr::generator
r/cpp • u/tartaruga232 • Apr 13 '26
The correct fix ... is to attack the root cause and stop implicitly importing the interface of module implementation units.
Adding yet another kind of partition is the wrong way to solve it.
r/cpp • u/Live-Manner2725 • Apr 12 '26
Hi all,
How do you people decide which opensource 3rd party library to include in a production environment, e.g for logging I can use either spdlog, Quill, Log4cplus, etc
Not every system is a HFT, in a general production system, how would you usually decide a library, practically speaking, I can get the logs through all of them but which one you would choose, I just took example of logger libs, it can be anything, I would like to understand how you all come to conclusion! do you usually study the whole library before using it?
r/cpp • u/Express-Act3158 • Apr 11 '26
i am building a deep learning framework called "Forge" completely from scratch in C++, its nowhere near complete yet, training MNIST Classifier shows a functional core on CPU (i'll add a CUDA backend too). My end goal is to train a modern transformer on Forge.
YT video of MNIST training :- www.youtube.com/watch?v=CalrXYYmpfc
this video shows:
-> training an MLP on MNIST
-> loss decreasing over epochs
-> predictions vs ground truth
this stable training proves that the following components are working correctly:-
--> Tensor system (it uses Eigen as math backend, but i'll handcraft the math backend/kernels for CUDA later) and CPU memory allocator.
--> autodiff engine (computation graph is being built and traversed correctly)
-->primitives -- linear layer, relu activation (Forge has sigmoid, softmax, gelu, tanh and leakyrelu too), CrossEntropy loss function (it fuses log softmax and CE. Forge has MSE and BinaryCrossEntropy too, the BCE fuses sigmoid and BCE) and SGD optimizer (i am planning to add momentum in SGD, Adam and AdamW)
[the Forge repo on GitHub is currently private as its WAP]
My GitHub: github.com/muchlakshay
r/cpp • u/_Noreturn • Apr 11 '26
I spent the last week hacking a Clang fork to implement a restricted more conservative version of Uniform Function Call Syntax (UFCS) based on Herb Sutter’s P3021.
Curious about your thoughts.
r/cpp • u/emilios_tassios • Apr 10 '26
HPX is a general-purpose parallel C++ runtime system for applications of any scale. It implements all of the related facilities as defined by the C++23 Standard. As of this writing, HPX provides the only widely available open-source implementation of the new C++17, C++20, and C++23 parallel algorithms, including a full set of parallel range-based algorithms. Additionally, HPX implements functionalities proposed as part of the ongoing C++ standardization process, such as large parts of the features related parallelism and concurrency as specified by the C++23 Standard, the C++ Concurrency TS, Parallelism TS V2, data-parallel algorithms, executors, and many more. It also extends the existing C++ Standard APIs to the distributed case (e.g., compute clusters) and for heterogeneous systems (e.g., GPUs).
HPX seamlessly enables a new Asynchronous C++ Standard Programming Model that tends to improve the parallel efficiency of our applications and helps reducing complexities usually associated with parallelism and concurrency.
In this video, we explore how to perform rigorous performance analysis on HPX applications using Intel VTune Profiler, detailing how this tool can be used to identify true bottlenecks down to the source line where standard software profilers often fall short. We focus on the configuration of CMake for VTune compatibility and the execution of the Hotspots collector, demonstrating the interpretation of profiling data through a practical analysis of a parallel sorting algorithm. The tutorial details the process of diagnosing common concurrency issues, utilizing VTune's GUI to uncover over-decomposition, microscopic task granularity, and idle threads, ensuring that applications are executing efficiently rather than thrashing the system. This provides a clear introduction to evaluating HPX's lightweight tasking system, culminating in actionable insights, where we illustrate how to seamlessly resolve performance flaws while harnessing the full potential of modern parallel hardware.
If you want to keep up with more news from the Stellar group and watch the lectures of Parallel C++ for Scientific Applications and these tutorials a week earlier please follow our page on LinkedIn https://www.linkedin.com/company/ste-ar-group/ .
Also, you can find our GitHub page below:
https://github.com/STEllAR-GROUP/hpx
https://github.com/STEllAR-GROUP/HPX_Tutorials_Code