<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
  <channel>
    <title>reading-code on semikolan</title>
    <link>https://semikolan.me/tags/reading-code/</link>
    <description>Recent content in reading-code on semikolan</description>
    <generator>Hugo</generator>
    <language>en</language>
    <lastBuildDate>Mon, 27 Jul 2026 21:19:11 +0530</lastBuildDate>
    <atom:link href="https://semikolan.me/tags/reading-code/index.xml" rel="self" type="application/rss+xml" />
    <item>
      <title>Reading the Standard Library for Fun</title>
      <link>https://semikolan.me/blog/reading-the-standard-library/</link>
      <pubDate>Thu, 11 Jun 2026 00:00:00 +0000</pubDate>
      <guid>https://semikolan.me/blog/reading-the-standard-library/</guid>
      <description>&lt;p&gt;The standard library is the best-reviewed code most of us will ever have free access to, and almost nobody reads it. I&amp;rsquo;ve started treating it like a museum you&amp;rsquo;re allowed to touch — pick one function, follow it all the way down, and notice every decision that isn&amp;rsquo;t the obvious one.&lt;/p&gt;&#xA;&lt;h2 id=&#34;sortslice-is-not-quicksort&#34;&gt;sort.Slice is not quicksort &lt;a class=&#34;anchor&#34; href=&#34;#sortslice-is-not-quicksort&#34; aria-label=&#34;Link to this section&#34;&gt;#&lt;/a&gt;&lt;/h2&gt;&#xA;&lt;p&gt;If you&amp;rsquo;d asked me to implement &lt;code&gt;sort.Slice&lt;/code&gt;, I&amp;rsquo;d have written quicksort and moved on. Go&amp;rsquo;s implementation is a &lt;em&gt;pattern-defeating&lt;/em&gt; quicksort — &lt;code&gt;pdqsort&lt;/code&gt; — and the difference is a catalogue of the ways plain quicksort betrays you in production.&lt;/p&gt;</description>
    </item>
  </channel>
</rss>
