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++ · 143 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

boykopovar/AnyPS5

github.com · 5 Oct

C++ · Low-Level Programming

AnyPS5 automatically ports PS5 executables to Linux and Windows without emulation or a separate runtime process.

Its relinker converts executables to native target formats, while implementations of system prx libraries support dynamic linking. The project includes SDL-mapped controller input, configurable keyboard and mouse controls, and a shader recompiler that produces validated SPIR-V. Dreaming Sarah reaches stable 60 fps on a GTX 1050 Ti and i5-7500; unsupported states terminate with std::runtime_error.

Whistle: Speech to Text in 16.9 MB

cactuscompute.com · 2 Oct

Artificial Intelligence · C++ · Deep Learning · Machine Learning · NLP

Cactus Compute released Whistle, a 16.9 MB speech recognition model for on-device deployment.

It runs on CPU without dependencies in the same C++ engine as Needle, supports seven languages, handles up to 30-second clips, and provides transcription, word timestamps, and speech embedding. Its encoder feeds an eight-layer gated cross-attention decoder with five-beam decoding and keyword biasing. On Apple M4 Pro, it reaches 11.1-ms time to first token and 1,319 tokens/s, while outperforming several benchmarks at much smaller size than Whisper base.

Let’s all thank Georgi Gerganov who gave use llama.cpp

github.com · 16 Aug

Artificial Intelligence · C++ · Large Language Models

llama.cpp is an open-source C/C++ project enabling local and cloud LLM/VLM inference with minimal setup and high performance.

Built on ggml, it supports extensive CPU, GPU, and accelerator backends, integer quantization, hybrid CPU-GPU execution, Docker and source installation, Hugging Face models, and OpenAI-compatible REST APIs through llama-server.

Rust at Scale: An Added Layer of Security for WhatsApp

engineering.fb.com · 27 Jan

Cybersecurity · C++ · Rust

WhatsApp has successfully integrated and rolled out a significant security layer built with the Rust programming language, marking a major milestone in production-grade software engineering.

This initiative, known as Kaleidoscope, replaces a legacy C++ library with 90,000 lines of Rust code to monitor and validate media files across billions of devices. By leveraging Rust's memory-safe properties, WhatsApp aims to proactively neutralize vulnerabilities like the 2015 Stagefright exploit, which targeted media parsing libraries. This rollout spans Android, iOS, Windows, Mac, and web platforms, proving Rust's scalability and performance advantages in a diverse, global environment. The transition highlights a broader shift toward memory-safe languages to mitigate high-severity vulnerabilities common in C and C++ implementations. WhatsApp's strategy underscores a defense-in-depth approach, ensuring end-to-end encryption is complemented by robust protection against sophisticated malware hidden in seemingly benign file types.

Microsoft Comic Chat is now open source

opensource.microsoft.com · 16 Jul

C++ · GitHub · Open Source

Microsoft has open-sourced Comic Chat, the 1996 IRC client famous for introducing the Comic Sans font.

By transforming text conversations into real-time comic panels with automated characters and expressions, it pioneered visual communication. The source code, written in C++ and MFC, is now available on GitHub for historical study and modernization on modern Windows systems.

synchopate/llama-modchip

github.com · 8 Nov

Artificial Intelligence · C++ · Large Language Models · Low-Level Programming · Performance

llama-modchip is a customized llama.cpp-based inference stack that enables local CPU or hybrid CPU/GPU execution of large MoE models without requiring dedicated GPUs.

Its Fractal-64 quantization, SwiGLU-H2 compression, cache-aware AVX kernels, MoE routing, and Stockfish-PVS speculative decoding fit DeepSeek-V4-Flash 284B in under 59 GiB RAM at 256K context, while Nemotron-3.5-30B-A3B reaches up to 60.4 tok/s on CPU. It also provides Windows, macOS, Linux, Apple Silicon, ARM64, Claude Code integration, benchmarking, and model-transcoding tools.

C++26 Disapproved

andreasfertig.com · 3 Nov

C++ · Programming Languages

C++26 was disapproved in the October 23, 2026 ISO DIS ballot because National Bodies withheld the two-thirds majority, chiefly over concerns that Contracts is not ready.

Contracts had been developed for years and repeatedly approved by WG21, making the rejection unprecedented for C++ and creating an impasse. ISO permits a revised DIS, CD, Technical Specification, or cancellation, but every option requires further WG21 agreement, delays the next standard, and threatens work toward C++29.

llama : add a GPU cache for MoE experts kept in host memory by am17an · Pull Request #29887 · ggml-org/llama.cpp

github.com · 3 Oct

Artificial Intelligence · C · C++ · Large Language Models · Performance

llama.cpp adds a GPU cache for MoE experts stored in host memory.

MUL_MAT_ID operations on host experts run on the GPU through an LRU cache, so only misses are uploaded; it targets batches of up to 32 tokens, while larger batches use regular offload, and different expert layouts get separate banks. Enable it with --moe-cache-mib N; tests found 10% of total expert size effective. On Qwen3.8-Flash-Next Q4_0, speedups reached 1.62x on RTX 4090 and 2.20x on RTX 5090.

Ggml v1.0.0

github.com · 14 Nov

Artificial Intelligence · C · C++ · Large Language Models · Machine Learning

ggml 1.0.0 removes deprecated APIs and legacy DIAG_MASK operations, adds configurable YaRN truncation, FP8 support, and TRI backward propagation, and raises the RPC protocol to v9.

It improves scheduling and MoE cache transfers, while delivering backend optimizations including few-row and fused CUDA matmuls, Metal MoE fusion, Vulkan FlashAttention prefill, SYCL device-side MoE scheduling, Adreno OpenCL FlashAttention, new WebGPU and Hexagon kernels, and CPU precision and SIMD updates.

GOG: Linux "the next major frontier" for gaming as it works on a native client

xda-developers.com · 28 Jan

C++ · Linux · Business

GOG has officially announced its intention to bring GOG Galaxy, its gaming client and ecosystem hub, natively to Linux.

Describing the operating system as the 'next major frontier,' the company is currently recruiting a senior engineer to oversee the architectural transition of its large C++ codebase. This strategic move follows a leadership shift where GOG's original co-founder regained control of the company with a vision to compete against Steam by prioritizing quality over quantity. While technical solutions like Proton have already improved Linux compatibility, a native GOG Galaxy client represents a significant step forward in providing seamless library management and community features for Linux users. The initiative aims to lower barriers for enthusiasts wanting to play retro classics and newer titles without the typical hurdles of non-native software layers, strengthening the viability of FOSS platforms for mainstream gaming.

42x Faster Prompt Lookup Drafting in llama.cpp

jadidbourbaki.github.io · 26 Sept

Algorithms · C++ · Performance

Hayder Tirmazi details four llama.cpp optimizations for prompt lookup drafting: eliminating unnecessary map copies, replacing maps with faster data structures, and using constmap for the static cache.

Together, they deliver up to 42× faster drafting and 2.6× lower memory use, while preserving acceptance rates; static-cache loading also becomes up to 16× faster.

Optimizing a Lock-Free Ring Buffer

david.alvarezrosa.com · 26 Sept

C++ · Low-Level Programming · Performance

The article develops a C++ single-producer, single-consumer (SPSC) ring buffer from a basic FIFO queue to a lock-free design.

Replacing a mutex with atomics, tuning memory ordering, and caching the other thread’s index raises reported throughput from 12M to 305M ops/s (25×); results depend on the benchmark setup and hardware.

M-Abozaid/esp32-c3-adblock

github.com · 6 Oct

Cybersecurity · C++ · Hardware · Low-Level Programming

M-Abozaid/esp32-c3-adblock is a Pi-hole-style DNS sinkhole for inexpensive ESP32-C3 boards without PSRAM.

It stores sorted 40-bit FNV-1a domain hashes in flash and binary-searches them, using about 50 KB of RAM and roughly 10 ms per lookup; the advertised 537,000-domain list has one expected collision, while the default list contains about 100,000 entries. It forwards allowed queries, provides a web dashboard, captive WiFi setup, and authenticated OTA firmware and blocklist updates.

