r/cpp • • 4d ago

C++ Show and Tell - December 2026

23 Upvotes

Use this thread to share anything you've written in C++. This includes:

  • a tool you've written
  • a game you've been working on
  • your first non-trivial C++ program

The rules of this thread are very straight forward:

  • The project must involve C++ in some way.
  • It must be something you (alone or with others) have done.
  • Please share a link, if applicable.
  • Please post images, if applicable.

Last month's thread: https://www.reddit.com/r/cpp/comments/1xo0gru/c_show_and_tell_november_2026/


r/cpp • • 7h ago

What C++ library do you wish existed but hasn’t been created yet?

0 Upvotes

r/cpp • • 7h ago

simdjson Version 5.4.0 Released

Thumbnail github.com
15 Upvotes

r/cpp • • 13h ago

InsideC++26491, The Module Story

Thumbnail youtu.be
10 Upvotes

With CMake's support for import std no longer experimental, we thought it was a good time to talk about modules.
Gabriel Dos Reis joins us at InsideC++ to discuss the original design goals, the history of standardization, the compromises, the tooling challenges, and what comes next.


r/cpp • • 1d ago

Meeting C++ Meeting C++ Blogroll 555

Thumbnail meetingcpp.com
8 Upvotes

r/cpp • • 2d ago

Wolaz: Protobuf in non-dynamic-allocating C++

Thumbnail github.com
49 Upvotes

Protobuf is the most popular serialization format, but it has always been difficult to use Protobuf in in embedded systems because all of the conforming C++ Protobuf implementations require dynamic memory allocation.

Wolaz is the first mostly-conforming C++ Protobuf implementation which uses only stack memory. It works by the "lazy view" technique on the I/O buffer, also known as "zero-copy."


r/cpp • • 2d ago

Terrible tips for a C++ developer: 2026 edition, Part 2

Thumbnail pvs-studio.com
16 Upvotes

Another part of terrible tips for C++ developers. Part 1


r/cpp • • 2d ago

NRVO from compilers' perspective

Thumbnail thisnotes.dev
26 Upvotes

Hey. I've recently presented at Meeting C++ 2026 with a talk about NRVO. While you wait for the recording being available, you can check text version of the talk on my blog.

Also I have newsletter about C++, performance and backends: https://thisnotes.substack.com/


r/cpp • • 3d ago

Video: From Simula to C++ (Bjarne Stroustrup)

Thumbnail cs.au.dk
18 Upvotes

r/cpp • • 3d ago

Quick Bench has moved to Compiler Explorer

Thumbnail quick-bench.com
93 Upvotes

r/cpp • • 3d ago

How to Generate C++ Docs Straight from Clang with MrDocs

Thumbnail youtube.com
0 Upvotes

This is not just about an interesting topic, since I guess most of us have struggled with dogygen and are wishing for a better alternative, but also an amazingly creative way to release a tech talk (cppcon) video!


r/cpp • • 3d ago

notweerdmonk / notweerdmonk.github.io

Thumbnail notweerdmonk.github.io
0 Upvotes

I recently wrote an article about formatted extraction using input streams in C++.


r/cpp • • 3d ago

Latest News From Upcoming C++ Conferences (2026-12-02)

7 Upvotes

This is the latest news from upcoming C++ Conferences. You can review all of the news at https://programmingarchive.com/upcoming-conference-news/

TICKETS AVAILABLE

The following conferences currently have tickets available to purchase

  • C++Online (10th – 12th March) – Tickets will be available soon but you can register your interest here – http://eepurl.com/i0ZqOc or find out more about the event here https://cpponline.uk
  • [NEW] ACCU On Sea (29th June – 2nd July 2027) Tickets both for the main conference and for pre-conference workshops can be found at https://accuonsea.uk/. You can also become a member of ACCU to get discounted rates to both the main conference and workshops.

OPEN CALL FOR SPEAKERS

  • C++Online Call For Workshops – C++Online are looking for instructors to run online workshops and training courses from April – June 2027 with a 50% revenue share being offered. Find out more including how to apply at https://cpponline.uk/call-for-workshops/. All workshops will be reviewed as they are submitted
  • [NEW] C++Now Call For Speakers – Anyone interested in speaking at C++Now 2027 which is scheduled to take place from May 17th – 21st has until February 1st to submit a proposal. Find out more at https://cppnow.org/announcements/2026/11/2027-call-for-submissions/

