Tag
A Halloween-themed blog post demonstrating a spooky C++ bug: comparing a std::string_view from a literal to a std::string grants 'root permissions' only when compiled with -O2 due to undefined behavior, reproducible with both Clang 19 and GCC 14 across C++17/20/23.
Lemire shows how to beat compilers at signed 32-bit integer division by constant using a 64-bit 33-bit multiplier trick, avoiding the correction term GCC/LLVM emit, with benchmark latencies across modern CPUs.
The developer says the new version of their in-house AI browser, Kaze, will patch Chromium’s C++ code and recompile Electron to add anti-detection capabilities at the browser engine level, enabling direct access to sites such as Xiaohongshu and BOSS Zhipin.
介绍 ConstexprCore/perfect_hash 库,可在 C++23 constexpr 编译期生成无冲突的完美哈希查找表,实现每秒十亿次查询的字符串映射性能。
slughorn 是一个现代 C++20 GPU 矢量图形库,实现 Slug 渲染技术,支持从 SVG、FreeType、Skia 等导入或通过 Canvas API 直接绘制,并上传至 OpenGL、Vulkan、WebGPU、DirectX 等后端,构建时一次性完成栅格化以减少运行时开销。
C++26 failed its ISO DIS ballot—the first C++ draft ever to do so—with contracts, reflection, std::execution, and library hardening left unapproved, garnering 12 of 20 favorable votes and 9 negative votes.
Globus released earstrip, an ISC-licensed single-header C++ polygon triangulator with an npm/WebAssembly build, that outperforms Mapbox earcut — 14% faster in C++ and 1.4–2.1× faster in the browser — while detailing how ear clipping beat their constrained Delaunay triangulator on 3.7M map polygons in 489 ms.
EDG's C++ front end went open source on September 30, 2026, with The C++ Alliance becoming its nonprofit home to provide fiscal sponsorship, technical continuity, and community-driven contributions under a three-track development model.
Raymond Chen wraps up his C++ futures library series by explaining std::future and std::shared_future, how they manipulate the underlying 'source', and offers his alternative naming suggestions for the futures library components.
A developer shares progress on porting marginalia search's inverted index from Java to C++, noting improved expressiveness, possible halving of line count, and the usefulness of std::span for contiguous memory handling.
coopiano 是一个用 C++17 编写的物理建模钢琴合成器开源项目,通过琴槌、琴弦、音板与共鸣模型合成声音,支持 MIDI 文件渲染与 macOS 实时 MIDI 输入,无需任何采样或第三方库。
Raymond Chen 解释了 WIN32_LEAN_AND_MEAN 宏的起源:它在 Windows 95 时期被引入,用于在包含 windows.h 时排除大量头文件,以恢复 16 位 Windows 时代的最小化头文件理念并加速编译。如今由于摩尔定律和预编译头文件的普及,该宏已基本失去实际作用。
Raymond Chen explores workarounds for creating an immediate on-thread std::future in C++, using std::promise, std::packaged_task, or a deferred std::async that is waited on immediately.
An introductory tutorial on the C++26 contracts feature (P2900), showing how preconditions and postconditions replace traditional assert-based checks, along with compiler options, evaluation semantics, and common pitfalls.
Raymond Chen 解释 C++ std::async 的心智模型,说明 launch 策略的两个维度(立即/延迟、同线程/新线程)中哪些组合是标准允许的,哪些被禁止或由实现决定。
A follow-up blog post in Raymond Chen's C++ futures series explaining the mental model behind std::promise and std::packaged_task, showing how a shared 'source' state is managed via shared_ptr and how packaged_task wraps a promise to store call results for retrieval by a future.
Raymond Chen 的《The Old New Thing》博客深入解析 C++ 标准库中 std::future 背后的内部实现机制,展示了 promise、packaged_task 和 async 共同依赖的底层 source 状态类的心智模型与代码构建过程。
开源项目 CosmoEdge 发布 v1.1.0,提供 C++ 边缘 AI 引擎,可通过可视化控制台将摄像头视频流、AI 识别、规则判断与通知连成工作流,支持零重训练的提示词识别与视觉大模型判断,一键 Docker 部署至 Sophon、Rockchip 和 x86 平台。
Decapybara 是 MegaCapybara LLM 推理服务器的开源 C++20 与 CUDA 重构实现,面向 NVIDIA RTX 5090 Blackwell 硬件,支持 OpenAI 与 Anthropic 兼容 API、分层 KV 缓存及一整套 Blackwell CUDA 内核。
C++ Insights is an open-source Clang-based tool that performs C++ source-to-source transformation, revealing compiler-provided magic such as special member functions, lambdas, range-based for-loops, and structured bindings. It helps developers and educators see code through the compiler's eyes, with a hosted online version available.