Skip to content

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

C & C++ Remove topic C & C++ Clear all 22 posts RSS

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.

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

The quest for software engineering knowledge.

Look:
Layout: