<?xml version="1.0" encoding="utf-8" standalone="yes"?><rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:content="http://purl.org/rss/1.0/modules/content/"><channel><title>All Articles on Mechanical Snail</title><link>https://mechanicalsnail.com/posts/</link><description>Recent content in All Articles on Mechanical Snail</description><image><title>Mechanical Snail</title><url>https://mechanicalsnail.com/images/logo.png</url><link>https://mechanicalsnail.com/images/logo.png</link></image><generator>Hugo -- 0.152.2</generator><language>en-us</language><lastBuildDate>Mon, 24 Nov 2025 10:00:00 +0100</lastBuildDate><atom:link href="https://mechanicalsnail.com/posts/index.xml" rel="self" type="application/rss+xml"/><item><title>Wire Formats Compared: Protobuf, Cap'n Proto &amp; FlatBuffers</title><link>https://mechanicalsnail.com/posts/wire-formats-rust/</link><pubDate>Mon, 24 Nov 2025 10:00:00 +0100</pubDate><guid>https://mechanicalsnail.com/posts/wire-formats-rust/</guid><description>Choosing a wire format at scale: JSON, Protocol Buffers, Cap&amp;#39;n Proto, FlatBuffers, Avro and MessagePack compared on payload size, encode/decode cost, and schema evolution.</description></item><item><title>AI Trading System Architecture for Financial Markets</title><link>https://mechanicalsnail.com/posts/ai-financial-agent/</link><pubDate>Sat, 22 Nov 2025 10:00:00 +0100</pubDate><guid>https://mechanicalsnail.com/posts/ai-financial-agent/</guid><description>The architecture of production AI trading systems: data pipelines, feature engineering, prediction models, risk management and backtesting under adversarial market dynamics.</description></item><item><title>Columnar Storage in Go: Fast Financial Aggregation</title><link>https://mechanicalsnail.com/posts/columnar-storage-golang-financial/</link><pubDate>Wed, 26 Mar 2025 10:00:00 +0100</pubDate><guid>https://mechanicalsnail.com/posts/columnar-storage-golang-financial/</guid><description>Building a columnar storage engine in Go: cache-friendly memory layout, fixed-point decimal arithmetic for financial precision, SIMD-friendly aggregations, and honest benchmarks.</description></item><item><title>Building an MCP Server in Go: Graph Tools &amp; Access Control</title><link>https://mechanicalsnail.com/posts/mcp-server-golang-social-media/</link><pubDate>Tue, 25 Mar 2025 10:00:00 +0100</pubDate><guid>https://mechanicalsnail.com/posts/mcp-server-golang-social-media/</guid><description>Building a Model Context Protocol server in Go: JSON-RPC tool definitions, social graph traversal, role-based access control with inheritance, and idempotent moderation operations.</description></item><item><title>Neural Networks from Scratch in Rust</title><link>https://mechanicalsnail.com/posts/neural-networks-rust/</link><pubDate>Tue, 18 Mar 2025 10:00:00 +0100</pubDate><guid>https://mechanicalsnail.com/posts/neural-networks-rust/</guid><description>Neural networks from first principles in Rust: manual backpropagation, cache-friendly matrix operations, SIMD utilization, and where inference time is actually spent.</description></item><item><title>Caching Strategies: Cache-Aside, Write-Through &amp; Eviction</title><link>https://mechanicalsnail.com/posts/caching/</link><pubDate>Fri, 14 Feb 2025 12:00:00 +0100</pubDate><guid>https://mechanicalsnail.com/posts/caching/</guid><description>A survey of production caching strategies: cache-aside, read-through, write-through and write-back, LRU and friends as eviction policies, and the consistency trade-offs each one implies.</description></item><item><title>ML Risk Models for Nordic Power Futures &amp; GoO Portfolios</title><link>https://mechanicalsnail.com/posts/ai-nordic-power-risk/</link><pubDate>Tue, 10 Dec 2024 10:00:00 +0100</pubDate><guid>https://mechanicalsnail.com/posts/ai-nordic-power-risk/</guid><description>Machine learning risk models for Nordic power futures and Guarantees of Origin portfolios: why historical VaR underestimates fat tails and how ML captures non-linear weather dependencies.</description></item><item><title>Low-Latency Trading Systems in Rust</title><link>https://mechanicalsnail.com/posts/low-latency-trading-rust/</link><pubDate>Mon, 02 Sep 2024 10:00:00 +0100</pubDate><guid>https://mechanicalsnail.com/posts/low-latency-trading-rust/</guid><description>Engineering microsecond-latency trading systems in Rust: lock-free data structures, cache-line optimization, kernel bypass networking, and hot paths that never allocate.</description></item><item><title>LLMs &amp; Foundation Models in Recommenders (Part 6 of 6)</title><link>https://mechanicalsnail.com/posts/recommendation-systems-part6/</link><pubDate>Wed, 10 Jul 2024 14:00:00 +0100</pubDate><guid>https://mechanicalsnail.com/posts/recommendation-systems-part6/</guid><description>Part 6 of 6: foundation models, LLMs and multimodal understanding in recommendation — what changes once the ranker can actually read the content it is ranking.</description></item><item><title>Feed Ranking Architecture &amp; Operations (Part 5 of 6)</title><link>https://mechanicalsnail.com/posts/recommendation-systems-part5/</link><pubDate>Wed, 10 Jul 2024 13:00:00 +0100</pubDate><guid>https://mechanicalsnail.com/posts/recommendation-systems-part5/</guid><description>Part 5 of 6: a reference feed-ranking architecture — request flow, latency budgets, ads blending, two-tower retrieval and ranking implementations, and production monitoring.</description></item><item><title>Recommender Ethics, Fairness &amp; Governance (Part 4 of 6)</title><link>https://mechanicalsnail.com/posts/recommendation-systems-part4/</link><pubDate>Wed, 10 Jul 2024 12:00:00 +0100</pubDate><guid>https://mechanicalsnail.com/posts/recommendation-systems-part4/</guid><description>Part 4 of 6: amplification harms, filter bubbles, fairness metrics and the governance controls that keep large-scale recommendation systems accountable.</description></item><item><title>Recommendation Systems in Production (Part 3 of 6)</title><link>https://mechanicalsnail.com/posts/recommendation-systems-part3/</link><pubDate>Wed, 10 Jul 2024 11:00:00 +0100</pubDate><guid>https://mechanicalsnail.com/posts/recommendation-systems-part3/</guid><description>Part 3 of 6: running recommenders in production — offline ranking metrics, A/B testing statistics, distributed training, model serving and compression, cold start, and drift.</description></item><item><title>Ranking &amp; Re-ranking Recommendations (Part 2 of 6)</title><link>https://mechanicalsnail.com/posts/recommendation-systems-part2/</link><pubDate>Wed, 10 Jul 2024 10:00:00 +0100</pubDate><guid>https://mechanicalsnail.com/posts/recommendation-systems-part2/</guid><description>Part 2 of 6: ranking and re-ranking — pointwise, pairwise and listwise losses, Deep &amp;amp; Cross and Wide &amp;amp; Deep architectures, multi-task learning, diversity via MMR and DPP, and bandits.</description></item><item><title>Recommendation System Architecture &amp; Features (Part 1 of 6)</title><link>https://mechanicalsnail.com/posts/recommendation-systems-part1/</link><pubDate>Wed, 10 Jul 2024 09:00:00 +0100</pubDate><guid>https://mechanicalsnail.com/posts/recommendation-systems-part1/</guid><description>Part 1 of 6: the multi-stage architecture of a production recommendation system — candidate retrieval, embedding-based nearest neighbour search, and feature engineering at scale.</description></item><item><title>Social Media Platform Architecture at Scale</title><link>https://mechanicalsnail.com/posts/social-media-architecture/</link><pubDate>Sun, 08 Oct 2023 13:00:00 +0100</pubDate><guid>https://mechanicalsnail.com/posts/social-media-architecture/</guid><description>Systems architecture for an Instagram-scale social platform: fan-out on write versus read, graph sharding, feed caching, and absorbing celebrity-tier traffic spikes.</description></item><item><title>Building a Time Series Database in Go</title><link>https://mechanicalsnail.com/posts/timeseries-database-go/</link><pubDate>Sun, 11 Jun 2023 14:00:00 +0100</pubDate><guid>https://mechanicalsnail.com/posts/timeseries-database-go/</guid><description>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.</description></item><item><title>The Actor Model: Concurrency Through Message Passing</title><link>https://mechanicalsnail.com/posts/actors/</link><pubDate>Sun, 17 Apr 2022 15:44:00 +0100</pubDate><guid>https://mechanicalsnail.com/posts/actors/</guid><description>How the Actor Model replaces shared memory with message passing: its origins in Erlang, supervision trees, mailbox semantics, and where actors fit in modern distributed systems.</description></item><item><title>Vector Optimization: SIMD, Cache Lines &amp; Memory Bandwidth</title><link>https://mechanicalsnail.com/posts/vector-optimization-simd/</link><pubDate>Fri, 11 Mar 2022 10:00:00 +0100</pubDate><guid>https://mechanicalsnail.com/posts/vector-optimization-simd/</guid><description>Why vector code is memory-bound, not compute-bound: cache-line behaviour, array-of-structs versus struct-of-arrays layout, AVX vectorization, and the bandwidth ceiling.</description></item><item><title>Building a Derivatives Pricing DSL in Rust</title><link>https://mechanicalsnail.com/posts/financial-dsl-rust/</link><pubDate>Thu, 29 Apr 2021 12:00:00 +0100</pubDate><guid>https://mechanicalsnail.com/posts/financial-dsl-rust/</guid><description>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 instruments.</description></item></channel></rss>