Likely7/Veyra-NRVideo

github.com · 13 Nov

C++ · Windows

Veyra is an open-source Windows 11 video player and capture-enhancement tool that unifies local files, images, capture cards, PS5, PC, Xbox and screen sources in a real-time DirectX 12 GPU pipeline.

It provides Super Resolution, denoising, HDR, anti-aliasing, colour controls and optional Frame Generation, with List and executable Node workflows, streaming support and offline export. Version 2.1.5 adds dual RTX Video SR, AMD experimental paths and capture, audio and frame-pacing fixes; it is not a complete official DLSS 5 integration.

Tether: iMessage, SMS, etc. on Linux

zackbartel.com · 23 Aug

C++ · iOS · Mobile

Tether is an MIT-licensed Linux companion for iPhone that recreates technically feasible macOS Continuity features: iMessage and SMS, notifications, contacts, file transfer, clipboard sync, and OTP autofill.

Built with secure mTLS and a clean-room C++ implementation of Bluetooth interoperability, it addresses Linux–iPhone gaps and welcomes contributions.

cobanov/PS5LM

github.com · 16 Oct

Artificial Intelligence · Backend · C++ · Large Language Models

PS5LM turns a jailbroken PS5 into a private GGUF model server by running llama.cpp through Vulkan on its RDNA 2 GPU, without a PC, cloud service, or account.

It serves OpenAI and Anthropic APIs, browser chat, image inputs, and Ollaya-compatible decision models, while providing TV-based monitoring and model management. The planner adapts context and cache to available memory; tested performance includes 55 tokens per second for Qwen 3.5 9B and about 20 for Qwen 3.8 27B.

Clean-room implementation of Half-Life 2 on the Quake 1 engine

code.idtech.space · 10 Feb

C++ · Programming Languages · Open Source

Rad-Therapy II is an ambitious open-source project designed to port Valve Corporation's Half-Life 2 (2004) into the Quake engine ecosystem, specifically utilizing FTEQW and the Nuclide SDK.

Although the game is not currently playable from start to finish, it supports various multiplayer modes like deathmatch. The project requires original assets from Half-Life 2 and Half-Life 2: Deathmatch to function lawfully. Technically, the repository manages game logic, GLSL shaders, and plugins necessary for the engine to interpret Source engine data files. Licensed under the ISC License, the project represents a significant intersection between the legacy QuakeWorld community and modern game asset reverse-engineering.

What to Learn to Be a Graphics Programmer

blog.demofox.org · 1 Jul

Artificial Intelligence · C++ · Machine Learning

A guide for aspiring graphics programmers emphasizing the duality of rendering: CPU-side API mastery (DirectX12, Vulkan) and GPU-side rendering techniques (path tracing, PBR).

The author recommends C++ as the industry standard, highlights essential linear algebra and algorithm skills, and suggests a cautious, practical approach to integrating machine learning into development workflows.

llama_moe_cache: run missed experts on CPU, add tuning script by am17an · Pull Request #30966 · ggml-org/llama.cpp

github.com · 7 Nov

Artificial Intelligence · CLI · C++ · Large Language Models · Performance

llama.cpp pull request #30966 adds CPU execution for MoE experts missed by the cache, controlled by `--moe-cache-cpu-share`, and introduces `moe-cache-tune.py` to optimize cache size and CPU sharing per machine.

The script benchmarks configurations using warm-cache predictions and reports tokens per second and hit rates. In the example, it recommends a 24,000 MiB cache with CPU share 0, predicting 83.0 t/s, while smaller caches benefit from CPU execution.

C++: The Documentary

herbsutter.com · 4 Jun

C++ · Programming Languages · Computer Science

C++: The Documentary recently premiered on YouTube, detailing the 40-year history of the language from its origins at Bell Labs to its status as a top-tier industry standard.

Featuring industry pioneers like Bjarne Stroustrup, the film highlights the evolution, standardization, and massive recent growth of C++ in fields like gaming, physics, and finance.

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