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.

20 stories

Faster than earcut: triangulating 3.7M map polygons in 489 ms

globus.software · 16 Oct

Algorithms · C++ · Performance

GLMap published earstrip, an ISC-licensed C++ header and WebAssembly/npm polygon triangulator compatible with earcut’s arguments.

Replacing constrained Delaunay with optimized ear clipping—using reflex-vertex lists, convex shortcuts, triangle strips, spatial buckets, branchless tests, and marked-hit filtering—triangulates 3.74 million map polygons in 489 ms on one M4 Pro core, versus 2.93 seconds. It is 14% faster than earcut.hpp natively and 1.4–2.1 times faster than earcut.js in browser use, with Delaunay fallbacks for difficult geometries and many holes.

0x23/MicroManipulatorStepper

github.com · 18 Oct

C++ · Hardware · Robotics

Open Micro-Manipulator is an open-source, low-cost XYZ motion platform for optical alignment, probing, and microscopy, delivering submicrometer resolution.

Its parallel kinematics and miniature ball joints provide stiffness and range, while stepper motors, a 30 kHz closed-loop controller, precise PWM, and magnetic gearing enable steps down to 50 nm, though absolute accuracy is lower. USB serial G-Code, look-ahead planning, Python API, FreeCAD/KiCAD files, GUI, and updated Hardware v4.0 support replication and integration.

The Art of 64-bit Assembly

nostarch.com · 1 Aug

C++ · Low-Level Programming · Computer Science

The Art of 64-Bit Assembly offers an in-depth exploration of low-level programming on Windows.

By rebuilding high-level constructs from C++, Python, and Rust in MASM, the book explains how objects, exceptions, coroutines, and concurrency function at the instruction level, moving beyond surface-level AI explanations to provide genuine architectural understanding.

I hate compilers

xeiaso.net · 18 Jun

C++ · Software Architecture · Testing

The author details the challenges of achieving reproducible builds when compiling WebAssembly for the Anubis project.

Obstacles like compiler time-stamping macros, hidden external dependencies like wasm-opt, and address-layout sensitivities in Clang caused non-deterministic binary output. The author implemented workarounds, including build environment constraints and specific checksum verifications to ensure consistency across architectures.

C++ std::move doesn't move anything: A deep dive into Value Categories

0xghost.dev · 9 Dec

C++ · Performance · Computer Science

In modern C++, std::move is often misunderstood; it does not physically move memory but is instead a static_cast that converts an expression into an xvalue, signaling the compiler that resources can be 'stolen' via a Move Constructor.

This article explores the critical performance implications of move semantics, highlighting common pitfalls like 'pessimization' (using std::move on return values which breaks Named Return Value Optimization), and the 'silent copy' (attempting to move from const objects). It emphasizes the necessity of the noexcept keyword in Move Constructors to maintain the strong exception guarantee in containers like std::vector. The guide also covers the 'Rule of Five,' the usage of std::exchange for idiomatic ownership transfer, and differentiates std::move from std::forward in the context of perfect forwarding. Finally, it touches on advanced topics like trivial relocation and the evolution of move semantics in C++20 and C++23.

Dune3d: A parametric 3D CAD application

github.com · 22 Mar

C++ · Software Architecture · Open Source

Dune 3D is a new open-source parametric 3D CAD application designed to address limitations in existing software like FreeCAD and Solvespace.

By leveraging the Open CASCADE geometry kernel and Solvespace's solver, it aims to provide a superior user experience for 3D-printing projects, specifically focusing on workflow efficiency and advanced geometry handling like fillets and chamfers.

bitcoin/bitcoin

github.com · 5 Dec

Blockchain · C++

Bitcoin Core connects to the Bitcoin peer-to-peer network, downloads and fully validates blocks and transactions, and optionally provides a wallet and graphical user interface.

This integration/staging tree contains the actively developed code; official stable versions are tagged from release branches. The security-critical project emphasizes unit, regression, integration, and cross-platform CI testing on Windows, Linux, and macOS, with development coordinated separately for the GUI.

Marginalia Search, Money, C++, Rust, AI, Stuff

marginalia.nu · 25 Nov

C++ · Low-Level Programming

Marginalia Search reports a stable project phase focused on bug fixes, technical debt, and optimization rather than major new features.

SerpApi provided $10,000, while donations and API-key sales are rising, though the operation is not yet self-sustaining and free-key requests can take weeks to process. The developer is experimentally migrating the index from Java to C++ to address CPU bottlenecks and improve low-level ergonomics, but expects uncertain gains and a slow process. AI is avoided because maintaining generated code would undermine independence and understanding.

Everything old is new again: memory optimization

nibblestew.blogspot.com · 23 Mar

C++ · Performance · Python

High memory consumption by AI models has renewed interest in memory optimization.

Comparing a simple word-counting script, a native C++ implementation using string views and memory mapping achieves a 98.4% reduction in peak memory usage compared to a standard Python implementation, demonstrating the significant efficiency gains possible through low-level memory management and avoiding heavy language runtimes.

Branchless Quicksort faster than std:sort and pdqsort with C and C++ API

tiki.li · 2 Jun

C · C++ · Performance