OTHER OPEN CALLS

  • [NEW] C++Online Call For Reviewers – C++Online are looking for people to review the talks that were submitted for their call for speakers. You can make an account and start reviewing talks by visiting https://speak.cpponline.uk/

TRAINING COURSES AVAILABLE FOR PURCHASE

There are no training courses available for purchase

OTHER NEWS

  • [NEW] C++Online Call For Speakers Closed – Submissions for C++Online Call For Speakers have now closed. However, they are still taking workshop submissions.
  • [NEW] Subscribe to the Meeting C++ YouTube Channel – Meeting C++ took place last week and videos from the event have already started to be released. Subscribe to their YouTube channel today so you are notified when new videos are available https://www.youtube.com/@MeetingCPP

r/cpp • • 3d ago

Why we shouldn't want a remote package registry, universal package manager or a binary toolchain orchestrator

0 Upvotes

Hi, as most of you now, we get cargo good cmake bad posts and comments here nearly every week.

I want to write a definitive post to answer these criticisms. In this post I'm going to argue for a decentralized approach instead, and will try to list some cons and pros of this approach.

Cargo is the package manager of the rust language, it stores packages in source form in a remote registry called crates.io, It also sort of acts as a build system, as you invoke it directly, rather than calling the package manager first then the build system. The problem with this approach is that you don’t own sources, you don’t know about licenses. If one of your packages break, trying to fix it is very annoying. Also builds are very slow, since you don’t have local binary cache for packages. Additionally, unlike a sane dependency model as proposed by Titus Winters. Cargo relies on semver. This means your dependency tree will not scale and will be hard to maintain.

Rustup is a toolchain orchestrator tool that downloads compiler, stdlib and various other tools from the internet.

It seems very nice to be able to setup a toolchain in seconds, as opposed to doing that with c++ which takes very long.

The drawback of this approach is the lack of knowledge about dependencies of your tools wnd especially stdlib. You need to know what version of xcode or msvc you app is compiled against.

What to do then?

We need a decentralized solution, organizations should clone their deps from a remote and write package recipes for them, we need some sort of organization to collaborate and several standards to make this easier, such as a binary package format.

Cargo and rustup are currently more closer to web technologies in toolchain departmant than c++, I don’t see why everyone is so obsessed about it. There is a new slop project written on it every minute, and we think that's a good thing. It is not, it made library quality very questionable.

Wrote on my phone so probably a lot of typos.


r/cpp • • 4d ago

Local models for C++: Qwen3.8-27B FP8 vs QFN IQ4_XS

Thumbnail reddit.com
5 Upvotes

For anyone interested.


r/cpp • • 4d ago

Less Code Doesn't Mean Faster Code

0 Upvotes

Take, for example, a simple reduction: summing all the elements in an array...

template<typename T>
T vector_reduce_simple(T *src, size_t len, T initial)
{
    for(size_t i = 0; i < len; i++)
    {
        initial += src[i];
    }
    return initial;
}

Or this version:

template<typename T>
T vector_reduce_cpu(const T *src, size_t len, T initial /* = 0 */)
{
    while( len >= 4 ) {
        T r00, r01, r02, r03 ;
        r00 = src[0] ;
        r01 = src[1] ;
        r02 = src[2] ;
        r03 = src[3] ;
        
        r00 += r02 ;
        r01 += r03 ;
        
        r00 += r01 ;

        initial += r00 ;

        len -= 4 ;
        src += 4 ;
    } // while
    while( len >= 2 ) {
        T r00, r01 ;
        r00 = src[0] ;
        r01 = src[1] ;
        
        r00 += r01 ;

        initial += r00 ;

        len -= 2 ;
        src += 2 ;
    } // while
    while( len >= 1 ) {
        T r00 ;
        r00 = src[0] ;

        initial += r00 ;

        len -= 1 ;
        src += 1 ;
    } // while

    return initial ;
}

