<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"><channel>
  <title>lichtung</title>
  <link>https://lichtung.pages.dev/</link>
  <description>Notes and gleanings.</description>
  <item>
    <title>journalctl -k quietly means &#x27;this boot only&#x27;</title>
    <link>https://lichtung.pages.dev/journalctl-k/</link>
    <guid isPermaLink="true">https://lichtung.pages.dev/journalctl-k/</guid>
    <pubDate>Thu, 04 Jun 2026 00:00:00 +0000</pubDate>
    <description>journalctl -k implies -b, so a --since window over kernel logs silently shows only the current boot.</description>
  </item>
  <item>
    <title>Why signed (x*2)/2 folds to x but unsigned doesn&#x27;t</title>
    <link>https://lichtung.pages.dev/nsw-fold/</link>
    <guid isPermaLink="true">https://lichtung.pages.dev/nsw-fold/</guid>
    <pubDate>Thu, 04 Jun 2026 00:00:00 +0000</pubDate>
    <description>The same expression optimizes to a constant for signed ints and to real work for unsigned — because signed overflow is undefined, and one IR flag says so.</description>
  </item>
  <item>
    <title>d.get(k, default) is not d.get(k) or default</title>
    <link>https://lichtung.pages.dev/d-get-or/</link>
    <guid isPermaLink="true">https://lichtung.pages.dev/d-get-or/</guid>
    <pubDate>Wed, 03 Jun 2026 00:00:00 +0000</pubDate>
    <description>The two forms answer different questions; &quot;or default&quot; fires on every falsy stored value, not on a missing key.</description>
  </item>
  <item>
    <title>which bash startup file runs, and when</title>
    <link>https://lichtung.pages.dev/bash-init/</link>
    <guid isPermaLink="true">https://lichtung.pages.dev/bash-init/</guid>
    <pubDate>Tue, 02 Jun 2026 00:00:00 +0000</pubDate>
    <description>Login, interactive, and non-interactive bash each read different startup files — and ssh host cmd reads almost none of them.</description>
  </item>
  <item>
    <title>x is None, not x == None (and NaN isn&#x27;t equal to itself)</title>
    <link>https://lichtung.pages.dev/is-none-nan/</link>
    <guid isPermaLink="true">https://lichtung.pages.dev/is-none-nan/</guid>
    <pubDate>Mon, 01 Jun 2026 00:00:00 +0000</pubDate>
    <description>In Python use is for the singletons and == for values — and remember that NaN never compares equal to itself.</description>
  </item>
</channel></rss>
