<?xml version="1.0" encoding="utf-8" standalone="yes"?><rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>Unsafe on sunshowers</title><link>https://sunshowers.io/tags/unsafe/</link><description>Recent content in Unsafe on sunshowers</description><generator>Hugo</generator><language>en-us</language><copyright>© Rain 2020-present. Licensed under
&lt;a rel="license" href="https://creativecommons.org/licenses/by-nc-sa/4.0"&gt;CC BY-NC-SA 4.0&lt;/a&gt;
unless marked otherwise.
&lt;!--# Theme based on Terminal by panr, and used under the MIT license: https://github.com/panr/hugo-theme-terminal --&gt;</copyright><lastBuildDate>Tue, 02 Jun 2026 00:00:00 +0000</lastBuildDate><atom:link href="https://sunshowers.io/tags/unsafe/index.xml" rel="self" type="application/rss+xml"/><item><title>iddqd, or the hardest kind of unsafe Rust</title><link>https://sunshowers.io/posts/iddqd-unsafe/</link><pubDate>Tue, 02 Jun 2026 00:00:00 +0000</pubDate><guid>https://sunshowers.io/posts/iddqd-unsafe/</guid><description>&lt;p&gt;&lt;em&gt;Mirrored from the canonical version on the &lt;a href="https://oxide.computer/blog/iddqd-unsafe"&gt;Oxide blog&lt;/a&gt;.&lt;/em&gt;&lt;/p&gt;
&lt;p&gt;I&amp;rsquo;m the main author of &lt;a href="https://docs.rs/iddqd"&gt;&lt;code&gt;iddqd&lt;/code&gt;&lt;/a&gt;, a Rust library for maps (named after the &lt;a href="https://doomwiki.org/wiki/Doom_cheat_codes#All_Doom_engine_versions"&gt;Doom cheat code&lt;/a&gt;) where keys are borrowed from values. At &lt;a href="https://oxide.computer/"&gt;Oxide&lt;/a&gt; we use it extensively in &lt;a href="https://github.com/oxidecomputer/omicron"&gt;Omicron&lt;/a&gt;, our control plane—the software that &lt;a href="https://rfd.shared.oxide.computer/rfd/0048"&gt;sits&lt;/a&gt; at the heart of every Oxide rack, provisions resources like compute and storage for our customers, and ensures the rack stays up and running over time. &lt;code&gt;iddqd&lt;/code&gt; maintains in-memory indexes of the kinds of large records that show up everywhere in a system like that, such as &lt;a href="https://github.com/oxidecomputer/omicron/blob/2e319eb3b9b9fcffb8cee71cffb9cd13397cb316/sled-agent/config-reconciler/src/internal_disks.rs#L602-L637"&gt;disks&lt;/a&gt; or &lt;a href="https://github.com/oxidecomputer/omicron/blob/2e319eb3b9b9fcffb8cee71cffb9cd13397cb316/nexus/types/src/inventory.rs#L682-L717"&gt;sled inventories&lt;/a&gt;. As a result, it must be correct: if it misbehaves, our control plane can malfunction in ways that are unpredictable and hard to diagnose.&lt;/p&gt;</description></item></channel></rss>