blqsort is a high-performance sorting algorithm for C and C++ that optimizes execution speed by minimizing branch mispredictions.

It achieves superior results over std::sort and pdqsort by using a branchless partitioning strategy, sorting networks for small subsets, and median-of-medians pivot selection, making it highly effective for both primitive types and custom data structures.

CPython Internals Explained

github.com · 27 Jan

C · C++ · Python

This comprehensive repository serves as a deep-dive technical blog and note collection focused on the CPython source code, specifically based on version 3.8.0a0.

It provides an exhaustive analysis of the Python interpreter's internal mechanics, covering fundamental data structures like dict, list, and unicode, as well as complex features such as asyncio, the Global Interpreter Lock (GIL), and Garbage Collection (gc). The content is tailored for experienced developers who wish to understand the low-level implementation of memory management, the buffer protocol, and class creation processes including MRO and metaclasses. Furthermore, it explores the C API, Cython, and C++ extensions, offering guidance on writing high-performance code and bypassing the GIL. By referencing authoritative books and blogs, the repository creates a roadmap for mastering the CPython virtual machine and its architectural nuances.

YouTube as Storage

github.com · 14 Feb

C++ · Encryption · Open Source

This project enables storing files on YouTube by encoding them into lossless MKV videos using FFV1.

It features both a CLI and a Qt6 GUI, supports XChaCha20-Poly1305 encryption via libsodium, and utilizes Wirehair fountain codes for redundancy. The C++23 implementation provides batch processing and high-resolution 4K encoding for data recovery.

Prospero: A new coding harness for a more civilized age

nullprogram.com · 31 Oct

Artificial Intelligence · C++ · AI Agents

Prospero is a C++ coding harness for local or remote AI agents, built with Dear ImGui and designed to use roughly two orders of magnitude fewer resources than alternatives.

It supports tools, subagents, remote headless deployments, desktop control, fuzzing, MCP, web search, configurable shells, and process-tree cleanup. Every operation has a deadline, while passive rendering reduces idle GPU use. It supplies no model provider; users configure endpoints themselves. Community and Professional editions differ mainly in bundled remote engines.

A simplified model of Fil-C

corsix.org · 17 Apr

Cybersecurity · C · C++

Fil-C enhances C/C++ memory safety by pairing pointers with AllocationRecord metadata.

The system uses source code transformation, bounds checking, and a garbage collector to manage memory. While performance costs exist, Fil-C provides a robust framework for debugging memory bugs, safe compile-time evaluation, and serves as an important practical example of pointer provenance in systems architecture.

C++26: Trivial infinite loops are no longer undefined behaviour

sandordargo.com · 15 Sept

C++ · Low-Level Programming · Programming Languages

Before C++26, a side-effect-free `while (true);` had undefined behaviour because it violated C++’s forward-progress guarantee, allowing compilers to remove it.

This endangered embedded halt-on-error handlers. P2809R3 makes narrowly defined trivial infinite loops well-defined by assigning them `std::this_thread::yield()` semantics, though freestanding implementations may opt out.

Show HN: misa77 – Up to 3x faster decompression than zstd, with better ratios

github.com · 3 Dec

C++ · Performance

misa77 0.9.0 is an LZ-based compressor for write-once, read-many workloads that prioritizes decompression speed, competitive ratios, and constant compression memory.

On the Silesia corpus, levels 3–6 reached up to 5,909 MB/s and levels 11–13 decoded 2.5–3 times faster than comparable zstd levels, while encoding substantially slower. It offers light and entropy-coded formats, safe handling of corrupt input, a C++20 library, and a POSIX CLI.

Turbo Vision 2.0 – a modern port

github.com · 25 Apr

C++ · Software Architecture · UI

This project provides a modern cross-platform port of the classic Turbo Vision framework, enabling text-based user interfaces on Linux, Windows, and DOS.

It features full Unicode and UTF-8 support, extended 24-bit color functionality, and system clipboard integration, while maintaining source-code compatibility with original Borland-era applications and modern C++14 standards.

The Quake Fan who built the map editor everybody uses

funcarena.com · 22 Oct

C++ · History · Culture

Kristian Duske created TrenchBroom in 2010 after finding no Quake editor he liked, and it became a widely used, open-source 3D-first tool for Quake mapping and retro-shooter development.

It reached 1.0 in 2013, was rewritten in 2018, and moved from wxWidgets to Qt in 2020. Linked groups, large-map support, textual formats, and exact texture locking aid workflow, while CSG subtraction remains unsolved. Duske still maintains it alongside full-time work and family, despite never making another map.

Clice v1.0 Released: Welcome to Modern C++

ykiko.me · 15 Nov

C++ · Programming Languages · Software Architecture

Clice v1.0 is released as a stable C/C++ language server built entirely with modern C++23 after alpha testing, extensive real-world project testing, and 1,000 commits.

Built on LLVM/Clang, it uses multi-process compilation, C++20 named modules, persistent caching, compilation-context detection, stronger template support, and automatic toolchain probing. Its CLI supports indexing, linting, formatting, querying, refactoring, analysis, and modularization, while Bazel and xclang enable reproducible cross-platform builds and self-hosting.

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