On an i9 CPU, with T being 'double', in optimal cases (i.e., a length of about 2000-7000), the longer version runs 4x faster when compiled with gcc and -O3. Why?

Even going back to the 1980s, with the 68882 FPU, floating-point units could perform operations in parallel. In the shorter case, that parallelism is defeated by the accumulation occurring solely through the 'initial' variable.

By introducing more variables, the additions can occur in parallel. The compiler also optimizes memory by interleaving variable loads with additions, which can also run in parallel.

So what's the takeaway?

  • Just turning on -O3 isn't enough
  • It pays to be aware of the hardware you're going to run on

The deep dive: https://github.com/AndrewOfC/vector_reduction


r/cpp • • 4d ago

New C++ Conference Videos Released This Month - November 2026 (Updated To Include Videos Released 2026-11-23 - 2026-11-29)

13 Upvotes

C++Now

2026-11-23 - 2026-11-29

2026-11-16 - 2026-11-22

2026-11-09 - 2026-11-15

2026-11-02 - 2026-11-08

2026-10-26 - 2026-11-01

ACCU

2026-11-23 - 2026-11-29

2026-11-16 - 2026-11-22

2026-11-09 - 2026-11-15

2026-11-02 - 2026-11-08

2026-10-26 - 2026-11-01

CppCon

2026-11-23 - 2026-11-29

2026-11-16 - 2026-11-22

2026-11-09 - 2026-11-15

ADC

2026-11-23 - 2026-11-29

2026-11-16 - 2026-11-22

2026-11-09 - 2026-11-15

2026-11-02 - 2026-11-08

2026-10-26 - 2026-11-01


r/cpp • • 4d ago

Visual Studio/MSBuild should have a way to easily consume modules and/or CPS from external libraries

Thumbnail developercommunity.visualstudio.com
7 Upvotes

Well, there it is. Maybe it'll go somewhere, maybe not. Hopefully, it would be a step towards some form of standard package support (with the packages acquired and built through some other means). Maybe also, VS projects could deploy to CPS. CPS all the things.


r/cpp • • 4d ago

Bottom Up Coroutines in C++

Thumbnail forcedrift.github.io
63 Upvotes

r/cpp • • 5d ago Bravo

Pattern Matching for C++29

Thumbnail mpark.github.io
251 Upvotes

r/cpp • • 5d ago

Comprehensive C++ Logging Benchmarks – 2026 Update & Quill v14

29 Upvotes

Benchmarks · GitHub

The updated benchmarks compare 11 C++ logging libraries on Linux (Intel and AMD) and Windows, covering call latency, throughput and compile times.

Quill, an asynchronous low-latency C++17 logging library that I maintain, has also reached v14.

As always, feedback is welcome!


r/cpp • • 5d ago

Specific features you look for in a logger

0 Upvotes

For the past months I've been developing a c++20 async logging library similar in architecture to Quill or fmtlog. It started out just as a small project mostly for learning more about multithreading and lock-free algorithms, but then it grew to be pretty competitive in feature set and performance, so I decided to try and release it.

It's not ready yet but it's getting there. Performance wise it either beats or matches Quill in frontend latency depending on the cpu, and backend throughput is consistently about twice as high partly thanks to c++20 consteval. Feature wise it is much slimmer than Quill obviously, but that could be an advantage for compile times and general ease of use and configuration (I've focused a lot on making configuration easy).

Now to my question: Outside of the standard feature set like levels, level filtering, rolling file sinks, etc, do you look for any specific features in a logging library? Maybe some specific sink type, structured logging to a niche format, more advanced runtime log filtering (for example filtering on file, named log statement groups, or even individual statements), or something else that comes to mind.

I realise logging is a very mature field and that most things can be done in the popular libraries, but if there's still a feature you want but don't see very often I'd love to know.


r/cpp • • 5d ago

What are all different industries C++ developers works mostly? And changing industry in C++ niche is possible?

67 Upvotes

r/cpp • • 7d ago

What do you think about modules?

34 Upvotes

I see lot of people don't like modules how they are now can they can be improved and what can be suitable solution what do you think?