How savepoints quietly throttled our Postgres queue
Using a SAVEPOINT per tick in a Postgres-backed job queue made every locked row carry a MultiXact ID in xmax.
Topics Compilers & runtimes
Threads, async/await, locks, lock-free structures, actors.
Search within Concurrency, or combine it with other topics →
Using a SAVEPOINT per tick in a Postgres-backed job queue made every locked row carry a MultiXact ID in xmax.
Datadog's Python profiler now reconstructs parent-child relationships between asyncio tasks so flame graphs show "stacked stacks": the logical application path rather than independent per-task stacks.
MAccConc is a set of tools for exploring thread interleavings of multi-threaded Linux kernel test cases to confirm, regression-test and eventually fuzz race condition bugs.
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.
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.
Synchronous continuous batching makes the CPU and GPU take turns, and profiling an 8B model generating 8K tokens at batch size 32 shows the GPU idle for 24% of the 300.6-second runtime while the CPU prepares batches.
pg_stat_ch is an open-source (Apache 2.0) PostgreSQL 16–18 extension that captures every statement execution, including failed queries and DDL, as a fixed-size ~4.6KB event with 45 fields and streams it to ClickHouse for APM-style analysis.
Algebraic effects in OCaml 5/OxCaml can replace monads for most uses, and Jane Street ported Hardcaml_step_testbench from a monadic API to effects.
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".
ClickHouse 25.11 parallelizes the merge phase for GROUP BY on 8- and 16-bit keys, which use an array-backed FixedHashMap.
RocksDB 10.7 rewrites parallel compression for SST generation around a lock-free ring buffer of in-progress blocks.
Turso implements SQLite-compatible BEGIN CONCURRENT using Hekaton-style MVCC, which removes SQLite's single-writer bottleneck and the SQLITE_BUSY errors that come with it.
Flash Attention 4, Tri Dao's attention kernel for Nvidia Blackwell GPUs, reportedly runs about 20% faster than cuDNN's closed-source attention kernels.
Intel engineers profiled all 43 ClickBench queries on 160–480 vCPU Xeon systems and landed a series of ClickHouse optimizations targeting lock contention, memory management and other scaling bottlenecks.
Datadog's sixth-generation real-time timeseries database (RTDB) is a Rust rewrite that unifies two earlier engines, one for scalar metrics and one for DDSketch distributions, after earlier generations built on Cassandra, Redis, MDBM, a Go B+ tree and RocksDB.
Robot policies that emit action chunks leave the robot idle during inference when run sequentially, causing lag and open-loop behaviour.
Fly.io's Rust Anycast router, fly-proxy, kept deadlocking after Catalog state was moved to lazy loading.
Meta has deployed hybrid X25519+Kyber key exchange in its Fizz TLS library for most internal service traffic, prioritizing store-now-decrypt-later protection where it controls both endpoints.
Datadog's .NET continuous profiler captures thrown exceptions through ICorProfilerCallback::ExceptionThrown and reads each exception's _message field by resolving System.Exception's ClassID from CoreLib metadata and computing the field offset with GetClassLayout.
Jane Street's OCaml extensions use a new `sync` mode to make data races statically unrepresentable in multicore OCaml 5.
TigerBeetle's I/O layer wraps io_uring on Linux and kqueue on macOS behind a single callback-based, completion-oriented API, so business logic can schedule reads and writes anywhere instead of in one giant switch loop.
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.
JavaScriptCore's garbage collector is non-compacting, generational and mostly concurrent, with heavy use of lock-free programming.
Meta built a compositional static analyzer, now part of the open source Infer framework, that detects deadlocks in Android Java code without running it.