Topic

C++

C++ news covering modern standards, performance optimization, game engines, and systems programming. Our digest curates RAII patterns, template metaprogramming, and memory safety discussions from developer communities.

What this topic tracks

  • Language releases and proposals
  • Libraries, tooling, and ecosystem updates
  • Performance, idioms, and production lessons

C++ · 153 stories

Recent stories

Each story's summary, with the places it was discussed.

Summaries are written by AI from the linked sources. Open the source for full context.

13 stories

tailslayer: Library for reducing tail latency in RAM reads

github.com · 5 Apr

C++ · Low-Level Programming · Performance

Tailslayer is a C++ library designed to mitigate DRAM refresh-induced tail latency by replicating data across independent memory channels.

It utilizes hedged reads to fetch data from the fastest responding replica. The library supports customizable signal and work functions, providing developers with a high-performance tool to optimize memory read operations on hardware platforms like AMD, Intel, and Graviton.

edgcpp/compiler

github.com · 30 Sept

C · C++ · Programming Languages

EDG Compiler Project is an open-source C/C++ compiler centered on a highly compatible, configurable EDG front end with extensive documentation and bug emulation across Clang, GCC, and MSVC.

It also provides C and C++ back ends, a prelinker, minimal runtime support, intermediate-language tools, a name demangler, and development utilities.

Cpp2Rust: Automatic Translation of C++ to Safe Rust

github.com · 10 Jul

C++ · Programming Languages · Rust

Cpp2Rust is a syntax-driven tool that automatically translates C++ code into safe Rust using Clang's AST.

By utilizing the libcc2rs runtime library to handle pointers, it ensures safety through reference counting while offering an optional unsafe mode. The tool integrates with CMake, supports complex projects via compile_commands.json, and produces clean Rust code through rustfmt.

Balloting has completed for C++26. Unfortunately it was Disapproved

linkedin.com · 24 Oct

C++ · Programming Languages

Balloting for C++26 ended in disapproval: 12 of 20 P-members supported it (60%, below the required 66.66%), while 9 of 22 member bodies voted against it (41%, above the 25% limit).

Robert Seacord called it a sad day and hoped the community could move forward productively. Harald Achitz argued the rejection of a controversial, flawed contracts proposal showed a healthy national-body process and might prompt reconsideration of WG21’s “experts in the room” voting approach.

cloudflare/quiche

github.com · 21 Sept

C · C++ · Rust

Cloudflare’s quiche is an open-source Rust implementation of QUIC and HTTP/3, offering low-level packet, connection, timer, pacing, and stream APIs.

Applications provide I/O and event loops. It includes an HTTP/3 module, C/C++ FFI, command-line tools, and build support for Linux, Android, iOS, and Docker, with integrations across Cloudflare, Android, and curl.

The complement of true is true, except when it's false

dryperspective.github.io · 1 Oct

C++ · Programming Languages

C++ integral promotions create surprising and hazardous behavior for bitmask operations on enums. `bool` and smaller integer types promote to `int`, so complementing `true` produces `-2` and converting back yields `true`; GCC incorrectly handles some bool-backed enum cases, unlike Clang and MSVC.

Unscoped enums without fixed underlying types can also make casts after `~` or shifts invoke UB. P4313R1 should constrain supported enums and exclude `bool`; floating-point conversions expose further compiler inconsistencies.

jank reimagines C++ errors and gets an official native package repo

jank-lang.org · 4 Sept

C++ · DevOps · Programming Languages

jank has significantly improved its compiler experience with accurate runtime stack traces, dedicated error pages, and ranked C++ candidate diagnostics.

Its new Cargo-like native build system supports sandboxed dependency builds through Clojars, complemented by the jank commons package repository. Additional updates improve the REPL, macro performance, exception handling, and overall stability ahead of Clojure Conj 2026.

Making a game on a custom bytecode VM in 7 days and 3kB

laurent.le-brun.eu · 12 Aug

C++ · Programming Languages · Python

A developer participated in the Langjam Gamejam by building a 3kB shoot 'em up game on Windows.

The project features a custom bytecode virtual machine, a compiler written in F#, a C++ interpreter, and a GLSL shader for rendering. The creator utilized a live-coding workflow to iterate efficiently, successfully demonstrating that bytecode interpretation can be smaller than native code.

Speeding up the Unreal editor by… not using unnecessarily secure hash methods

larstofus.com · 11 Oct

C++ · Performance

Unreal Editor startup hashing was accelerated by replacing SHA1 with xxHash for shader source, which is non-sensitive data.

Profiling the Electric Dreams sample project across five runs showed FSHA1::Update consuming 12.90 seconds of aggregate CPU time, versus 1.59 seconds for FXxHash64Builder::Update—about eight times faster; stored hashes also shrank from 20 to 8 bytes. Epic accepted the pull request, adding an FShaderHash wrapper and fixing non-editor builds, though it is not yet merged.

How I made a custom game engine for Satelital

spectralorbit.com · 18 Nov

C++ · Low-Level Programming

Satelital was built and released as a solo project with a custom C++ game engine and development tools.

The engine evolved from SDL2/OpenGL to Vulkan, supported macOS and Windows, and used shaders, prerendered Blender assets, height maps, ray marching, and procedural terrain to create a 3D look in 2D. Custom editors, shader hot reloading, logs, performance work for Steam Deck, and platform-specific fixes enabled puzzle iteration and cross-hardware stability.

Andrew Kensler's permute(), a function for stateless, constant-time pseudorandom-order array iteration

andrew-helmer.github.io · 11 Nov

Algorithms · C++ · Computer Science

Andrew Kensler’s `permute()` generates a pseudorandom permutation of array indices without storing the permutation.

It combines a seed-dependent invertible hash with cycle-walking to map any index into an arbitrary-length array, enabling unique sampling and parallel random access in average constant time. Iterating over k of n items therefore uses O(k) time and O(1) memory, unlike Fisher-Yates’ O(n) storage and time. It is not cryptographically secure and works well only up to roughly 2^27-sized domains.

For the first time, a C++ standard failed to pass the national bodies

herecomesthemoon.net · 11 Nov

C++ · Programming Languages

C++26 became the first C++ standard to fail ISO national-body approval, largely because of opposition to Contracts.

Only 12 of 20 P-members supported it, below the 66.66% requirement, while 9 of 22 member bodies voted against it, exceeding the 25% limit. Contracts add standardized runtime preconditions, postconditions, and assertions, but critics cite non-guaranteed enforcement, safety concerns, complexity, and ignored national-body feedback, exposing deep governance and process problems in WG21.

I Built a Game Engine from Scratch in C++ (Here's What I Learned)

dev.to · 7 Jan

C++ · Software Architecture

The author shares their experience of building a 2D game engine from scratch using C++ and DirectX 9, rather than relying on high-level engines like Unity.

This technical journey involved creating a Breakout clone while managing low-level tasks such as window creation via Win32 API, manual rendering pipelines, and custom physics systems. Key technical challenges discussed include implementing the State Pattern for robust game architecture, solving physics tunneling through Swept AABB collision detection, and separating collision detection from resolution. The project demonstrates how low-level development provides deep insights into performance optimization and software engineering that abstracted tools often hide.

Where it came fromLobstersGitHubDev.toCreate a Snapbyte.dev digest and choose C++ as one of your topics.Build your digest