Library

Writing

Most of what I write is about the engineering behind Beyou, published on its docs site in English and Portuguese. Experiments of my own live here, and open as a book.

Latest

Counting with threads, from Java 8 to 27

Four threads add to one shared counter. I wrote that counter seven ways, ran it on every JDK from 8 to 27, measured it with JMH, and then moved it onto virtual threads. count++ loses updates on all of them, and the order of the safe counters never moved. Virtual threads changed the most, and synchronized got slower under heavy contention on 25 and 27.

Open the book 20 pages, about 23 min

CPU Cache benchmark between array and linked list

Open the book

Self-Hosting Beyou: The Challenges and the Nice Things About Trying It

Read the post

Monitoring: The Layers I Built to Prepare Beyou for Production

Read the post

The Beyou AI Agent: Building a Resilient LLM Cascade on Free Tiers

Read the post

How the Beyou Mobile App Was Born, and the Monorepo Behind It

Read the post

How I Used Claude Code to Find 26 Security Vulnerabilities Before Deploying to Production

Read the post

Adding Cache to Beyou: 75% Faster with Caffeine

Read the post

How I Find and Solve N+1 Query Problems in Beyou

Read the post