Journal
Thoughts, theories, and deep dives into software engineering and cybersecurity.
Cache-Friendly Matrix and Tensor Layouts: Blocking, Tiling, and Data-Structure Choices
Practical techniques for arranging matrices and tensors to maximize cache utilization on modern CPUs and accelerators. C...
Designing Efficient Undo/Redo with Command Logs and Persistent Data Structures
Practical patterns for building fast, reliable undo/redo using command logs and persistent data structures. Focuses on i...
Quantile-Tracking Algorithms for Streaming Data: t-Digest, GK, and Reservoir Sampling Comparisons
Compare t-digest, Greenwald-Khanna (GK), and reservoir sampling for tracking quantiles on streaming data. Practical trad...
Hierarchical Timing Wheels and Bucketed Priority Queues for High-Performance Timers
Hierarchical timing wheels and bucketed priority queues provide low-overhead, scalable timer management for networking s...
Detecting and Repairing Data Structure Corruption: Tools and Techniques for Production Systems
Practical methods to detect and repair in-memory and on-disk data structure corruption in production systems, with tooli...
Designing Multi-Region Database Replication for Low-Latency Reads and Strong Consistency Tradeoffs
Architect patterns for replicating databases across regions balance sub-10ms reads with consistency guarantees. This art...
Practical Approaches to Schema Migration in High-Traffic Production Databases
Hands-on strategies for performing schema changes in high-traffic production databases with minimal downtime and risk. C...
Choosing Between Row and Columnar Storage for Analytical Workloads
Deciding between row and columnar storage shapes query speed, storage efficiency, and system architecture for analytics....
Implementing Bitemporal Tables: Modeling, Queries, and Auditability
Bitemporal tables track both transaction time and valid time, enabling auditable state reconstruction and correct histor...