Mechanical Snail

Methodically crawling through caches, concurrency, and chaos...at a pace slower than drying paint

Browse by topic

Posts

AI Trading System Architecture for Financial Markets
AI
· Svein Erik · 17 min read

AI Trading System Architecture for Financial Markets

The architecture of production AI trading systems: data pipelines, feature engineering, prediction models, risk management and backtesting under adversarial market dynamics.

Columnar Storage in Go: Fast Financial Aggregation
Go
· Svein Erik · 21 min read

Columnar Storage in Go: Fast Financial Aggregation

Building a columnar storage engine in Go: cache-friendly memory layout, fixed-point decimal arithmetic for financial precision, SIMD-friendly aggregations, and honest benchmarks.

Neural Networks from Scratch in Rust
Rust
· Svein Erik · 31 min read

Neural Networks from Scratch in Rust

Neural networks from first principles in Rust: manual backpropagation, cache-friendly matrix operations, SIMD utilization, and where inference time is actually spent.

Low-Latency Trading Systems in Rust
Rust
· Svein Erik · 52 min read

Low-Latency Trading Systems in Rust

Engineering microsecond-latency trading systems in Rust: lock-free data structures, cache-line optimization, kernel bypass networking, and hot paths that never allocate.

Social Media Platform Architecture at Scale
Systems
· Svein Erik · 30 min read

Social Media Platform Architecture at Scale

Systems architecture for an Instagram-scale social platform: fan-out on write versus read, graph sharding, feed caching, and absorbing celebrity-tier traffic spikes.

Building a Time Series Database in Go
Go
· Svein Erik · 44 min read

Building a Time Series Database in Go

Inside a high-performance time series database in Go: LSM-style storage, delta-of-delta and Gorilla compression, inverted label indexes, and range query execution.

Building a Derivatives Pricing DSL in Rust
Rust
· Svein Erik · 17 min read

Building a Derivatives Pricing DSL in Rust

Designing a type-safe DSL in Rust for valuing futures and forwards: the pricing mathematics, a typed expression language, and an evaluation engine for portfolios of thousands of …