My Blog
RSS FeedHey! I'm André, a software developer from Portugal. This blog serves as a collection of things I learned and decided to write about. I'm by no means an authority on any of these topics, but I hope you find something useful here.
If for some weird reason you want to know more about me, check the About page for more info.
Featured
-
Taming Time in Game Engines
A deep dive into fixed timesteps and floating point determinism.
-
Work-Stealing Deque Part 1: The Problem with Locks
Why a central task queue becomes a bottleneck, how false sharing kills performance, and building a baseline implementation with locks.
-
Memory Magic Part 1: The Pointer is a Lie (A Dive into Virtual Memory)
Ever wondered how your computer runs multiple programs without them setting each other on fire? The answer is Virtual Memory.
Recent Posts
-
Implementing Defer in C++
Implementing a Go-style defer mechanism in C++
-
Work-Stealing Deque Part 4: The Lock-Free Thief
Completing the lock-free deque with the `steal` operation. We look at how thieves safely race against the owner and how to integrate this into a robust scheduler.
-
Work-Stealing Deque Part 3: The Lock-Free Owner
Implementing the lock-free `push` and `pop` for the deque owner, handling cache alignment, and managing the race condition when the queue becomes empty.
-
Work-Stealing Deque Part 2: Memory Ordering
Moving beyond locks requires understanding how CPUs reorder instructions. We explore atomics, acquire/release semantics, and the illusion of sequential execution.