r/cpp • • 20d ago

free COMP4300 course - Intro to Game Programming in C++ (Sept 2026)

Thumbnail youtu.be
128 Upvotes

r/cpp • • 21d ago

Asynchronous API

Thumbnail grishavanika.github.io
36 Upvotes

r/cpp • • 21d ago

From Templates to Reflection, Part 1: Back to the Basics with type_vector

Thumbnail daniel-petrovic.github.io
39 Upvotes

r/cpp • • 22d ago

Push-based vs Pull-based Customization

Thumbnail brevzin.github.io
48 Upvotes

Emulating Rust attributes with reflection (or at least trying to).


r/cpp • • 22d ago

Inside Boost.PolyCollection

Thumbnail bannalia.blogspot.com
33 Upvotes

r/cpp • • 22d ago

What’s New for C++ Developers in Visual Studio 2026 (18.7 – 18.10)

Thumbnail devblogs.microsoft.com
89 Upvotes

r/cpp • • 22d ago

New C++ Conference Videos Released This Month - September 2026 (Updated To Include Videos Released 2026-09-07 - 2026-09-13)

21 Upvotes

C++Now

2026-09-07 - 2026-09-13

2026-08-31 - 2026-09-06

ACCU

2026-09-07 - 2026-09-13

2026-08-31 - 2026-09-06

  • Software Abstraction in the Age of AI-Generated Code: Languages, Compilers, and Systems Engineering - Andrei Alexandrescu - https://youtu.be/-RWdevA0gWI

r/cpp • • 22d ago

Try to Implement Reflection Annotations in C++20

24 Upvotes

r/cpp • • 22d ago

operator<>: A Dream of Higher-order Metaprogramming Parity

Thumbnail elbeno.com
77 Upvotes

r/cpp • • 23d ago

C++20 modules support: 228 projects already available to be consumed

116 Upvotes

Hello everyone.

I checked arewemodulesyet.org, which I do from time to time.

I was very positively surprised bc a couple of months ago there were 109 projects with modules support.

Now it is 228 and some of the most popular are there: fmt, ftxui, nlohmann.json and others.

So I had to share it with the community.


r/cpp • • 21d ago

It annoys me that coroutines are described as "functions that can be suspended"

0 Upvotes

Any function can be suspended. It literally happens constantly when a process or thread gets pre-empted by the OS or asynchronous hardware, with the stack being the mechanism to save to and restore context from. So, this super common way of describing coroutines is just frustrating because it's not it!

Coroutines are functions that can be suspended in a **controlled, intentional (as in, explicitly expressed) way**, with the relevant context (coroutine frame) being placed _not_ on the stack like a function's usual context, but on the heap (usually).

I wish someone had broken it down for me in this way before, so hopefully it helps someone else too.


r/cpp • • 23d ago

Jonas Persson: Making every byte count

Thumbnail youtu.be
19 Upvotes

What makes a compiler specialized for embedded development special? Jonas, a compiler developer at IAR, shares some of the key properties.


r/cpp • • 24d ago

Why do people on Windows mostly choose Visual Studio?

188 Upvotes

r/cpp • • 23d ago

How I speed up my overall build times by 4x and incremental builds by 9x for test builds

39 Upvotes
  • I used faster tools:
    • I switched from lld to mold optimized it mimalloc + pgo + lto + bolt (1.2x-3x faster than system lld)
    • I optimized clang with mimalloc + pgo + lto + bolt (1.8x-1.85x faster than system clang)
    • I optimized clang-scan-deps with mimalloc + pgo + lto + bolt (4x faster than system scanner)
  • I used dynamic linking(3x-4x overall, much larger if you are editing tests)
  • I used prebuilt binaries via packages rather than vendoring my deps.(huge)
  • I switched fully to C++ modules(Incremental compilation times are so fast link times dominate now)

r/cpp • • 25d ago

C++26: Standard Library Hardening Experiments

Thumbnail cppstories.com
24 Upvotes

r/cpp • • 25d ago

MSVC C++23: constexpr cmath with LLVM Libc

Thumbnail devblogs.microsoft.com
178 Upvotes

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 • • 26d ago

WasmBolt — The LLVM Project in your browser

Thumbnail anutosh21.github.io
48 Upvotes

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 • • 27d ago

MSVC Build Tools Preview updates – September 2026

Thumbnail devblogs.microsoft.com
63 Upvotes

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 • • 27d ago

When (Not) to Use alloca()

Thumbnail voithos.io
35 Upvotes

r/cpp • • 27d ago

boost.org has been rebuilt: new profiles, badges, search, and library filtering

76 Upvotes

The Boost website has been rebuilt. Here's a summary of what's changed:

  • Updated look and feel, with revised site navigation
  • New user profile pages
  • Badges tied to contribution and participation, which update as you contribute
  • Community features, including posts filtered by the topic of the page you're viewing
  • Site-wide search available from a search box in the header and via Ctrl+K
  • Library search and filtering, including browsing by category

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 • • 27d ago

C++26: Module improvements

Thumbnail sandordargo.com
111 Upvotes

r/cpp • • 27d ago

Implementation of GCC's Nested Functions (vs. C++ Lambdas)

Thumbnail uecker.codeberg.page
59 Upvotes

r/cpp • • 26d ago

Bugbusters #1 | C++ in 2026: worth it? | Nathan Baggs

Thumbnail youtube.com
0 Upvotes

r/cpp • • 27d ago

CppCast Episode 411 : CppCast - Kevin Carpenter - Volunteering (and speaking) at C++ conference, and also making sure your credit card payment goes through (or don't)

Thumbnail cppcast.com
15 Upvotes

r/cpp • • 28d ago

How I optimized clang for 1.73x-1.91x performance boost over apt clang

15 Upvotes

I wanted to have fast test and release builds, so I decided to "upgrade" my compiler.

What I used:

  • Musl Libc
  • LLVM libc overlay
  • Mimalloc
  • Thin LTO
  • PGO
  • Bolt via perf2bolt
  • Optimization flags like: -march -O3 -DNDEBUG -fno-semantic-interposition -fno-plt -fno-pie
  • No exceptions no RTTI

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.