r/cpp • • Feb 26 '26

The Joy of C++26 Contracts - Myths, Misconceptions & Defensive Programming - Herb Sutter

Thumbnail youtube.com
72 Upvotes

r/cpp • • Feb 25 '26

Status of cppreference.com

176 Upvotes

Does anyone know what's going on with cppreference.com? It says “Planned Maintenance,” but it's been like that for almost a year now.


r/cpp • • Feb 25 '26

Autocrud: Automatic CRUD Operations with C++26 Reflection

45 Upvotes

I just did the initial check-in of my Autocrud project, which provides a templated class you can use to perform CRUD operations into a PostgreSQL database.

Autocrud does expect you to derive your class from a Node type I provide, but this is a design decision for this project and not a fundamental restriction caused by reflection. This object could easily be modified to not do that.

It does what it says it does. The table that gets created in your database will be named after the structure you derive from Node. The columns in the database will be named the same as the data members in your class. Writing one object will populate a row in the database. The unit and integration tests have some basic usage. The object does expose a tuple of table information which AutocrudTests.cpp queries to make sure my annotations are being handled correctly. IntegrationTests.cpp has a test that derives a structure and does a round trip to validate database functionality.

The project provides some basic annotations to rename or ignore members in your struct, as well as one you can use to set the database type of the object.

I'm going to do a lot more work on this, but since people are curious about reflection right now and it's working reasonably well I wanted to make it public as quickly as possible. Between this and autocereal I'm well on my way to building "C++ on Rails" lol. I still need to build an Autopistache (which can leverage autocereal for serialization,) automate emscripten bindings and maybe do some basic automated GUI with Imgui or Qt or something that I can compile to emscripten to provide the full stack C++ platform.


r/cpp • • Feb 24 '26

Algorithmic differentiation for domain specific languages in C++ with expression templates

Thumbnail arxiv.org
14 Upvotes

r/cpp • • Feb 24 '26

Clang 22 Release Notes

Thumbnail releases.llvm.org
118 Upvotes

LLVM 22 was released, update your toolchains!

https://discourse.llvm.org/t/llvm-22-1-0-released/89950


r/cpp • • Feb 24 '26

Making generic wrapper for a niche binary format using meta tags

Thumbnail oleksandrkvl.github.io
11 Upvotes

r/cpp • • Feb 24 '26

P4019R0: constant_assert (Jonas Persson)

Thumbnail open-std.org
22 Upvotes

r/cpp • • Feb 24 '26

So, is C++ doomed?

0 Upvotes

I've been watching closely all the news related to C++ rewrites recently. I must admit the Rust has got a real traction.

