---
title: "Posts"
description: "Engineering blog posts from companies, open source projects, research labs and engineers, each with a summary, topics and a difficulty level."
url: "https://swe.quest/?per=96&tag=c-cpp"
---

# Posts

Filtered by topics: C & C++.

Posts 1–74 of 74, page 1 of 1, newest first.

## 2026-11-25

- [How well is ClickHouse tested? A detailed view of increasing our own coverage](https://swe.quest/articles/how-well-is-clickhouse-tested-a-detailed-view-of-increasing-our-own-coverage-cfaf966583bc47db.md): ClickHouse · 2026-11-25 · Medium · 17 min read · Testing, CI/CD, C & C++, Compilers, AI for coding
  ClickHouse's ~2.6M-line C++ codebase reaches 91.8% line, 81.0% branch and 91.8% function coverage, measured with Clang source-based coverage across 23 CI shards every 3 hours and published at coverage.clickhouse.com.

## 2026-11-17

- [Sentry’s Native SDK gets its own crash backend (and more)](https://swe.quest/articles/sentry-s-native-sdk-gets-its-own-crash-backend-and-more-2be31ec2bba6916c.md): Sentry · 2026-11-17 · Medium · 6 min read · C & C++, Observability, Performance engineering, Concurrency, Games
  Sentry Native SDK 1.0 replaces Google's Crashpad with Sentry's own out-of-process "Native" crash backend on desktop, built on the SDK's events, envelopes, hooks and transport so crashes can be reported as events, minidumps or both.

## 2026-10-18

- [Box2D 3.2](https://swe.quest/articles/box2d-3-2-6bf0b6359f7de39c.md): Box2D · 2026-10-18 · Easy · 2 min read · Games, Performance engineering, C & C++
  Box2D 3.2 runs roughly three times faster than 3.1, with the speedup broken down by source: contact recycling (~40%), solver algorithm refinement (~20%), AVX2 runtime dispatch (~15%), solver optimization (~10%) and broad-phase optimization (~10%), which compound multiplicatively.

## 2026-09-30

- [Memory safety for Postgres extensions in C/C++](https://swe.quest/articles/memory-safety-for-postgres-extensions-in-c-c-b6883b8eb3b1e33d.md): ClickHouse · 2026-09-30 · Hard · 4 min read · PostgreSQL, Memory safety, C & C++, Memory management
  Postgres's palloc/MemoryContext allocation and setjmp/longjmp-based error handling clash with C++ new/delete, destructors and exceptions: longjmp skips destructors (undefined behavior), exceptions bypass PG\_CATCH, and an uncaught exception aborts the process and forces cluster-wide crash recovery.

## 2026-09-29

- [Inscribed Spheres](https://swe.quest/articles/inscribed-spheres-119dd641a396418e.md): Box2D · 2026-09-29 · Hard · 14 min read · Games, Algorithms, Performance engineering, C & C++
  Inscribed spheres give a cheap upper bound on the separation achievable along any axis in the separating axis test (SAT): n·d − (rA + rB), where d joins the sphere centers.

## 2026-09-18

- [MilleMiglia: A realistic instance generator for middle-mile logistics](https://swe.quest/articles/millemiglia-a-realistic-instance-generator-for-middle-mile-logistics-6dcc1ed2fd92bea0.md): Google Research · 2026-09-18 · Easy · 8 min read · Algorithms, Scientific computing, C & C++, Open source
  MilleMiglia is an open-source C++ instance generator that produces realistic, privacy-preserving benchmarks for middle-mile logistics, where shipments are relayed across multiple vehicles between distribution centers over multi-day horizons.

## 2026-09-10

- [To Infinity and Beyond: ThunderKittens Now on NVIDIA Vera Rubin NVL72!](https://swe.quest/articles/to-infinity-and-beyond-thunderkittens-now-on-nvidia-vera-rubin-nvl72-597516f5605fb093.md): Together AI · 2026-09-10 · Hard · 11 min read · Hardware, Performance engineering, Inference & serving, C & C++
  ThunderKittens adds support for five Vera Rubin GEMM features: a doubled 64-byte K step in tcgen05.mma, 576-column exclusive tensor memory, 328 KiB oversized shared memory, a B-side collector buffer, and early A-operand release via tcgen05.commit.sync\_restrict.

## 2026-08-24

- [Native Async/Coroutine Reads in RocksDB](https://swe.quest/articles/native-async-coroutine-reads-in-rocksdb-a16f6ef8c30162a7.md): RocksDB Blog · 2026-08-24 · Hard · 10 min read · Storage engines, Concurrency, C & C++, Performance engineering, Databases
  RocksDB 11.10.0 adds experimental native asynchronous Get/MultiGet APIs (callback-based GetAsync/MultiGetAsync and Folly-task-based CoroDB::CoGet/CoMultiGet) that suspend a read at the SST block-miss filesystem boundary and resume it on the same io\_uring-backed EventBase thread, so a small read executor can sustain high storage queue depth without one parked thread per read.

## 2026-07-29

- [Instrumenting my espresso machine with OpenTelemetry](https://swe.quest/articles/instrumenting-my-espresso-machine-with-opentelemetry-d67ba22f350cd82b.md): ClickHouse · 2026-07-29 · Medium · 18 min read · Observability, Hardware, C & C++, Concurrency, Analytics & OLAP
  A Gaggia espresso machine running the GaggiMate ESP32 controller is instrumented with OpenTelemetry and shipped to ClickHouse Cloud via ClickStack, modelling each shot as a trace with phase child spans and fast-moving sensor state as gauge metrics.

## 2026-07-18

- [SIMD for Collision](https://swe.quest/articles/simd-for-collision-0a426a9583188633.md): Box2D · 2026-07-18 · Hard · 5 min read · Performance engineering, Games, Algorithms, C & C++
  Box3D uses wide SIMD to speed up the edge-edge phase of the Separating Axis Test, testing one edge of hull A against four edges of hull B at once using structure-of-arrays data.

## 2026-07-17

- [Running unmodified Doom in the SQLite bytecode language](https://swe.quest/articles/running-unmodified-doom-in-the-sqlite-bytecode-language-75f412e9cb0f0591.md): Turso · 2026-07-17 · Hard · 12 min read · Compilers, SQLite, Runtimes & VMs, Storage engines, C & C++
  Turso compiles unmodified Doom C source to SQLite's VDBE bytecode by using LLVM as a frontend and a custom backend, vdbecc, that lowers LLVM IR to VDBE.

## 2026-07-02

- [GPT-5.5-Cyber built a zlib fuzzing lab in a day](https://swe.quest/articles/gpt-5-5-cyber-built-a-zlib-fuzzing-lab-in-a-day-34216d52ce035220.md): Trail of Bits · 2026-07-02 · Medium · 5 min read · Vulnerability research, AI agents, Testing, Open source, C & C++
  GPT-5.5-Cyber, driven through Codex's /goal command, independently chose dynamic testing over static review of heavily audited zlib and built a full fuzzing campaign in a day.

## 2026-06-30

- [Core dump epidemiology: fixing an 18-year-old bug](https://swe.quest/articles/core-dump-epidemiology-fixing-an-18-year-old-bug-49f918c45e5e4eb3.md): OpenAI · 2026-06-30 · Hard · 16 min read · Debugging, C & C++, Linux, Hardware, Incidents & postmortems
  Mysterious return-to-bogus-address crashes in Rockset's C++ execution layer turned out to be two unrelated bugs: silent register corruption on a single bad Azure host, and an 18-year-old race in GNU libunwind's \_Ux86\_64\_setcontext, which read the synthesized ucontext\_t after moving %rsp past it, letting a frequent SIGUSR2 CPU-time signal clobber it during exception unwinding.

## 2026-06-26

- [How I hunt for vulnerabilities with AI](https://swe.quest/articles/how-i-hunt-for-vulnerabilities-with-ai-3d82bb1020f483da.md): ClickHouse · 2026-06-26 · Medium · 23 min read · Vulnerability research, AI agents, AI for coding, C & C++
  AI coding agents (GitHub Copilot in agent mode with Claude Opus and Gemini, later Claude and ChatGPT) can drive vulnerability research in a large C++ codebase like ClickHouse.

## 2026-06-25

- [Announcing Silk: a silky smooth fiber runtime for ClickHouse](https://swe.quest/articles/announcing-silk-a-silky-smooth-fiber-runtime-for-clickhouse-bd3ca633b291b6b6.md): ClickHouse · 2026-06-25 · Hard · 11 min read · Concurrency, Runtimes & VMs, C & C++, Performance engineering, Linux
  Silk is a C++ stackful-fiber runtime for ClickHouse. It pins one scheduler thread per CPU, uses io\_uring as its I/O foundation, steals work in order of CPU topology cost (hyperthread sibling, then same socket, then cross-socket), and does zero heap allocation in the steady-state hot path through mmap'd stack pools, stack-resident futures and intrusive containers.

## 2026-06-20

- [Blob Direct Write With Partitioned Blob Files](https://swe.quest/articles/blob-direct-write-with-partitioned-blob-files-8acc320f71e2d848.md): RocksDB Blog · 2026-06-20 · Hard · 9 min read · Storage engines, Databases, C & C++
  RocksDB's Blob Direct Write writes values at or above min\_blob\_size straight to blob files during the write, so the WAL and memtable carry only a compact BlobIndex reference instead of the full value.

## 2026-06-15

- [Ten years of ClickHouse in open source](https://swe.quest/articles/ten-years-of-clickhouse-in-open-source-271aa2e036084367.md): ClickHouse · 2026-06-15 · Easy · 12 min read · Analytics & OLAP, Storage engines, Open source, C & C++
  ClickHouse marks ten years as open source, with more than 2000 contributors and the stated aim of being a fully open project: public roadmap, CI, code review and a learning resource for C++ and database engineering.

## 2026-06-07

- [Replay](https://swe.quest/articles/replay-cd1e00a39568cbbd.md): Box2D · 2026-06-07 · Medium · 6 min read · Games, Debugging, C & C++, Data structures
  Box2D's new Replay system records a full binary snapshot of world state followed by opcodes and arguments for every API call, including steps, forces, impulses, body creation and queries with their callback results.

## 2026-05-22

- [Integrating the Rust Delta Kernel into ClickHouse](https://swe.quest/articles/integrating-the-rust-delta-kernel-into-clickhouse-4dfcdd8e64024cda.md): ClickHouse · 2026-05-22 · Hard · 17 min read · Analytics & OLAP, Rust, C & C++, Build systems, Data pipelines
  ClickHouse replaced its hand-written Delta Lake protocol implementation with the Rust Delta Kernel (delta-kernel-rs).

## 2026-04-09

- [Escaping the Fork: How Meta Modernized WebRTC Across 50+ Use Cases](https://swe.quest/articles/escaping-the-fork-how-meta-modernized-webrtc-across-50-use-cases-604586fd757c3181.md): Meta Engineering · 2026-04-09 · Hard · 10 min read · C & C++, Refactoring & migrations, Communications, Build systems, Version control
  Meta escaped a long-diverged internal WebRTC fork by statically linking two WebRTC versions into one binary behind a version-agnostic shim layer, which let it A/B test legacy and upstream stacks app-by-app across 50+ use cases.

## 2026-04-01

- [Agentic coding at ClickHouse](https://swe.quest/articles/agentic-coding-at-clickhouse-8afb95a1baae3481.md): ClickHouse · 2026-04-01 · Medium · 32 min read · AI for coding, AI agents, Code review, Developer productivity, C & C++
  ClickHouse uses coding agents, mainly Claude Code with Opus 4.6 and Codex CLI as a fallback, for daily work on its large C++ codebase, which the author says became practical with Claude Opus 4.5 in November 2025.

## 2026-03-05

- [Introducing ClickStack embedded in ClickHouse](https://swe.quest/articles/introducing-clickstack-embedded-in-clickhouse-5655542c4f7400aa.md): ClickHouse · 2026-03-05 · Medium · 8 min read · Observability, Build systems, C & C++, Analytics & OLAP
  Starting with ClickHouse 26.2, the ClickStack (HyperDX) observability UI ships inside the ClickHouse binary at /clickstack, adding about 4 MB, for local exploration of logs, traces, metrics and ClickHouse's own system tables.

## 2026-02-17

- [RocksDB development finds a CPU bug](https://swe.quest/articles/rocksdb-development-finds-a-cpu-bug-3928169c558d3987.md): RocksDB Blog · 2026-02-17 · Medium · 4 min read · Hardware, Testing, Debugging, Storage engines, C & C++
  A RocksDB unit test that generated thousands of SST file unique IDs across many threads exposed a hardware bug: the RDSEED instruction on a newer AMD CPU sometimes returned 0 while reporting success, but only on some cores and only under memory load.

## 2026-01-23

- [How to Automate Arm Migration with Docker MCP Toolkit, VS Code, and GitHub Copilot](https://swe.quest/articles/how-to-automate-arm-migration-with-docker-mcp-toolkit-vs-code-and-github-copilot-f996a77ae0575e0d.md): Docker · 2026-01-23 · Medium · 15 min read · AI agents, AI for coding, C & C++, Containers, Hardware
  Docker MCP Toolkit connects the Arm MCP Server, GitHub MCP Server and Sequential Thinking server to GitHub Copilot in VS Code so Copilot can automate x86-to-Arm64 migration: checking base image architecture, scanning code with migrate-ease, looking up NEON equivalents for AVX2 intrinsics via a knowledge base, rewriting code and Dockerfiles, and opening a pull request.

## 2025-12-31

- [BitFields API: Type-Safe Bit Packing for Lock-Free Data Structures](https://swe.quest/articles/bitfields-api-type-safe-bit-packing-for-lock-free-data-structures-0725d8986cbdf5c3.md): RocksDB Blog · 2025-12-31 · Hard · 9 min read · Concurrency, C & C++, Data structures, Caching, Performance engineering
  RocksDB's BitFields API is a template-based C++ abstraction that declares multiple logical fields packed into one atomic integer, replacing hand-written shifts and masks with typed Get/Set accessors and composable "transforms".

## 2025-12-18

- [Taming PostgreSQL GUC “extra” Data](https://swe.quest/articles/taming-postgresql-guc-extra-data-7e376007c1715e0d.md): ClickHouse · 2025-12-18 · Hard · 8 min read · PostgreSQL, C & C++, Memory management, Configuration management
  PostgreSQL GUC check and assign hooks can pre-parse a custom string setting into a structured value, but only if the "extra" data follows the GUC API's memory rules.

## 2025-12-17

- [How to use Rust in ClickHouse: avoiding a full rewrite](https://swe.quest/articles/how-to-use-rust-in-clickhouse-avoiding-a-full-rewrite-e470754e07a213d4.md): ClickHouse · 2025-12-17 · Medium · 13 min read · Rust, C & C++, Build systems, Refactoring & migrations, Testing
  ClickHouse, a 1.5M-line C++ analytic database, is adopting Rust incrementally rather than rewriting.

## 2025-12-16

- [Parallelizing ClickHouse aggregation merge for fixed hash map](https://swe.quest/articles/parallelizing-clickhouse-aggregation-merge-for-fixed-hash-map-9fc83cd0ed214dc7.md): ClickHouse · 2025-12-16 · Hard · 6 min read · Query engines, Performance engineering, Concurrency, Memory management, C & C++
  ClickHouse 25.11 parallelizes the merge phase for GROUP BY on 8- and 16-bit keys, which use an array-backed FixedHashMap.

## 2025-11-19

- [chDB Kernel Upgrade Journey: Upgrading ClickHouse to v25.8.2.29](https://swe.quest/articles/chdb-kernel-upgrade-journey-upgrading-clickhouse-to-v25-8-2-29-3cca5f2ad115d794.md): ClickHouse · 2025-11-19 · Hard · 16 min read · Memory management, C & C++, Python, Analytics & OLAP, Performance engineering
  Upgrading chDB's embedded ClickHouse kernel from v25.5 to v25.8.2.29 surfaced allocator conflicts rooted in chDB's dual-library design: a stable-ABI \`\_chdb.abi3.so\` holding the ~120MB engine plus small per-Python-version pybind11 binding libraries.

## 2025-11-17

- [Easily Build and Share ROCm Kernels with Hugging Face](https://swe.quest/articles/easily-build-and-share-rocm-kernels-with-hugging-face-dfc0e1a655e74ace.md): Hugging Face · 2025-11-17 · Medium · 13 min read · Build systems, Hardware, Machine learning, C & C++, Python
  Hugging Face's kernels library and kernel-builder can package a custom ROCm kernel as a native PyTorch operator and share it on the Hub, shown with the prize-winning RadeonFlow FP8 block-wise GEMM kernel for AMD MI300X.

## 2025-11-12

- [Building world-class product search at Shopify: Where C++ excellence meets ML innovation](https://swe.quest/articles/building-world-class-product-search-at-shopify-where-c-excellence-meets-ml-0dc65e1a92fe63ec.md): Shopify Engineering · 2025-11-12 · Easy · 5 min read · Search, Performance engineering, C & C++, Machine learning, Language design
  Shopify's product search runs ML ranking models (transformers, neural rankers, CatBoost/LightGBM) at native C++ speed through RankFlow, a Python-like ranking DSL, and TurboDSL, its execution engine.

## 2025-10-08

- [Parallel Compression Revamp: Dramatically Reduced CPU Overhead](https://swe.quest/articles/parallel-compression-revamp-dramatically-reduced-cpu-overhead-347cdd5afee49826.md): RocksDB Blog · 2025-10-08 · Hard · 5 min read · Storage engines, Concurrency, Performance engineering, C & C++
  RocksDB 10.7 rewrites parallel compression for SST generation around a lock-free ring buffer of in-progress blocks.

## 2025-09-25

- [IO Activity Tagging](https://swe.quest/articles/io-activity-tagging-2c1c0aefff706db2.md): RocksDB Blog · 2025-09-25 · Hard · 2 min read · Storage engines, Observability, Performance engineering, C & C++
  RocksDB automatically tags every IO operation with an \`IOActivity\` enum value (flush, compaction, DB open, Get, MultiGet, iterator, checksum verification, entity reads and others) and propagates it through \`IOOptions\` to the file system.

## 2025-09-18

- [Figma rendering: Powered by WebGPU](https://swe.quest/articles/figma-rendering-powered-by-webgpu-713739b05df2d0bb.md): Figma · 2025-09-18 · Medium · 11 min read · Browsers, WebAssembly, C & C++, Performance engineering, Deployment
  Figma migrated its C++ renderer from WebGL to WebGPU while keeping WebGL as a fallback, first refactoring its graphics interface to pass draw-call state explicitly and to batch uniform uploads into a single buffer per submit to avoid performance regressions.

## 2025-08-18

- [From Zero to GPU: A Guide to Building and Scaling Production-Ready CUDA Kernels](https://swe.quest/articles/from-zero-to-gpu-a-guide-to-building-and-scaling-production-ready-cuda-kernels-c01f08e3adeb6b0b.md): Hugging Face · 2025-08-18 · Medium · 16 min read · Hardware, Python, C & C++, Build systems, Machine learning
  Hugging Face's kernel-builder lets developers write a custom CUDA kernel, register it as a native PyTorch operator, build it reproducibly with Nix for every supported PyTorch/CUDA combination, and publish it to the Hub for loading via \`get\_kernel\`.

## 2025-04-29

- [Introducing AutoPatchBench: A Benchmark for AI-Powered Security Fixes](https://swe.quest/articles/introducing-autopatchbench-a-benchmark-for-ai-powered-security-fixes-f107d000a04ddc7d.md): Meta Engineering · 2025-04-29 · Hard · 17 min read · Evaluation, Vulnerability research, AI for coding, C & C++, Testing
  AutoPatchBench is a benchmark of 136 fuzzing-found C/C++ vulnerabilities from real projects, curated from the ARVO/OSS-Fuzz dataset, for evaluating AI program repair agents.

## 2025-04-19

- [Box2D 3.1](https://swe.quest/articles/box2d-3-1-d8698258cbab254f.md): Box2D · 2025-04-19 · Medium · 2 min read · Games, Performance engineering, C & C++
  Box2D 3.1 fixes most bugs and build problems from 3.0 and adds an experimental geometric character mover built from collision queries and a specialized solver that runs outside the physics world.

## 2025-04-01

- [A Year of Rust in ClickHouse](https://swe.quest/articles/a-year-of-rust-in-clickhouse-fadc1c7501c80398.md): ClickHouse · 2025-04-01 · Medium · 12 min read · Rust, C & C++, Build systems, Testing, Supply chain security
  ClickHouse added Rust to its C++ codebase as an option for new components rather than a rewrite, starting with BLAKE3, then skim for clickhouse-client history, PRQL as a switchable query dialect, and Databricks' delta-kernel-rs replacing a sketchy C++ Delta Lake implementation.

## 2025-03-21

- [Dynamic Tree Improvements](https://swe.quest/articles/dynamic-tree-improvements-db8f5926a23bef4f.md): Box2D · 2025-03-21 · Hard · 3 min read · Data structures, Algorithms, Games, C & C++
  Box2D's dynamic tree inserts a new proxy using a greedy, single-descent heuristic that approximates minimizing the surface area heuristic (SAH) instead of doing an exhaustive search, since incremental insertion is inherently greedy anyway.

## 2024-11-12

- [How Meta built large-scale cryptographic monitoring](https://swe.quest/articles/how-meta-built-large-scale-cryptographic-monitoring-007f3fb06e949eb9.md): Meta Engineering · 2024-11-12 · Medium · 10 min read · Cryptography, Observability, Scaling, C & C++
  Meta logs every operation in FBCrypto, its managed cryptographic library, without sampling by aggregating identical events into per-event counts in an in-process buffer and flushing them periodically to Scribe, with data landing in Scuba and Hive.

## 2024-11-05

- [How Bun supports V8 APIs without using V8 (part 2)](https://swe.quest/articles/how-bun-supports-v8-apis-without-using-v8-part-2-d765ff746fe7a86a.md): Bun · 2024-11-05 · Hard · 18 min read · Runtimes & VMs, JavaScript, C & C++, Memory management
  Bun emulates V8's memory layout on top of JavaScriptCore so that precompiled native addons, which inline V8 functions assuming specific pointer layouts, keep working.

## 2024-09-30

- [How Bun supports V8 APIs without using V8 (part 1)](https://swe.quest/articles/how-bun-supports-v8-apis-without-using-v8-part-1-ff8148b61cb465d8.md): Bun · 2024-09-30 · Hard · 19 min read · Runtimes & VMs, C & C++, JavaScript, Memory management
  Bun, which runs on JavaScriptCore, implements a growing subset of V8's C++ embedding API so Node.js native modules like cpu-features load without V8.

## 2024-09-20

- [Bun v1.1.29](https://swe.quest/articles/bun-v1-1-29-a5b176ea3eb640ea.md): Bun · 2024-09-20 · Medium · 3 min read · Runtimes & VMs, JavaScript, C & C++, Performance engineering
  Bun v1.1.29 adds N-API support to its \`cc\` C compilation feature, letting C code return JavaScript strings, objects and arrays, which also works for shared libraries loaded via \`dlopen\` in \`bun:ffi\`.
- [Optimize and deploy with Optimum-Intel and OpenVINO GenAI](https://swe.quest/articles/optimize-and-deploy-with-optimum-intel-and-openvino-genai-bbd6caef1a74949e.md): Hugging Face · 2024-09-20 · Medium · 6 min read · Inference & serving, LLMs, C & C++, Python
  Hugging Face Transformers LLMs can be exported to OpenVINO IR with Optimum-Intel, quantized with NNCF, and deployed through the lightweight OpenVINO GenAI LLMPipeline from Python or C++.

## 2024-09-18

- [Compile and run C in JavaScript](https://swe.quest/articles/compile-and-run-c-in-javascript-951e10ff9004c507.md): Bun · 2024-09-18 · Medium · 8 min read · JavaScript, C & C++, Runtimes & VMs, Performance engineering
  Bun v1.1.28 adds experimental \`cc\` in \`bun:ffi\`, which uses TinyCC to compile, link and relocate C in memory and generates inline wrappers that convert between JavaScriptCore values and C primitives with no dynamic dispatch.

## 2024-08-29

- [How we made querying Pandas DataFrames with chDB 87x faster](https://swe.quest/articles/how-we-made-querying-pandas-dataframes-with-chdb-87x-faster-1ee5b7d8017e769d.md): ClickHouse · 2024-08-29 · Medium · 8 min read · Python, Performance engineering, Query engines, Analytics & OLAP, C & C++
  chDB, the in-process embedded ClickHouse, sped up SQL queries over Pandas DataFrames 87x by replacing its original Parquet serialize/deserialize round-trip through file descriptors with a native Python table engine that reads Python objects directly.

## 2024-08-27

- [Determinism](https://swe.quest/articles/determinism-30e0d5f0db824bbe.md): Box2D · 2024-08-27 · Medium · 8 min read · Games, C & C++, Concurrency, Testing, CI/CD
  Box2D v3 achieves algorithmic, multithreaded and cross-platform determinism by default with no noticeable performance cost, verified in CI by a 'Falling Hinges' test that checks the sleep step count and a transform hash across MSVC, Clang, GCC, x64 and ARM.

## 2024-08-19

- [SIMD Matters](https://swe.quest/articles/simd-matters-f3febffdc470bd02.md): Box2D · 2024-08-19 · Hard · 8 min read · Performance engineering, Games, Algorithms, C & C++, Hardware
  Box2D 3.0 solves contact constraints with SIMD by using greedy graph coloring to group constraints so no body appears twice within a color.

## 2024-08-13

- [Introduction to ggml](https://swe.quest/articles/introduction-to-ggml-4a813c7570ba2e02.md): Hugging Face · 2024-08-13 · Medium · 12 min read · Inference & serving, C & C++, Machine learning
  ggml is a minimal C/C++ tensor library focused on Transformer inference that underpins llama.cpp, whisper.cpp, ollama and LM Studio.

## 2024-07-01

- [Introducing the WebAssembly JavaScript Promise Integration API](https://swe.quest/articles/introducing-the-webassembly-javascript-promise-integration-api-b17a598677f4452f.md): V8 · 2024-07-01 · Medium · 11 min read · WebAssembly, JavaScript, C & C++, Browsers, Concurrency
  JSPI lets WebAssembly code written against synchronous APIs call asynchronous Web APIs.

## 2024-04-25

- [Speeding up C++ build times](https://swe.quest/articles/speeding-up-c-build-times-74d542dbb5ae649d.md): Figma · 2024-04-25 · Medium · 8 min read · Build systems, C & C++, Developer productivity, Static analysis, CI/CD
  Figma halved C++ build times by attacking the volume of preprocessed bytes sent to the compiler, which had grown far faster than the codebase.

## 2024-02-20

- [Aligning Velox and Apache Arrow: Towards composable data management](https://swe.quest/articles/aligning-velox-and-apache-arrow-towards-composable-data-management-afb27bd747bab328.md): Meta Engineering · 2024-02-20 · Hard · 8 min read · Query engines, Analytics & OLAP, Data structures, Open source, C & C++
  Apache Arrow 15 adds three columnar layouts derived from Meta's Velox Vectors: StringView, ListView and Run-End-Encoding (REE).

## 2024-02-05

- [Static Roots: Objects with Compile-Time Constant Addresses](https://swe.quest/articles/static-roots-objects-with-compile-time-constant-addresses-91e4d5de9f87687b.md): V8 · 2024-02-05 · Hard · 4 min read · Runtimes & VMs, Memory management, Performance engineering, JavaScript, C & C++
  V8's static roots place the read-only heap at the start of every pointer-compression cage and generate it deterministically, so core objects like \`undefined\` get compressed addresses known at compile time (e.g. \`undefined\` is always 0x61).

## 2024-01-29

- [Option Soup: the subtle pitfalls of combining compiler flags](https://swe.quest/articles/option-soup-the-subtle-pitfalls-of-combining-compiler-flags-ee7121060b7d1c26.md): Mozilla Hacks · 2024-01-29 · Hard · 8 min read · C & C++, Debugging, Build systems, Linux, Incidents & postmortems
  A Firefox 120 beta crash in std::locale::classic() on Ubuntu 18.04 traced back to a downstream build that combined -static-libstdc++ with the linker flag -Bsymbolic-functions.

## 2023-10-03

- [CPU Dispatch in ClickHouse](https://swe.quest/articles/cpu-dispatch-in-clickhouse-5bbf7a6eb81cd552.md): ClickHouse · 2023-10-03 · Hard · 16 min read · C & C++, Performance engineering, Compilers, Hardware, Analytics & OLAP
  CPU dispatch lets a single binary use SIMD instruction sets like AVX2 and AVX-512 while staying compatible with older CPUs: hot functions are compiled for several targets with the target attribute, and the best variant is chosen at runtime using CPUID feature checks.

## 2023-09-29

- [chDB - A Rocket Engine on a Bicycle](https://swe.quest/articles/chdb-a-rocket-engine-on-a-bicycle-951148e84c12126b.md): ClickHouse · 2023-09-29 · Hard · 9 min read · Analytics & OLAP, Memory management, C & C++, Python, Performance engineering
  chDB embeds the ClickHouse engine as an in-process Python module instead of shelling out to the 500MB clickhouse-local binary, using WriteBufferFromVector, Python memoryview and Pybind11 for zero-copy result retrieval.

## 2023-09-27

- [ClickHouse Keeper: A ZooKeeper alternative written in C++](https://swe.quest/articles/clickhouse-keeper-a-zookeeper-alternative-written-in-c-982cab848c27cdde.md): ClickHouse · 2023-09-27 · Medium · 16 min read · Consensus, Distributed systems, Performance engineering, Analytics & OLAP, C & C++
  ClickHouse Keeper is a C++ drop-in replacement for ZooKeeper with the same client protocol and data model.

## 2023-05-16

- [Hash tables in ClickHouse and C++ Zero-cost Abstractions](https://swe.quest/articles/hash-tables-in-clickhouse-and-c-zero-cost-abstractions-bd1cf29e2582e0a8.md): ClickHouse · 2023-05-16 · Hard · 19 min read · Data structures, C & C++, Performance engineering, Query engines, Analytics & OLAP
  ClickHouse implements GROUP BY and JOIN with a family of open-addressing hash tables generated from a common zero-cost C++ framework, specialized by key type and workload.

## 2023-04-12

- [Speeding up LZ4 in ClickHouse](https://swe.quest/articles/speeding-up-lz4-in-clickhouse-dbbd26281ee7c0df.md): ClickHouse · 2023-04-12 · Hard · 32 min read · Performance engineering, Storage engines, C & C++, Algorithms, Analytics & OLAP
  LZ4 decompression often tops ClickHouse query profiles because highly compressible, cached columnar data shifts the cost onto CPU, yet storing data uncompressed proved impractical due to disk space.

## 2023-03-30

- [Letting users block injected third-party DLLs in Firefox](https://swe.quest/articles/letting-users-block-injected-third-party-dlls-in-firefox-848938ef2741cba1.md): Mozilla Hacks · 2023-03-30 · Hard · 12 min read · Browsers, Security, Operating systems, C & C++
  Firefox 110 lets Windows users block specific injected third-party DLLs from the about:third-party page, which also flags DLLs linked to past crashes.

## 2023-03-09

- [Introducing Velox: An open source unified execution engine](https://swe.quest/articles/introducing-velox-an-open-source-unified-execution-engine-d191dd46ed8f465e.md): Meta Engineering · 2023-03-09 · Hard · 8 min read · Query engines, Analytics & OLAP, C & C++, Performance engineering, Open source
  Velox is Meta's open source C++ execution engine that unifies the data-plane components (expression evaluation, aggregation, joins, sorting, I/O, resource management) shared by engines like Presto, Spark and PyTorch's TorchArrow.

## 2023-02-06

- [The evolution of Facebook’s iOS app architecture](https://swe.quest/articles/the-evolution-of-facebook-s-ios-app-architecture-399dd453da436a48.md): Meta Engineering · 2023-02-06 · Medium · 12 min read · Mobile, Build systems, Swift, C & C++, Performance engineering
  Facebook's iOS app grew over ten years into a C++/Objective-C++/Swift codebase built around in-house abstractions, dynamically loaded libraries, and Buck-driven code generation.

## 2022-11-23

- [JIT in ClickHouse](https://swe.quest/articles/jit-in-clickhouse-a3bd9587dc26e5d4.md): ClickHouse · 2022-11-23 · Hard · 27 min read · Compilers, Query engines, C & C++, Performance engineering, Analytics & OLAP
  Just-in-time compilation is built up from first principles: hand-encoding x86-64 instructions into an mmap'd executable page, calling back into host functions via pointers, and reading ELF sections to see where code and constants live.

## 2022-11-09

- [Adding PostgreSQL 15 support to Neon Storage using Rust](https://swe.quest/articles/adding-postgresql-15-support-to-neon-storage-using-rust-ef91ab1acfe56ae8.md): Neon · 2022-11-09 · Medium · 4 min read · Rust, PostgreSQL, C & C++, Build systems
  Neon's Rust storage engine parses Postgres WAL and data pages through bindgen-generated FFI bindings.

## 2022-10-25

- [More Than 2x Faster Hashing in ClickHouse Using Rust](https://swe.quest/articles/more-than-2x-faster-hashing-in-clickhouse-using-rust-404bde5cc500d24b.md): ClickHouse · 2022-10-25 · Medium · 5 min read · Rust, C & C++, Build systems, Performance engineering, Cryptography
  ClickHouse added optional Rust library support to its C++/CMake build using Corrosion-rs, with BLAKE3 as the first library, exposed to C++ through a Rust shim function using C-compatible FFI types and a header file.

## 2022-10-10

- [Improving Firefox responsiveness on macOS](https://swe.quest/articles/improving-firefox-responsiveness-on-macos-b8cb4da3ea0ad313.md): Mozilla Hacks · 2022-10-10 · Hard · 6 min read · Concurrency, Memory management, Performance engineering, Operating systems, C & C++
  Firefox 103 on macOS became much more responsive under load after its customized jemalloc allocator stopped using the deprecated OSSpinLock, which spins and yields in user space and can nearly live-lock on busy systems.

## 2022-07-20

- [Using Hermes’s Quicksort to run Doom: A tale of JavaScript exploitation](https://swe.quest/articles/using-hermes-s-quicksort-to-run-doom-a-tale-of-javascript-exploitation-218717db846741cf.md): Meta Engineering · 2022-07-20 · Hard · 12 min read · Vulnerability research, Runtimes & VMs, JavaScript, Memory safety, C & C++
  A fuzzer-found bug in Hermes's stable Quicksort let a comparator callback grow the array during Array.prototype.sort, so the fixed-size index vector was read out of bounds.

## 2022-06-29

- [Neural Machine Translation Engine for Firefox Translations add-on](https://swe.quest/articles/neural-machine-translation-engine-for-firefox-translations-add-on-e81e0925c599fd24.md): Mozilla Hacks · 2022-06-29 · Medium · 9 min read · WebAssembly, Inference & serving, Performance engineering, Browsers, C & C++
  Firefox Translations runs neural machine translation entirely on the client by compiling the Bergamot Translator engine, a C++ layer on the Marian framework, to WebAssembly.

## 2022-05-11

- [Our Experience Porting the YJIT Ruby Compiler to Rust](https://swe.quest/articles/our-experience-porting-the-yjit-ruby-compiler-to-rust-221d770c36dd7d35.md): Shopify Engineering · 2022-05-11 · Medium · 16 min read · Rust, Compilers, Ruby, Refactoring & migrations, C & C++
  Shopify's YJIT team ported the CRuby JIT compiler from about 11,000 lines of C99 to Rust because C's lack of modules, generics, containers and safe macros made a growing compiler hard to manage.

## 2022-03-10

- [After the Refactor: A Path to Faster Rendering with Liquid-C](https://swe.quest/articles/after-the-refactor-a-path-to-faster-rendering-with-liquid-c-69e5ad9480eaeead.md): Shopify Engineering · 2022-03-10 · Medium · 4 min read · Runtimes & VMs, Compilers, Ruby, C & C++, Refactoring & migrations
  Liquid-C's bytecode VM was refactored to replace its sequential constant pointer with per-instruction indexes into the constants array, so the instruction pointer can jump freely without recomputing constant offsets.

## 2021-11-10

- [Oilpan library · V8](https://swe.quest/articles/oilpan-library-v8-a23ba3c3b59aeb1f.md): V8 · 2021-11-10 · Hard · 5 min read · Memory management, Runtimes & VMs, C & C++, Browsers
  Oilpan, the trace-based C++ garbage collector originally built for Blink, has been extracted into a library hosted in V8 since v9.4 (enabled in Chromium M94) under the cppgc namespace.

## 2021-07-02

- [Protecting reserved roles with PostgreSQL Hooks](https://swe.quest/articles/protecting-reserved-roles-with-postgresql-hooks-2e21a72630349824.md): Supabase · 2021-07-02 · Hard · 10 min read · PostgreSQL, Identity & auth, C & C++, Multi-tenancy
  Supabase grants customers the CREATEROLE privilege while preventing them from altering or dropping its internal service roles (like supabase\_storage\_admin) via a C extension, SupaUtils, that hooks PostgreSQL's ProcessUtility\_hook.

## 2021-04-06

- [Eliminating Data Races in Firefox – A Technical Report](https://swe.quest/articles/eliminating-data-races-in-firefox-a-technical-report-5763b33d1a4f6f94.md): Mozilla Hacks · 2021-04-06 · Hard · 11 min read · Concurrency, C & C++, Rust, Debugging, Static analysis
  Mozilla deployed ThreadSanitizer across Firefox's C/C++ and Rust code, using a compiled-in suppression list to gate new races in CI while legacy ones were triaged toward a "no data races" policy.

## 2017-11-21

- [CockroachDB for Windows users](https://swe.quest/articles/cockroachdb-for-windows-users-d86bca77c0fcdef4.md): Cockroach Labs · 2017-11-21 · Medium · 7 min read · Build systems, Go, C & C++, Databases
  CockroachDB now ships native Windows binaries (Windows 8+, since v1.0-rc.1), replacing a fragile Docker-based setup that silently blocked many Windows users.

Same list as RSS: [https://swe.quest/feed.xml?tag=c-cpp](https://swe.quest/feed.xml?tag=c-cpp). Lists take `?page=`, `?per=12|24|48|96` and, on the home page, `?tag=` (up to 3), `?source=`, `?difficulty=easy|medium|hard` and `?search=`.

Browse: [Latest posts](https://swe.quest/index.md) · [Topics](https://swe.quest/tags.md) · [Sources](https://swe.quest/sources.md) · [Topic map](https://swe.quest/map.md) · [Site guide (llms.txt)](https://swe.quest/llms.txt)
