Blog
Posts tagged “blog”.Tuning a Server for Benchmarking
Optimizing code starts with measuring it, and a measurement is only useful if it is repeatable: a 2% improvement is invisible under 5% of noise. Yet on …
Self-Hosting on the Dark Web
This site is now reachable over Tor as a hidden service, at a .onion address that resolves only inside the Tor network. Tor relays and encrypts your …
First Steps on a New Server
Over the last decade I’ve been playing with dozens of servers from multiple providers. These are the steps I’ve been perfecting to get up to …
Fundamental Theorem of Calculus
Although the notion of area is intuitive, its mathematical treatment requires a rigorous definition. This post introduces the Riemann integral, and …
Optimizing a Lock-Free Ring Buffer
A single-producer single-consumer (SPSC) queue is a great example of how far constraints can take a design. In this post, you will learn how to …
Deriving Type Erasure
Ever looked at std::any and wondered what’s going on behind the scenes? Beneath the intimidating interface is a classic technique called type …
Devirtualization and Static Polymorphism
Ever wondered why your “clean” polymorphic design underperforms in benchmarks? Virtual dispatch enables polymorphism, but it comes with …
David Álvarez Rosa
Mathematician and engineer based in sunny Dublin, passionate about low-latency, high-performance systems.
Currently working in algorithmic trading at …
2025
David Álvarez Rosa
Hi! This is my personal site, where I share notes on software and self-hosting. You’ll learn how things work under the hood, and how to make them …
2018
About this Site
After nearly a decade, I’ve rebuilt my personal site from scratch—a blog on software, self-hosting, and lessons learned along the way. This …