r/cpp • • 1d ago

C++ Show and Tell - December 2026

19 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 • • Oct 02 '26

C++ Jobs - Q4 2026

46 Upvotes

Rules For Individuals

  • Don't create top-level comments - those are for employers.
  • Feel free to reply to top-level comments with on-topic questions.
  • I will create top-level comments for meta discussion and individuals looking for work.

Rules For Employers

  • If you're hiring directly, you're fine, skip this bullet point. If you're a third-party recruiter, see the extra rules below.
  • Multiple top-level comments per employer are now permitted.

    • It's still fine to consolidate multiple job openings into a single comment, or mention them in replies to your own top-level comment.
  • Don't use URL shorteners.

    • reddiquette forbids them because they're opaque to the spam filter.
  • Use the following template.

    • Use **two stars** to bold text. Use empty lines to separate sections.
  • Proofread your comment after posting it, and edit any formatting mistakes.
  • Check if your comment is visible in Incognito mode, after waiting a few minutes.

    • If not, it was probably automatically removed, which happens frequently for new accounts. Send modmail, otherwise we might not notice quickly.

Template

**Company:** [Company name; also, use the "formatting help" to make it a link to your company's website, or a specific careers page if you have one.]

**Type:** [Full time, part time, internship, contract, etc.]

**Compensation:** [This section is optional, and you can omit it without explaining why. However, including it will help your job posting stand out as there is extreme demand from candidates looking for this info. If you choose to provide this section, it must contain (a range of) actual numbers - don't waste anyone's time by saying "Compensation: Competitive."]

**Location:** [Where's your office - or if you're hiring at multiple offices, list them. If your workplace language isn't English, please specify it. It's suggested, but not required, to include the country/region; "Redmond, WA, USA" is clearer for international candidates.]

**Remote:** [Do you offer the option of working remotely? If so, do you require employees to live in certain areas or time zones?]

**Visa Sponsorship:** [Does your company sponsor visas?]

**Description:** [What does your company do, and what are you hiring C++ devs for? How much experience are you looking for, and what seniority levels are you hiring for? The more details you provide, the better.]

**Technologies:** [Required: what version of the C++ Standard do you mainly use? Optional: do you use Linux/Mac/Windows, are there languages you use in addition to C++, are there technologies like OpenGL or libraries like Boost that you need/want/like experience with, etc.]

**Contact:** [How do you want to be contacted? Email, reddit PM, telepathy, gravitational waves?]

Extra Rules For Third-Party Recruiters

Send modmail to request pre-approval on a case-by-case basis. We'll want to hear what info you can provide (in this case you can withhold client company names, and compensation info is still recommended but optional). We hope that you can connect candidates with jobs that would otherwise be unavailable, and we expect you to treat candidates well.

Previous Post


r/cpp • • 19h ago

I don’t even hate AI, I just feel a little sad about being obsolete

428 Upvotes

I felt cool and smart that I understand low level programming, pointers and memory management and all that stuff. I still program for fun as a hobby but if I start thinking about this stuff I lose my momentum. I like to write my code like an engineer and I am very specific about how I write it. I think AI has good uses for the future but it just makes me sad to think about how anyone can AI generate code and it makes my deep understanding not as cool anymore. My projects matter less, anyone could just instantly generate the code for the game I spent years on. I’m not special anymore nor are my projects. It’s just a little sad. I think about C++26 and C++29, is anyone even going to care about these things anymore with the obsolescence of people who use these features by hand… idk. I get in ruts like this someone and I just have to ignore it. I want to hear everyone else’s opinions especially ones who are very opinionated about programming features and care about their code very much like I do.

Sometimes though I think about ways I program that an AI wouldn’t do, such as my excessive and opinionated use of unsigned integers with explicit cstdint types and the lowest possible bit amount for the variable, while AI will just use standard int. Another one is how I try to avoid dynamic allocations whenever possible, even for silly things like microoptimiaztions, for file paths I’ll do a 4096 stack buffer over dynamic allocation. Makes me feel like I have somewhat of a voice.


r/cpp • • 1h 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 • • 56m 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 • • 1d ago

Bottom Up Coroutines in C++

Thumbnail forcedrift.github.io
48 Upvotes

r/cpp • • 1d ago

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

12 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 • • 23h ago

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

Thumbnail reddit.com
5 Upvotes

For anyone interested.


r/cpp • • 1d ago

Pattern Matching for C++29

Thumbnail mpark.github.io
226 Upvotes

r/cpp • • 1d ago

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

Thumbnail developercommunity.visualstudio.com
5 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 • • 19h 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 • • 2d ago

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

25 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 • • 1d 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 • • 2d ago

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

63 Upvotes

r/cpp • • 2d 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 • • 4d ago

What do you think about modules?

33 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?


r/cpp • • 4d ago

RFC: Using external modules or CPS with Visual Studio

6 Upvotes

Seeking feedback on this suggestion I'll hopefully make to devcom. I barely know what I'm doing, so I probably missed something. Do things work the way I think they do...

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

What is the intended way to consume the modules of an external library? I'm not sure. With header-based libs, you just add to the include and lib paths, and away you go. Maybe stick that stuff in a props file. But for external modules? Are you supposed to reference a pre-built IFC directly?

Instead, external module sources could be discovered and built as needed by the project system. So, external modules would retain the familiar user experience of headers. You just point the project at module sources and it should Just Work.

It would also mean that the library's CMake script would not need a separate compilation of modules to a static library or IFC. A binary distribution probably shouldn't contain an IFC anyway as they may be so much more compiler-dependent than ABI.

Method 1

Add a "additional module source directories" project setting. The build system will lookup all cppm/ixx files in that directory to satisfy imports.

Method 2

Go all-in on the Common Package Specification. Add a "CPS files" project setting. The build system will collect and maybe cache information from listed CPS files to resolve includes and imports, and add additional compile settings. CPS files may use https://www.open-std.org/jtc1/sc22/wg21/docs/papers/2024/p3286r0.pdf to list modules.

And the build system can automatically link the libraries listed in those CPS files. Maybe only if a header or module from them is used.

The advantage of this method is that it's a single setting for a library. You'd only need to list the CPS in project settings, and nothing else. The CPS provides the include paths, the libs, preprocessor defs, and module sources.

Method 3

Dedicated external CPS project type. Like method 2, but the project would make available the listed CPS packages, their includes, libs, modules, and preprocessor defs, to referencing projects through the project reference system. Such a project would also act as a central place to put the compiled modules rather than possibly duplicating them among referencing projects.


Or some other method. In essence, external modules should be easy to use, and CPS files should be the future, as maybe exported by CMake. So the project system should handle that stuff in some way.

Also, the project reference system should try to reuse compiled modules if possible, just like with import std.


r/cpp • • 4d ago

Who cares about the new C++ standard?

Thumbnail a4z.noexcept.dev
0 Upvotes

What makes a new C++ standard worth adopting in your field?


r/cpp • • 6d ago

Clang -fmodules-driver: C++20 modules and import std without an external build system

39 Upvotes

Earlier this year, Clang added basic support for building simple programs that use Clang modules or C++20 modules directly from the Clang driver, without an external build system. This includes using the std/std.compat modules: https://godbolt.org/z/sahYMsxna

The documentation landed yesterday (although the feature is already in Clang 23), so I thought I would advertise it here now: https://clang.llvm.org/docs/StandardCPlusPlusModules.html#compiling-modules-using-the-clang-modules-driver

This is still a very experimental feature, and it doesn't support caching yet. Currently, all modules used are recompiled on each invocation, which is especially painful with the large C++ Standard library modules.

The main purpose of this isn't to compete with dedicated build systems such as CMake, but to make modules more accessible. I hope this makes it easier to use modules in smaller examples, and maybe even in some people's first Hello World programs.

(This was part of a GSoC project I did in 2025. Happy to answer any questions!)


r/cpp • • 6d ago

toml++ 3.5.1 released

79 Upvotes

Hiya folks,

I've finally come back to maintaining toml++ after a couple of years focusing on other things, and am happy to share that v3.5.1 is now released! Highlights since v3.4.0:

  • Support for TOML v1.1.0 🎉️
  • Support for C++20 std::chrono date-time types
  • Support for C++20 modules with import tomlplusplus
  • Faster parsing (~2x, ~5x for string-heavy docs)
  • Faster formatting (~1.5x, ~3x for float-heavy docs)
  • Faster compiles and smaller binaries for some configurations
  • Lots of fixes for various issues

Full changelog here.

"What about v3.5.0?"

3.5.0 and 3.5.1 are exactly the same library. The patch bump was necessary because I'm rusty and messed up the tagging for v3.5.0, so I just made a new release right on top of it to keep things safe for packaging systems.

Also this will probably the last feature bump for the v3.x series of releases. There's a whole load of larger structural and design things I want to get to that require breaking changes, so I'll start cooking on those and hopefully have that out as a v4 next year some time. Until then it'll just be patch bumps.


r/cpp • • 8d ago

Búzios Trip Report

34 Upvotes

I wrote up a short report from the Búzios meeting and where things stand with C++26:

https://cppalliance.org/newsmedia/news/b%C3%BAzios-trip-report-what-the-c26-ballot-taught-us/


r/cpp • • 8d ago

4 filesystem performance traps in the standard library · Mathieu Ropert

Thumbnail mropert.github.io
76 Upvotes

I've been optimizing startup times on my project lately. Some of it came down to file I/O and some bits of the standard library I consider to be potential traps. Here's a writeup.


r/cpp • • 8d ago

Prediction c++26

50 Upvotes

Since there's no kalshi market for c++ standards, put your predictions below for the upcoming second dis.


r/cpp • • 9d ago

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

17 Upvotes

C++Now

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-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-16 - 2026-11-22

2026-11-09 - 2026-11-15

ADC

2026-11-16 - 2026-11-22

2026-11-09 - 2026-11-15

2026-11-02 - 2026-11-08

2026-10-26 - 2026-11-01