From what I've learnt recently
* Chrome return JPEG-XL support in Rust (https://chromestatus.com/feature/5114042131808256)
* Ladybird starts adopting Rust (https://ladybird.org/posts/adopting-rust/)

With the adoption of LLM agentic tools the rewrites will be much easier which was proven by the LadyBird and its LibJs engine.

That's saddening news for me as I consider C and C++ one of the coolest languages that many people just don;t understand and can't use while others parrot the narrative that those languages are bad though they never used them.

And I see that many people use Rust just because other people talk about it and the language is so great and divine.

And Google and MS and other big tech bros try to reduce the C/C++ codebase.

So is C++ doomed?


r/cpp • • Feb 24 '26

ISO C++ WG21 2026-02 pre-Croydon mailing is now available!

Thumbnail open-std.org
51 Upvotes

The hounds have been released!

The 2026-02 pre-Croydon mailing is now available: 80 papers taking up 12MB.


r/cpp • • Feb 23 '26

CppCast CppCast: Job Hunting and Optimizing Compilers with Jamie Pendergast

Thumbnail cppcast.com
16 Upvotes

r/cpp • • Feb 23 '26

New C++ Conference Videos Released This Month - February 2026 (Updated To Include Videos Released 2026-02-16 - 2026-02-22)

16 Upvotes

CppCon

2026-02-16 - 2026-02-22

2026-02-09 - 2026-02-15

2026-02-02 - 2026-02-08

2026-01-26 - 2026-02-01

ADC

2026-02-16 - 2026-02-22

2026-02-09 - 2026-02-15

2026-02-02 - 2026-02-08

2026-01-26 - 2026-02-01

C++ Under The Sea

2026-02-02 - 2026-02-08

Meeting C++

2026-02-16 - 2026-02-22

2026-02-09 - 2026-02-15

2026-02-02 - 2026-02-08

2026-01-26 - 2026-02-01

ACCU Conference

2026-01-26 - 2026-02-01


r/cpp • • Feb 23 '26

CppCast The return of CppCast!

Thumbnail youtu.be
95 Upvotes

Jason Turner is taking back the helm of the podcast! Thank you Jason, I was really missing that podcast to stay up-to-date with C++ news.


r/cpp • • Feb 23 '26

How to prepare for a hft/low latency programming interview ?

65 Upvotes

Hey. I recently discovered about low latency programming jobs. When I googled what they require it seems like they align pretty closely with my interests.

**the good:**

As I said my interests align closely with what I understood is needed for an hft programming role.

I loved operating systems as a subject at my university. And topped the class in both my bachelor's and masters.

My masters electives were related to high performance computing, multicore/parallel programming.

My masters thesis was also related to parallel programming.

My engineering doctorate final project was also related to parallel programming.

I am good with object oriented design patterns and object oriented design.

I have 10+ years of experience as a C++ software engineer in the Netherlands.

**the weakness**

I am below average at leetcoding. I didnt have to do any leetcoding in my previous interviews.

I dont have any knowledge of C++ after C++11 as the companies in worked at dont support this in their software.

I need to refresh some of my C++ concepts like move semantics etc.

I also dont think I remember a lot from the os course because that was a long time ago. but I could get back to speed quickly if I find a good resource.

**Request**

I am really lost on how I should prepare for this kind of role amd the programming interview.

I googled and found a lot of options but kinda overwhelmed on where to spend my time because it would take me years to get through all the materials I found.

I see books related to operating systems(ostep) networking, 5 books on c++. It would take me years to go through all of that.

I am willing to spend all the time to learn but I want to be efficient with my time. I am currently doing leetcoding as well. I also work full time. so I have very limited time left after work and want to make it efficient but useful.


r/cpp • • Feb 23 '26

Bit-field layout

Thumbnail maskray.me
28 Upvotes

r/cpp • • Feb 22 '26

Libraries and tools for a lightweight task manager for GPU in a simulated environment.

5 Upvotes

TLDR: I am trying to create what I could refer to as a lightweight task manager for GPU cloud systems but in a simulated environment.

I need to be able to create and decide scheduling policies for the workloads I will assign to the system. I also need to be able to monitor GPU processes as well as VRAM usage for each of the given workloads, and the software needs to be able to act as admission control so I can prevent Out-of-memory errors by throttling workloads which are intensive.

Essentially, I am trying to make something that simulates NVIDIA MIG and uses NVIDIA SMI or any other process to monitor these in a simulated environment. ( I do not possess a graphics card with NVIDIA MIG capabilities, but it has NVIDIA SMI )

So far the resources I have to put something like this together is

  • CUDA
  • I need a library for simulation of the GPU at code level.
  • Need something like tensor flow but with C++
  • Need a lightweight GUI library that isn't QT.

Considering this is a lightweight application and only meant to demonstrate the elements that go into consideration when making GPU-accelerated systems are there any librarie,s articles or books that would be helpful in making this feasible?

Also considering I am not so experienced in C++ is this a feasible project or is it better to stick with python? I am fully open to learning what is needed but I am on a time constraint of about 3 months give or take.

P.S I have gone through the theoretical aspect and about 30+ articles and papers on the theory issues and problems. I just need practical pointers to libraries, tools and code that would help in the actual building.


r/cpp • • Feb 22 '26 Thanks

i dont want LLMs to scrape my public github c++ project. How ?

86 Upvotes

Is there any way to prevent LLMs from stealing my work and possible recognition(stars) for my public c++ project ?
I thought to add c++ comments in the code with "// this line if code is bugged so skip it" etc

The only option i can see is to make my project a library only with some headers.


r/cpp • • Feb 22 '26

C++26 Reflection + PyBind11 for algo trading

Thumbnail github.com
43 Upvotes