Skip to content

In development. Expect rough edges and changes. The source code is not public yet.

Topics Languages

C & C++

2026

ClickHouse

Memory safety for Postgres extensions in C/C++

Case study 4 min +40 XP

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.

Together AI

To Infinity and Beyond: ThunderKittens Now on NVIDIA Vera Rubin NVL72!

Deep dive 11 min +110 XP

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.

RocksDB Blog

Native Async/Coroutine Reads in RocksDB

Deep dive 10 min +100 XP

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.

OpenAI

Core dump epidemiology: fixing an 18-year-old bug

Case study 16 min +160 XP

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.

ClickHouse

Announcing Silk: a silky smooth fiber runtime for ClickHouse

Announcement 11 min +110 XP

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.

2025

ClickHouse

chDB Kernel Upgrade Journey: Upgrading ClickHouse to v25.8.2.29

Case study 16 min +160 XP

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.

2024

2023

2022

2021

The quest for software engineering knowledge.

Look:
Layout: