<?xml version="1.0" encoding="utf-8" standalone="yes"?><rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>Blog on ArshiA Akhavan</title><link>https://arshiaakhavan.me/blog/</link><description>Recent content in Blog on ArshiA Akhavan</description><generator>Hugo</generator><language>en-US</language><lastBuildDate>Wed, 24 Dec 2025 13:27:44 -0800</lastBuildDate><atom:link href="https://arshiaakhavan.me/blog/index.xml" rel="self" type="application/rss+xml"/><item><title>How efficient is the networking stack, really?</title><link>https://arshiaakhavan.me/blog/how-efficient-is-the-network-stack/</link><pubDate>Wed, 24 Dec 2025 13:27:44 -0800</pubDate><guid>https://arshiaakhavan.me/blog/how-efficient-is-the-network-stack/</guid><description>I add up the header and footer overhead of every layer, from HTTP down through TCP, IPv4 and Wi-Fi 5, to see how many bits actually go over the network when you send a single byte.</description></item><item><title>A multithreaded bug challenge</title><link>https://arshiaakhavan.me/blog/multithreaded-bug-challenge/</link><pubDate>Wed, 16 Jul 2025 09:45:24 -0800</pubDate><guid>https://arshiaakhavan.me/blog/multithreaded-bug-challenge/</guid><description>A simplified version of a multithreaded bug that took me almost half a day to find, posed as a challenge: find the interleaving that makes the assertion fail.</description></item><item><title>Trimming quotes in Rust: char patterns vs. &amp;str patterns</title><link>https://arshiaakhavan.me/blog/rust-pattern-char-vs-str/</link><pubDate>Wed, 02 Apr 2025 07:51:09 -0800</pubDate><guid>https://arshiaakhavan.me/blog/rust-pattern-char-vs-str/</guid><description>Copilot suggested trimming a quote with a &amp;amp;str pattern, but a char pattern is the better fit. A quick look at why, and at why Copilot might reach for double quotes in the first place.</description></item><item><title>Linus Torvalds on threads, processes, and tasks</title><link>https://arshiaakhavan.me/blog/linus-on-threads-and-processes/</link><pubDate>Thu, 06 Mar 2025 10:16:58 -0800</pubDate><guid>https://arshiaakhavan.me/blog/linus-on-threads-and-processes/</guid><description>A short note on a message from Linus explaining that, as far as Linux is concerned, there are no threads or processes, only tasks that share parts of their context of execution.</description></item><item><title>A C preprocessor puzzle from a job interview</title><link>https://arshiaakhavan.me/blog/preprocessor-puzzle/</link><pubDate>Tue, 04 Mar 2025 17:44:02 -0800</pubDate><guid>https://arshiaakhavan.me/blog/preprocessor-puzzle/</guid><description>A C preprocessor puzzle that was an interview question at one of the companies around here. I solved it and had fun, so here it is for you to try.</description></item><item><title>Why Android's calculator gets 10^100 + 1 - 10^100 right</title><link>https://arshiaakhavan.me/blog/apple-calculator-exact-reals/</link><pubDate>Sun, 02 Mar 2025 14:50:22 -0800</pubDate><guid>https://arshiaakhavan.me/blog/apple-calculator-exact-reals/</guid><description>Apple&amp;rsquo;s calculator says 10^100 + 1 - 10^100 is 0, while Android&amp;rsquo;s says 1. I went digging into why: floating-point precision on one side, and Boehm&amp;rsquo;s mix of exact rationals and lazily computed reals on the other.</description></item><item><title>Computing floor(log2(n)) with CLZ</title><link>https://arshiaakhavan.me/blog/floor-log2-with-clz/</link><pubDate>Sun, 19 Jan 2025 16:16:28 -0800</pubDate><guid>https://arshiaakhavan.me/blog/floor-log2-with-clz/</guid><description>A short note on the CLZ and BSR instructions and how they let you compute floor(log2(n)) without actually computing a logarithm, in C and in Rust.</description></item><item><title>The Oxford Murders and the idea of a perfect murder</title><link>https://arshiaakhavan.me/blog/the-oxford-murders/</link><pubDate>Sat, 18 Jan 2025 07:17:37 -0800</pubDate><guid>https://arshiaakhavan.me/blog/the-oxford-murders/</guid><description>Some thoughts on Guillermo Martínez&amp;rsquo;s The Oxford Murders, which I read in Persian translation: what it does with the idea of a perfect murder, plus a story-within-the-story about a king and a statue.</description></item><item><title>Starting with model checking: notes on Katoen's lectures</title><link>https://arshiaakhavan.me/blog/starting-with-model-checking/</link><pubDate>Fri, 17 Jan 2025 13:13:38 -0800</pubDate><guid>https://arshiaakhavan.me/blog/starting-with-model-checking/</guid><description>I&amp;rsquo;m starting to firm up my knowledge of verification. Here are my notes on the first few lectures of Katoen&amp;rsquo;s model checking course: program graphs, transition systems, and the road to LTL.</description></item><item><title>Building Git in Rust: notes from the CodeCrafters challenge</title><link>https://arshiaakhavan.me/blog/building-git-in-rust/</link><pubDate>Wed, 15 Jan 2025 15:46:49 -0800</pubDate><guid>https://arshiaakhavan.me/blog/building-git-in-rust/</guid><description>I did the CodeCrafters Git challenge in Rust. These are my notes on the parts I found most interesting: Git&amp;rsquo;s object storage, its plumbing commands, and packfiles.</description></item></channel></rss>