<?xml version="1.0" encoding="UTF-8"?><rss version="2.0" xmlns:content="http://purl.org/rss/1.0/modules/content/">
  <channel>
    <title>Nat Knight</title>
    <link>http://natknight.xyz/</link>
    <description>Reflections, diversions, and opinions from a progressive ex-physicist programmer dad with a sore back.</description>
    <pubDate>Mon, 23 Nov 2026 03:38:12 -0700</pubDate>
    <item>
      <title>Self-hosting a Software Factory: Part 2, It&#39;s the error states, stupid!</title>
      <link>http://natknight.xyz/self-hosting-a-software-factory-part-2-its-the-error-states-stupid</link>
      <description>&lt;![CDATA[#project #selfhosting #llms #agents&#xA;&#xA;My self-hosted software factory is coming along!&#xA;&#xA;!--more--&#xA;&#xA;After a bit of research I settled on Incus as my sandboxing technology (it&#39;s not unlike Docker, but uses actual VMs instead of containers).&#xA;I&#39;ve figured out how to use the EYG CLI as an &#34;oracle&#34; in my containers and tests.&#xA;I&#39;ve figured out how to safely store and manage code (with git-bundle).&#xA;I&#39;m using a Django app (hey, I said it could be janky) as my coordinator.&#xA;&#xA;As I build out the coordinator I&#39;m finding the places where the complexity was hiding, and as usual it&#39;s mostly in the error cases.&#xA;&#xA;A naive model of how this system should work is tantalizingly simple: work goes in one end, the agent does the work, commits land on main:&#xA;&#xA;Diagram: Tickets / Specs flow into Agent Runs, which produce Commits.&#xA;&#xA;But of course, sometimes the agent won&#39;t converge, or commits will introduce bugs:&#xA;&#xA;Diagram: the same flow, with arrows looping back to Tickets / Specs from Agent Runs (non-convergence or ambiguity) and from Commits (bugs).&#xA;&#xA;That&#39;s fine, part of how the factory works is by catching and automatically fixing bugs.&#xA;&#xA;But then, of course, there are the cases where jobs fail for exogenous reasons: expired keys, resource limitations, home server networking hiccups or power outages. These introduce a lot of possible corrupt states, and often necessitate human intervention:&#xA;&#xA;Diagram: the previous flow, plus arrows from Tickets / Specs and Agent Runs down to a Human Intervention box (infra errors, elevated permissions).&#xA;&#xA;And, oh yeah, we were going to have a bunch of tests here. What if the agent finishes but the CI or holdout tests fail?&#xA;&#xA;Diagram: the previous flow with a Tests stage between Agent Runs and Commits; failing tests loop back to Tickets / Specs as bugs or escalate to Human Intervention.&#xA;&#xA;I&#39;m sure there are other failure modes I haven&#39;t thought of.&#xA;&#xA;Once this project is over I look forward to seeing how others have tackled this:&#xA;&#xA;Is it irreducible complexity? Do you just need to deal with it?&#xA;Is there a re-framing, a fundamental abstraction, or a different set of primitives that makes the problem dramatically simpler?&#xA;Is it way more efficient to just sandbox and manually manage an agent powered by a high-end model? (I suspect it may be.)&#xA;Do I learn enough that I want to tear this factory apart and re-build it?&#xA;&#xA;Only time will tell!&#xA;]]&gt;</description>
      <content:encoded><![CDATA[<p><a href="http://natknight.xyz/tag:project" class="hashtag"><span>#</span><span class="p-category">project</span></a> <a href="http://natknight.xyz/tag:selfhosting" class="hashtag"><span>#</span><span class="p-category">selfhosting</span></a> <a href="http://natknight.xyz/tag:llms" class="hashtag"><span>#</span><span class="p-category">llms</span></a> <a href="http://natknight.xyz/tag:agents" class="hashtag"><span>#</span><span class="p-category">agents</span></a></p>

<p>My <a href="https://natknight.xyz/self-hosting-a-software-factory-part-1">self-hosted software factory</a> is coming along!</p>


<ul><li>After a bit of research I settled on <a href="https://linuxcontainers.org/incus/">Incus</a> as my sandboxing technology (it&#39;s not unlike Docker, but uses actual VMs instead of containers).</li>
<li>I&#39;ve figured out how to use the <a href="https://eyg.run/guides/install-a-prebuilt-binary">EYG CLI</a> as an “oracle” in my containers and tests.</li>
<li>I&#39;ve figured out how to safely store and manage code (with <a href="https://git-scm.com/docs/git-bundle"><code>git-bundle</code></a>).</li>
<li>I&#39;m using a Django app (hey, I said it could be janky) as my coordinator.</li></ul>

<p>As I build out the coordinator I&#39;m finding the places where the complexity was hiding, and as usual it&#39;s mostly in the error cases.</p>

<p>A naive model of how this system should work is tantalizingly simple: work goes in one end, the agent does the work, commits land on <code>main</code>:</p>

<p><img src="https://natknight.xyz/static/factory2/factory-1-naive.svg" alt="Diagram: Tickets / Specs flow into Agent Runs, which produce Commits."></p>

<p>But of course, sometimes the agent won&#39;t converge, or commits will introduce bugs:</p>

<p><img src="https://natknight.xyz/static/factory2/factory-2-bugs.svg" alt="Diagram: the same flow, with arrows looping back to Tickets / Specs from Agent Runs (non-convergence or ambiguity) and from Commits (bugs)."></p>

<p>That&#39;s fine, part of how the factory works is by catching and automatically fixing bugs.</p>

<p>But then, of course, there are the cases where jobs fail for exogenous reasons: expired keys, resource limitations, home server networking hiccups or power outages. These introduce a <em>lot</em> of possible corrupt states, and often necessitate human intervention:</p>

<p><img src="https://natknight.xyz/static/factory2/factory-3-human.svg" alt="Diagram: the previous flow, plus arrows from Tickets / Specs and Agent Runs down to a Human Intervention box (infra errors, elevated permissions)."></p>

<p>And, oh yeah, we were going to have a bunch of tests here. What if the agent finishes but the CI or holdout tests fail?</p>

<p><img src="https://natknight.xyz/static/factory2/factory-4-tests.svg" alt="Diagram: the previous flow with a Tests stage between Agent Runs and Commits; failing tests loop back to Tickets / Specs as bugs or escalate to Human Intervention."></p>

<p>I&#39;m sure there are other failure modes I haven&#39;t thought of.</p>

<p>Once this project is over I look forward to seeing how others have tackled this:</p>
<ul><li>Is it irreducible complexity? Do you just need to deal with it?</li>
<li>Is there a re-framing, a fundamental abstraction, or a different set of primitives that makes the problem dramatically simpler?</li>
<li>Is it way more efficient to just sandbox and manually manage an agent powered by a high-end model? (I suspect it may be.)</li>
<li>Do I learn enough that I want to tear this factory apart and re-build it?</li></ul>

<p>Only time will tell!</p>
]]></content:encoded>
      <guid>http://natknight.xyz/self-hosting-a-software-factory-part-2-its-the-error-states-stupid</guid>
      <pubDate>Wed, 11 Nov 2026 03:41:27 +0000</pubDate>
    </item>
    <item>
      <title>Self-Hosting Obsidian Backups</title>
      <link>http://natknight.xyz/self-hosting-obsidian-backups</link>
      <description>&lt;![CDATA[#selfhosting #guide #backups #obsidian&#xA;&#xA;I use Obsidian to store all my notes (not because I&#39;m a Zettelkasten sicko, I just like having a nice Markdown editor that syncs to my phone). But I want my own copy outside the app, just in case.&#xA;&#xA;!--more--&#xA;&#xA;I&#39;m not rebuilding their paid sync service (I&#39;m happy to pay for them to store and sync my notes), but I want to guard against:&#xA;&#xA;extended network outage&#xA;data loss or ransomware attacks&#xA;me losing my end-to-end encryption password&#xA;&#xA;It turns out it&#39;s fairly easy to take offline backups of your Obsidian vaults.&#xA;&#xA;First, you&#39;ll need a host for this to run on. I run mine on my home server with direct-attached storage where all my files live (and get encrypted and backed up to the cloud nightly).&#xA;&#xA;Install obsidian-headless, a command-line client for Obsidian Sync (I happen to use mise; you could use npm or Nix or whatever you prefer). Note that this requires an Obsidian Sync account, so it won&#39;t work if you&#39;re not paying for one of those.&#xA;&#xA;mise use --global node@24 npm:obsidian-headless&#xA;&#xA;You should now have a command called ob; use it to log in and set up the sync. If $VAULTNAME is the name of the vault you&#39;re backing up and $BACKUPDIR is the path to the directory where you want to store your notes locally:&#xA;&#xA;ob login  # this takes your Obsidian account password&#xA;ob sync-setup --vault &#34;$VAULTNAME&#34; --path &#34;$BACKUPDIR&#34;  # this takes your E2EE password&#xA;ob sync-config --path &#34;$BACKUPDIR&#34; --mode pull-only&#xA;&#xA;I set it to pull-only to prevent my backup from interfering with the vault (e.g. a disk fails, the vault looks empty, and syncing deletes the remote).&#xA;&#xA;Finally, set up a recurring job (I used a systemd timer; again, you could use any number of things) to run the sync regularly.&#xA;&#xA;The sync command is:&#xA;&#xA;mise exec -- ob sync --path &#34;$BACKUPDIR&#34;&#xA;&#xA;Check that it runs automatically and you&#39;re set: you now have a backup copy of your notes that gets updated in the background.&#xA;]]&gt;</description>
      <content:encoded><![CDATA[<p><a href="http://natknight.xyz/tag:selfhosting" class="hashtag"><span>#</span><span class="p-category">selfhosting</span></a> <a href="http://natknight.xyz/tag:guide" class="hashtag"><span>#</span><span class="p-category">guide</span></a> <a href="http://natknight.xyz/tag:backups" class="hashtag"><span>#</span><span class="p-category">backups</span></a> <a href="http://natknight.xyz/tag:obsidian" class="hashtag"><span>#</span><span class="p-category">obsidian</span></a></p>

<p>I use <a href="https://obsidian.md">Obsidian</a> to store all my notes (not because I&#39;m a Zettelkasten sicko, I just like having a nice Markdown editor that syncs to my phone). But I want my own copy outside the app, just in case.</p>



<p>I&#39;m not rebuilding their paid sync service (I&#39;m happy to pay for them to store and sync my notes), but I want to guard against:</p>
<ul><li>extended network outage</li>
<li>data loss or ransomware attacks</li>
<li>me losing my end-to-end encryption password</li></ul>

<p>It turns out it&#39;s fairly easy to take offline backups of your Obsidian vaults.</p>

<p>First, you&#39;ll need a host for this to run on. I run mine on my home server with direct-attached storage where all my files live (and get encrypted and backed up to the cloud nightly).</p>

<p>Install <a href="https://www.npmjs.com/package/obsidian-headless"><code>obsidian-headless</code></a>, a command-line client for Obsidian Sync (I happen to use <code>mise</code>; you could use npm or Nix or whatever you prefer). Note that this requires an Obsidian Sync account, so it won&#39;t work if you&#39;re not paying for one of those.</p>

<pre><code class="language-sh">mise use --global node@24 npm:obsidian-headless
</code></pre>

<p>You should now have a command called <code>ob</code>; use it to log in and set up the sync. If <code>$VAULTNAME</code> is the name of the vault you&#39;re backing up and <code>$BACKUP_DIR</code> is the path to the directory where you want to store your notes locally:</p>

<pre><code class="language-sh">ob login  # this takes your Obsidian account password
ob sync-setup --vault &#34;$VAULTNAME&#34; --path &#34;$BACKUP_DIR&#34;  # this takes your E2EE password
ob sync-config --path &#34;$BACKUP_DIR&#34; --mode pull-only
</code></pre>

<p>I set it to <code>pull-only</code> to prevent my backup from interfering with the vault (e.g. a disk fails, the vault looks empty, and syncing deletes the remote).</p>

<p>Finally, set up a recurring job (I used a <a href="https://wiki.archlinux.org/title/Systemd/Timers">systemd timer</a>; again, you could use any number of things) to run the sync regularly.</p>

<p>The sync command is:</p>

<pre><code class="language-sh">mise exec -- ob sync --path &#34;$BACKUP_DIR&#34;
</code></pre>

<p>Check that it runs automatically and you&#39;re set: you now have a backup copy of your notes that gets updated in the background.</p>
]]></content:encoded>
      <guid>http://natknight.xyz/self-hosting-obsidian-backups</guid>
      <pubDate>Tue, 20 Oct 2026 03:44:50 +0000</pubDate>
    </item>
    <item>
      <title>Self-hosting a Software Factory: Part 1</title>
      <link>http://natknight.xyz/self-hosting-a-software-factory-part-1</link>
      <description>&lt;![CDATA[#project #selfhosting #llms #agents&#xA;&#xA;One of the ways that folks are leveraging LLM-powered agents to do software development is the &#34;software factory&#34; (or [&#34;software dark factory&#34;]) pattern, where the LLMs write all the code and the humans aren&#39;t allowed to even review it.&#xA;&#xA;[&#34;software dark factory&#34;]: https://www.danshapiro.com/blog/2026/01/the-five-levels-from-spicy-autocomplete-to-the-software-factory/&#xA;&#xA;Apparently this works, though you need a good way to verify your product. I&#39;m a little skeptical that it&#39;s the best way to use these tools, but it&#39;s an interesting idea, so I&#39;m going to try to build one for myself.&#xA;&#xA;!--more--&#xA;&#xA;The Project&#xA;&#xA;I&#39;m cheating a little bit by picking a project that&#39;s embarrassingly easy to verify: a new interpreter for an extant programming language.&#xA;&#xA;The programming language is called [EYG] and has many interesting and desirable properties:&#xA;&#xA;functional style + a sound type system&#xA;immutable dependencies&#xA;deterministic execution&#xA;the editor tooling and compiler are independent of the runtime (so I don&#39;t have to implement them!)&#xA;&#xA;[EYG]: https://eyg.run&#xA;&#xA;Its only annoying drawback is that its interpreter is in JavaScript (compiled from Gleam, but running on Node). I&#39;d really prefer a native interpreter, or better still, a Rust library that can execute EYG code.&#xA;&#xA;Lucky for me, I have:&#xA;&#xA;access to LLMs that can cheaply churn out code, and&#xA;an &#34;oracle&#34; that can see if my project is working properly, i.e. the existing EYG interpreter.&#xA;&#xA;So that&#39;s the project: a Rust library + easily deployable binary that can interpret EYG code.&#xA;&#xA;The Rules&#xA;&#xA;The project will be split into two repos, each with different rules:&#xA;&#xA;eyg-rs is the actual interpreter/library:&#xA;&#xA;I&#39;m not allowed to write or review code here. I can peek in occasionally for quality control, but that should be the exception.&#xA;The work needs to be mediated by an automated system, not me manually driving an agent.&#xA;The code needs to end up correct, efficient, and clean.&#xA;All agent-driven work must happen in a sandbox on my own hardware.&#xA;&#xA;I&#39;m trying to learn about the factory pattern, so I actually have to build one. I could almost certainly just point Claude Code at the EYG spec and have it converge on a working interpreter, but that wouldn&#39;t teach me anything about the system that&#39;s managing the work.&#xA;&#xA;Keeping it sandboxed is a precaution against an agent hosing my home lab.&#xA;&#xA;Figuring out how to get it clean and efficient is, of course, part of the challenge.&#xA;&#xA;eyg-rs-factory is the system that tracks work, manages the agent, and validates the final product:&#xA;&#xA;I can read and write code here, including using agents to do it for me.&#xA;I can use my tools in whatever mode gets the job done.&#xA;This code can be arbitrarily janky as long as it works.&#xA;&#xA;This is where the learning happens, so it gets to be hands-on and sloppy if that&#39;s what it takes.&#xA;&#xA;I&#39;ve started building it, but it&#39;s not working yet. I&#39;ll let you know how it goes once it&#39;s closing tickets!]]&gt;</description>
      <content:encoded><![CDATA[<p><a href="http://natknight.xyz/tag:project" class="hashtag"><span>#</span><span class="p-category">project</span></a> <a href="http://natknight.xyz/tag:selfhosting" class="hashtag"><span>#</span><span class="p-category">selfhosting</span></a> <a href="http://natknight.xyz/tag:llms" class="hashtag"><span>#</span><span class="p-category">llms</span></a> <a href="http://natknight.xyz/tag:agents" class="hashtag"><span>#</span><span class="p-category">agents</span></a></p>

<p>One of the ways that folks are leveraging LLM-powered agents to do software development is the “software factory” (or <a href="https://www.danshapiro.com/blog/2026/01/the-five-levels-from-spicy-autocomplete-to-the-software-factory/">“software dark factory”</a>) pattern, where the LLMs write all the code and the humans aren&#39;t allowed to even <em>review</em> it.</p>

<p>Apparently this works, though you need a good way to verify your product. I&#39;m <a href="https://natknight.xyz/link-how-strongdms-ai-team-build-serious-software-without-even-looking-at-the">a little skeptical</a> that it&#39;s the best way to use these tools, but it&#39;s an interesting idea, so I&#39;m going to try to build one for myself.</p>



<h2 id="the-project" id="the-project">The Project</h2>

<p>I&#39;m cheating a little bit by picking a project that&#39;s embarrassingly easy to verify: a new interpreter for an extant programming language.</p>

<p>The programming language is called <a href="https://eyg.run">EYG</a> and has many interesting and desirable properties:</p>
<ul><li>functional style + a sound type system</li>
<li>immutable dependencies</li>
<li>deterministic execution</li>
<li>the editor tooling and compiler are independent of the runtime (so I don&#39;t have to implement them!)</li></ul>

<p>Its only annoying drawback is that its interpreter is in JavaScript (compiled from Gleam, but running on Node). I&#39;d really prefer a native interpreter, or better still, a Rust library that can execute EYG code.</p>

<p>Lucky for me, I have:</p>
<ul><li>access to LLMs that can cheaply churn out code, and</li>
<li>an “oracle” that can see if my project is working properly, i.e. the existing EYG interpreter.</li></ul>

<p>So that&#39;s the project: a Rust library + easily deployable binary that can interpret EYG code.</p>

<h2 id="the-rules" id="the-rules">The Rules</h2>

<p>The project will be split into two repos, each with different rules:</p>

<p><a href="https://github.com/nathanielknight/eyg-rs">eyg-rs</a> is the actual interpreter/library:</p>
<ul><li>I&#39;m <strong>not allowed to write or review code</strong> here. I can peek in occasionally for quality control, but that should be the exception.</li>
<li>The work needs to be mediated by an <strong>automated system</strong>, not me manually driving an agent.</li>
<li>The code needs to end up <strong>correct, efficient, and clean</strong>.</li>
<li>All agent-driven work must happen <strong>in a sandbox</strong> on my own hardware.</li></ul>

<p>I&#39;m trying to learn about the factory pattern, so I actually have to <em>build</em> one. I could almost certainly just point Claude Code at the EYG spec and have it converge on a working interpreter, but that wouldn&#39;t teach me anything about the system that&#39;s managing the work.</p>

<p>Keeping it sandboxed is a precaution against an agent hosing my home lab.</p>

<p>Figuring out how to get it clean and efficient is, of course, part of the challenge.</p>

<p><a href="https://github.com/nathanielknight/eyg-rs-factory">eyg-rs-factory</a> is the system that tracks work, manages the agent, and validates the final product:</p>
<ul><li>I can read and write code here, including using agents to do it for me.</li>
<li>I can use my tools in whatever mode gets the job done.</li>
<li>This code can be <strong>arbitrarily janky</strong> as long as it works.</li></ul>

<p>This is where the learning happens, so it gets to be hands-on and sloppy if that&#39;s what it takes.</p>

<p>I&#39;ve started building it, but it&#39;s not working yet. I&#39;ll let you know how it goes once it&#39;s closing tickets!</p>
]]></content:encoded>
      <guid>http://natknight.xyz/self-hosting-a-software-factory-part-1</guid>
      <pubDate>Fri, 16 Oct 2026 21:10:18 +0000</pubDate>
    </item>
    <item>
      <title>Software Development as a Caretaking Profession</title>
      <link>http://natknight.xyz/software-development-as-a-caretaking-profession</link>
      <description>&lt;![CDATA[ethics&#xA;&#xA;Inspired by Ed Yong&#39;s talk where he proposes the ways in which journalism can be viewed as a caretaking profession, I&#39;ve been thinking about the way that software development can be a caretaking profession.&#xA;&#xA;!--more--&#xA;&#xA;Some software, like medical device firmware or public services delivery, has a pretty clear caretaking dimension. There&#39;s software that&#39;s clearly in the opposite pole as well, like addictive gambling games or surveillance tools.&#xA;&#xA;But there&#39;s lots of software in the middle: enterprise apps, networking and communication infrastructure, games, online stores for essential or niche goods. How can we look at that from a caretaking standpoint?&#xA;&#xA;When you&#39;re building software, someone is going to be spending time and attention on it. These things should be precious. I think this is the most important caretaking angle.&#xA;&#xA;Someone will also probably have to make changes to the software in the future, and it will consume power, compute, storage, and networking. I think these aren&#39;t quite as important as being gentle on the human users, but they also matter.&#xA;&#xA;So when you&#39;re making software, care is:&#xA;&#xA;Being mindful of the user&#39;s time, attention, and frustration tolerance&#xA;&#xA;Never losing a user&#39;s work; letting them go back to previous states&#xA;&#xA;Avoiding long waits, intrusive notifications, loading spinners, etc.&#xA;&#xA;Making things easy to navigate or search&#xA;&#xA;Being mindful of the resources that you&#39;re consuming&#xA;&#xA;Admitting that you don&#39;t know what to build, what to store, what to log, and figuring out how to do a good job anyways&#xA;&#xA;Learning a little more than you need to, writing more than the bare minimum operational docs, and putting in a little extra polish to make development easier in the future&#xA;&#xA;Telling the boss &#34;no&#34; (as scary as that is) when you&#39;re told to build something haphazard or sketchy&#xA;]]&gt;</description>
      <content:encoded><![CDATA[<p><a href="http://natknight.xyz/tag:ethics" class="hashtag"><span>#</span><span class="p-category">ethics</span></a></p>

<p>Inspired by <a href="https://xoxofest.com/2024/videos/ed-yong/">Ed Yong&#39;s talk</a> where he proposes the ways in which journalism can be viewed as a caretaking profession, I&#39;ve been thinking about the way that software development can be a caretaking profession.</p>



<p>Some software, like medical device firmware or public services delivery, has a pretty clear caretaking dimension. There&#39;s software that&#39;s clearly in the opposite pole as well, like addictive gambling games or surveillance tools.</p>

<p>But there&#39;s lots of software in the middle: enterprise apps, networking and communication infrastructure, games, online stores for essential or niche goods. How can we look at that from a caretaking standpoint?</p>

<p>When you&#39;re building software, <em>someone</em> is going to be spending time and attention on it. These things should be precious. I think this is the most important caretaking angle.</p>

<p>Someone will also probably have to make changes to the software in the future, and it will consume power, compute, storage, and networking. I think these aren&#39;t quite as important as being gentle on the human users, but they also matter.</p>

<p>So when you&#39;re making software, care is:</p>
<ul><li><p>Being mindful of the user&#39;s time, attention, and frustration tolerance</p></li>

<li><p>Never losing a user&#39;s work; letting them go back to previous states</p></li>

<li><p>Avoiding long waits, intrusive notifications, loading spinners, etc.</p></li>

<li><p>Making things easy to navigate or search</p></li>

<li><p>Being mindful of the resources that you&#39;re consuming</p></li>

<li><p>Admitting that you don&#39;t know what to build, what to store, what to log, and figuring out how to do a good job anyways</p></li>

<li><p>Learning a little more than you need to, writing more than the bare minimum operational docs, and putting in a little extra polish to make development easier in the future</p></li>

<li><p>Telling the boss “no” (as scary as that is) when you&#39;re told to build something haphazard or sketchy</p></li></ul>
]]></content:encoded>
      <guid>http://natknight.xyz/software-development-as-a-caretaking-profession</guid>
      <pubDate>Mon, 01 Jun 2026 18:21:36 +0000</pubDate>
    </item>
    <item>
      <title>The value is in the pieces</title>
      <link>http://natknight.xyz/the-value-is-in-the-pieces</link>
      <description>&lt;![CDATA[#vibecoding #opensource #thanks&#xA;&#xA;A little while ago I found myself wanting a very particular minimal text editor—something approximating the UI of iA writer but with 1% of its features and no monthly subscription. I tried a few different products, tried tinkering with the configuration VS Code and Helix, but nothing was exactly what I wanted.&#xA;&#xA;Being a hip, with-it software guy I knew I could get an LLM to put together a custom text editor for me, and eventually I did, but the process was illuminating.&#xA;&#xA;!--more--&#xA;&#xA;My first thought was to make a TUI. I’m in the terminal a lot anyways, and what could be more minimal than a text-based text editor? I fired up a Rust project and kicked the tires on some TUI libraries. Once I was satisfied that I had some good primitive’s I set my agent to the task.&#xA;&#xA;It did not end well. I had a plausible looking editor in no time, but it turns out text editing is really hard. Text flow, line breaking, and making the cursor feel smooth were all persistent challenges, and as soon as I fixed one problem some new flavour of jank crept in. I eventually gave up on this approach.&#xA;&#xA;Luckily, I’m not the only person who wants smooth text editing. I knew there must be a library that could handle the mechanics of writing. Perhaps I could build around that?&#xA;&#xA;This avenue proved much more fruitful. There are lots of tools for packaging “web” code as a native app (I chose Tauri]), LLMs can sling CSS and TypeScript well enough, and [CodeMirror continues to be a gem. I pretty quickly had something good enough: it had the UI I wanted, it felt smooth and snappy to use, and the code was compact enough that I could review it easily. I named it [Proser] and threw it on GitHub for good measure. I’ve been using it ever since.&#xA;&#xA;[tehyt]: https://lord.io/text-editing-hates-you-too/&#xA;&#xA;[codemirror]: https://natknight.xyz/replace-a-textarea-with-codemirror-in-30-lines-of-code-and-30-minutes&#xA;&#xA;[Tauri]: https://github.com/tauri-apps/tauri&#xA;&#xA;[Proser]: https://github.com/nathanielknight/proser&#xA;&#xA;So what did I learn?&#xA;&#xA;Identifying the core of what you need is always the hardest problem, even when you&#39;re scratching your own itch.&#xA;A good open source library is a precious thing.&#xA;Finding components for LLMs to combine is a really, really good way to make stuff. &#xA;&#xA;LLMs feel like magic. But they can’t touch the deeper magic that smart, passionate human beings will do the hard, endless work of solving a problem, wrapping the solution in a clean interface with good docs, and then give it to the world as a gift. May peace, health, prosperity and wellbeing be upon such generous people.]]&gt;</description>
      <content:encoded><![CDATA[<p><a href="http://natknight.xyz/tag:vibecoding" class="hashtag"><span>#</span><span class="p-category">vibecoding</span></a> <a href="http://natknight.xyz/tag:opensource" class="hashtag"><span>#</span><span class="p-category">opensource</span></a> <a href="http://natknight.xyz/tag:thanks" class="hashtag"><span>#</span><span class="p-category">thanks</span></a></p>

<p>A little while ago I found myself wanting a very particular minimal text editor—something approximating the UI of <a href="https://ia.net/writer">iA writer</a> but with 1% of its features and no monthly subscription. I tried a few different products, tried tinkering with the configuration VS Code and Helix, but nothing was exactly what I wanted.</p>

<p>Being a hip, with-it software guy I knew I could get an LLM to put together a custom text editor for me, and eventually I did, but the process was illuminating.</p>



<p>My first thought was to make a TUI. I’m in the terminal a lot anyways, and what could be more minimal than a text-based text editor? I fired up a Rust project and kicked the tires on some TUI libraries. Once I was satisfied that I had some good primitive’s I set my agent to the task.</p>

<p>It did not end well. I had a plausible looking editor in no time, but it turns out text editing is <a href="https://lord.io/text-editing-hates-you-too/">really hard</a>. Text flow, line breaking, and making the cursor feel smooth were all persistent challenges, and as soon as I fixed one problem some new flavour of jank crept in. I eventually gave up on this approach.</p>

<p>Luckily, I’m not the only person who wants smooth text editing. I knew there must be a library that could handle the mechanics of writing. Perhaps I could build around that?</p>

<p>This avenue proved much more fruitful. There are lots of tools for packaging “web” code as a native app (I chose <a href="https://github.com/tauri-apps/tauri">Tauri</a>), LLMs can sling CSS and TypeScript well enough, and <a href="https://natknight.xyz/replace-a-textarea-with-codemirror-in-30-lines-of-code-and-30-minutes">CodeMirror</a> continues to be a gem. I pretty quickly had something good enough: it had the UI I wanted, it felt smooth and snappy to use, and the code was compact enough that I could review it easily. I named it <a href="https://github.com/nathanielknight/proser">Proser</a> and threw it on GitHub for good measure. I’ve been using it ever since.</p>

<p>So what did I learn?</p>
<ul><li>Identifying the core of what you need is always the hardest problem, even when you&#39;re scratching your own itch.</li>
<li>A good open source library is a precious thing.</li>
<li>Finding components for LLMs to combine is a really, really good way to make stuff.</li></ul>

<p>LLMs feel like magic. But they can’t touch the deeper magic that smart, passionate human beings will do the hard, endless work of solving a problem, wrapping the solution in a clean interface with good docs, and then give it to the world as a gift. May peace, health, prosperity and wellbeing be upon such generous people.</p>
]]></content:encoded>
      <guid>http://natknight.xyz/the-value-is-in-the-pieces</guid>
      <pubDate>Sat, 28 Mar 2026 21:53:07 +0000</pubDate>
    </item>
    <item>
      <title>The Unbearable Effectiveness of Being Able to Run the Damn Code</title>
      <link>http://natknight.xyz/the-unbearable-effectiveness-of-being-able-to-run-the-damn-code</link>
      <description>&lt;![CDATA[#practices #rant&#xA;&#xA;I&#39;ve worked on computer systems in many different environments: cloud-native serverless functions, self-managed virtual servers, embedded devices, pushing code for on-prem bare-metal racks that I&#39;m not allowed to look at, much less touch. My experience across all these projects has falsified a lot of opinions, but there&#39;s one thing I believed when I first started coding and still believe now, perhaps more than ever:&#xA;&#xA;You need to be able to run the damn code.&#xA;&#xA;!--more--&#xA;&#xA;Whether you&#39;re starting a new feature, testing your implementation, or trying to root-cause some gnarly bug, you need to be able to run the damn code.&#xA;&#xA;Whether you&#39;re shotgunning printlns, attaching a debugger, or grinding out bugs with fuzzing, you need to be able to run the damn code.&#xA;&#xA;Whether you&#39;re a senior operating at the highest levels of architecture, a junior hanging on by your fingernails, or somewhere in the middle trying to level up, you need to be able to run the damn code.&#xA;&#xA;Whatever your scaling challenges, cost constraints, compliance requirements, ideological loyalties to this or that technology the thing you should never give up, no matter what the content marketing or the case studies or the highly paid consultants say is the ability to run the damn code.&#xA;&#xA;Not &#34;we have a functional core that we run in a serverless shell.&#34; Not &#34;we have a staging environment that developers can access.&#34; Not &#34;you can spin up an emulator for this data service that mostly works except for this long list of caveats.&#34; You need to be able to run the code on your own hardware with full access, zero marginal cost, and total visibility into the process.&#xA;&#xA;Anything less will become a productivity destroying, team blocking, project killing obstacle.&#xA;&#xA;This means:&#xA;&#xA;Writing code that can run in an environment you can emulate: prefer containers to cloud functions unless you have a very good reason&#xA;Use software that can be obtained without approval: either use an open source database or pony up for as many licenses as you have developers&#xA;Write your code to be run: it can be a compose file that emulates production or a local Kubernetes environment, but it can&#39;t be a pile of shell scripts and implicit state (unless you have someone who&#39;s extremely good at shell scripts)&#xA;Write down all the state: Keep your infrastructure definitions in version control and run them. A lot. Do devops as &#34;developers can operate the system&#34;, not &#34;we have someone whose job is YAML and AWS certifications&#34;&#xA;&#xA;And of course having a coding agent makes this so much more true. Having a system you can inspect yourself is necessary. Having a system that an fast-working, dogged, and reasonably capable LLM-driven tool can interact with and iterate on without worrying about costs or permissions or dropping a database that you needed, actually--that&#39;s glorious.]]&gt;</description>
      <content:encoded><![CDATA[<p><a href="http://natknight.xyz/tag:practices" class="hashtag"><span>#</span><span class="p-category">practices</span></a> <a href="http://natknight.xyz/tag:rant" class="hashtag"><span>#</span><span class="p-category">rant</span></a></p>

<p>I&#39;ve worked on computer systems in many different environments: cloud-native serverless functions, self-managed virtual servers, embedded devices, pushing code for on-prem bare-metal racks that I&#39;m not allowed to look at, much less touch. My experience across all these projects has falsified a lot of opinions, but there&#39;s one thing I believed when I first started coding and still believe now, perhaps more than ever:</p>

<p>You need to be able to run the damn code.</p>



<p>Whether you&#39;re starting a new feature, testing your implementation, or trying to root-cause some gnarly bug, you need to be able to run the damn code.</p>

<p>Whether you&#39;re shotgunning <code>println</code>s, attaching a debugger, or grinding out bugs with fuzzing, you need to be able to run the damn code.</p>

<p>Whether you&#39;re a senior operating at the highest levels of architecture, a junior hanging on by your fingernails, or somewhere in the middle trying to level up, you need to be able to run the damn code.</p>

<p>Whatever your scaling challenges, cost constraints, compliance requirements, ideological loyalties to this or that technology the thing you should <em>never</em> give up, no matter what the content marketing or the case studies or the highly paid consultants say is the <strong>ability to run the damn code</strong>.</p>

<p>Not “we have a functional core that we run in a serverless shell.” Not “we have a staging environment that developers can access.” Not “you can spin up an emulator for this data service that mostly works except for this long list of caveats.” You need to be able to run the code on your own hardware with full access, zero marginal cost, and total visibility into the process.</p>

<p>Anything less will become a productivity destroying, team blocking, project killing obstacle.</p>

<p>This means:</p>
<ul><li>Writing code that can run in an environment you can emulate: prefer containers to cloud functions unless you have a <em>very</em> good reason</li>
<li>Use software that can be obtained without approval: either use an open source database or pony up for as many licenses as you have developers</li>
<li>Write your code to be run: it can be a <code>compose</code> file that emulates production or a local Kubernetes environment, but it can&#39;t be a pile of shell scripts and implicit state (unless you have someone who&#39;s <em>extremely</em> good at shell scripts)</li>
<li>Write down all the state: Keep your infrastructure definitions in version control and run them. A lot. Do devops as “developers can operate the system”, not “we have someone whose job is YAML and AWS certifications”</li></ul>

<p>And of <em>course</em> having a coding agent makes this so much more true. Having a system you can inspect yourself is necessary. Having a system that an fast-working, dogged, and reasonably capable LLM-driven tool can interact with and iterate on without worrying about costs or permissions or dropping a database that you needed, actually—<em>that&#39;s</em> glorious.</p>
]]></content:encoded>
      <guid>http://natknight.xyz/the-unbearable-effectiveness-of-being-able-to-run-the-damn-code</guid>
      <pubDate>Wed, 18 Feb 2026 18:46:32 +0000</pubDate>
    </item>
    <item>
      <title>Link: How StrongDM’s AI team build serious software without even looking at the code</title>
      <link>http://natknight.xyz/link-how-strongdms-ai-team-build-serious-software-without-even-looking-at-the</link>
      <description>&lt;![CDATA[From Simon Willison&#39;s blog.&#xA;&#xA;This is an interesting piece of work! A small team built a bunch of software in a short time by leveraging a whole lot of LLM assistance both for building their software and for validating it.&#xA;&#xA;The main things that are new to me in this story are:&#xA;&#xA;Building digital twins of third-party services like Google Docs that you can test against without rate limits.&#xA;Keeping validation scenarios away from the processes doing the building so that they can be &#34;independently verified&#34; by another agent (kind of like a holdout set in machine learning).&#xA;&#xA;I think there are some interesting things in this writeup (though I&#39;d love to see more details about how they build their digital twins), but I have some fundamental concerns as well.&#xA;&#xA;Primarily, even if you keep your validation scenarios hidden, if they&#39;re being done by an LLM they&#39;re inherently probabilistic and could be hiding nasty surprises, especially security problems caused by weird adversarial inputs. Even though Claude can write pretty good code, is very fast, and sometimes catches things that I miss, I&#39;m still not comfortable putting my name on software without a closely reviewed and deterministic validation step.&#xA;&#xA;It also sounds like there are some easily avoidable code quality. I think bringing taste and good practices to a repo is an important part of your work as a senior engineer, and something that can pay dividends as agents follow the patterns that you&#39;ve laid down.]]&gt;</description>
      <content:encoded><![CDATA[<p>From <a href="https://simonwillison.net/2026/Feb/7/software-factory/">Simon Willison&#39;s blog</a>.</p>

<p>This is an interesting piece of work! A small team built a bunch of software in a short time by leveraging a whole lot of LLM assistance both for building their software and for validating it.</p>

<p>The main things that are new to me in this story are:</p>
<ul><li>Building digital twins of third-party services like Google Docs that you can test against without rate limits.</li>
<li>Keeping validation scenarios away from the processes doing the building so that they can be “independently verified” by another agent (kind of like a holdout set in machine learning).</li></ul>

<p>I think there are some interesting things in this writeup (though I&#39;d love to see more details about how they build their digital twins), but I have some fundamental concerns as well.</p>

<p>Primarily, even if you keep your validation scenarios hidden, if they&#39;re being done by an LLM they&#39;re inherently probabilistic and could be hiding nasty surprises, especially security problems caused by weird adversarial inputs. Even though Claude can write pretty good code, is very fast, and sometimes catches things that I miss, I&#39;m still not comfortable putting my name on software without a closely reviewed and deterministic validation step.</p>

<p>It also <a href="https://news.ycombinator.com/item?id=46927737">sounds like</a> there are some easily avoidable code quality. I think bringing taste and good practices to a repo is an important part of your work as a senior engineer, and something that can pay dividends as agents follow the patterns that you&#39;ve laid down.</p>
]]></content:encoded>
      <guid>http://natknight.xyz/link-how-strongdms-ai-team-build-serious-software-without-even-looking-at-the</guid>
      <pubDate>Mon, 09 Feb 2026 20:38:43 +0000</pubDate>
    </item>
    <item>
      <title>Preparing for Advent of Code 2025 with Unison</title>
      <link>http://natknight.xyz/preparing-for-aoc-2025-with-unison</link>
      <description>&lt;![CDATA[#unison #adventofcode #aoc2025&#xA;&#xA;Advent of Code] is back again and I&#39;m joining in the fun! This year, I&#39;ll try solving it with [Unison], a statically typed functional language with some very neat ideas about content-addressable source code and distributed computing. It has a proprietary cloud backend, but you can also [run it on your own machines, and it recently had its 1.0 release.&#xA;&#xA;[Advent of Code]: https://adventofcode.com&#xA;[Unison]: https://www.unison-lang.org&#xA;&#xA;What follows are my very first ignorant baby steps coding in Unison.&#xA;&#xA;!--more--&#xA;&#xA;Pure Functional Programming&#xA;&#xA;I have some experience with other pure functional programming languages. There will, of course, be some differences, but I&#39;m going to assume that I can pick it up as I work through the puzzles. That&#39;s what AoC is all about!&#xA;&#xA;If you&#39;re not familiar with this style of programming, I recommend Elm or Clojure as starting places. They&#39;re quite different (Elm is a little closer to Unison), but both very illuminating, and more approachable if you&#39;re coming from something like Python or JavaScript.&#xA;&#xA;The Unison Codebase Manager&#xA;&#xA;When I&#39;ve worked on Advent of Code in the past I&#39;ve used languages like Chapel, Rust, or Gleam where you write code in files, you edit code in files, and you run code from files.&#xA;&#xA;Unison... doesn&#39;t work like that.&#xA;&#xA;You do write your code in text files, but rather than living there you load it into your content-addressed, append-only codebase with a tool called the Unison Codebase Manager (or ucm).&#xA;&#xA;It feels a bit like using a REPL: you write your code, ucm watches for changes and does type checking, runs tests, etc. When you&#39;re satisfied with the code you&#39;re working on you run an update command at the ucm prompt and your functions are imported.&#xA;&#xA;I followed the tour of the Unison workflow to get a feel for how it works. I wouldn&#39;t say it&#39;s comfortable yet, but I&#39;m ready to get started which is all we need!&#xA;&#xA;Reading Puzzle Input&#xA;&#xA;Rather than using the Advent of Code API I like to get my puzzle inputs manually, read them from a file, and then paste the output to check. I&#39;m a bear of little brain, and sometimes I need to get hands on with debugging my code!&#xA;&#xA;To approach AoC this way I need to know how to:&#xA;&#xA;Read input from a file&#xA;Parse that input into a data structure&#xA;Print output to the terminal&#xA;&#xA;This is slightly complicated by the way Unison handles &#34;effects&#34;, which includes things like input and output. Full treatment is beyond the scope of this writeup, but the relevant functions are documented in base.IO.&#xA;&#xA;Printing a file is easy enough: we can use printLine anywhere in our main function. Reading a file involves constructing the path, opening the file, and reading it as text.&#xA;&#xA;Putting these parts together looks something like:&#xA;&#xA;main : &#39;{IO, Exception} ()&#xA;main =&#xA;    use IO *&#xA;    do&#xA;        inputPath = FilePath &#34;input/foo.txt&#34;&#xA;        inputHandle = open inputPath Read&#xA;        input = getAllText inputHandle&#xA;        printLine input&#xA;&#xA;Parsing is trickier.&#xA;&#xA;There are tools in the base language for doing parsing, but they&#39;re quite simplistic. In particular, they don&#39;t handle parsing recursive structures, which is something that past AoC puzzles have required. On the other hand, sometimes puzzles start with tidy nested structures but then switch to considering the input in a more ad-hoc fashion.&#xA;&#xA;For now, I&#39;ll try using the built-in parsing tools, but I&#39;ll figure out how to bring in a more sophisticated parsing library if I need it.&#xA;&#xA;Sharing Solutions&#xA; Another lovely feature of AoC is reading solutions from other developers. Seriously: BurntSushi&#39;s 2018 solutions in Rust taught me more about working in that language than hours of noodling on code did.&#xA;&#xA;Unison programmers seem to share code on Unison Share instead of GitHub. There&#39;s even an Advent of Code template pinned to the front page!&#xA;&#xA;I followed the instructions in Unison share code hosting to get a feel for this. I&#39;m not sure if my code will be valuable to anyone, but I&#39;ll publish it here anyways!&#xA;&#xA;]]&gt;</description>
      <content:encoded><![CDATA[<p><a href="http://natknight.xyz/tag:unison" class="hashtag"><span>#</span><span class="p-category">unison</span></a> <a href="http://natknight.xyz/tag:adventofcode" class="hashtag"><span>#</span><span class="p-category">adventofcode</span></a> <a href="http://natknight.xyz/tag:aoc2025" class="hashtag"><span>#</span><span class="p-category">aoc2025</span></a></p>

<p><a href="https://adventofcode.com">Advent of Code</a> is back again and I&#39;m joining in the fun! This year, I&#39;ll try solving it with <a href="https://www.unison-lang.org">Unison</a>, a statically typed functional language with some very neat ideas about content-addressable source code and distributed computing. It has a proprietary cloud backend, but you can also <a href="https://www.unison-lang.org/blog/cloud-byoc/">run it on your own machines</a>, and it <a href="https://www.unison-lang.org/unison-1-0/">recently had its 1.0 release</a>.</p>

<p>What follows are my very first ignorant baby steps coding in Unison.</p>



<h2 id="pure-functional-programming" id="pure-functional-programming">Pure Functional Programming</h2>

<p>I have some experience with other pure functional programming languages. There will, of course, be some differences, but I&#39;m going to assume that I can pick it up as I work through the puzzles. That&#39;s what AoC is all about!</p>

<p>If you&#39;re <em>not</em> familiar with this style of programming, I recommend <a href="https://elm-lang.org">Elm</a> or <a href="https://clojure.org">Clojure</a> as starting places. They&#39;re quite different (Elm is a little closer to Unison), but both very illuminating, and more approachable if you&#39;re coming from something like Python or JavaScript.</p>

<h2 id="the-unison-codebase-manager" id="the-unison-codebase-manager">The Unison Codebase Manager</h2>

<p>When I&#39;ve worked on Advent of Code in the past I&#39;ve used languages like Chapel, Rust, or Gleam where you write code in files, you edit code in files, and you run code from files.</p>

<p>Unison... doesn&#39;t work like that.</p>

<p>You <em>do</em> write your code in text files, but rather than living there you load it into your content-addressed, append-only codebase with a tool called the Unison Codebase Manager (or <code>ucm</code>).</p>

<p>It feels a bit like using a REPL: you write your code, <code>ucm</code> watches for changes and does type checking, runs tests, etc. When you&#39;re satisfied with the code you&#39;re working on you run an <code>update</code> command at the <code>ucm</code> prompt and your functions are imported.</p>

<p>I followed the <a href="https://www.unison-lang.org/docs/tour/">tour of the Unison workflow</a> to get a feel for how it works. I wouldn&#39;t say it&#39;s comfortable yet, but I&#39;m ready to get started which is all we need!</p>

<h2 id="reading-puzzle-input" id="reading-puzzle-input">Reading Puzzle Input</h2>

<p>Rather than using the Advent of Code API I like to get my puzzle inputs manually, read them from a file, and then paste the output to check. I&#39;m a bear of little brain, and sometimes I need to get hands on with debugging my code!</p>

<p>To approach AoC this way I need to know how to:</p>
<ul><li>Read input from a file</li>
<li>Parse that input into a data structure</li>
<li>Print output to the terminal</li></ul>

<p>This is slightly complicated by the way Unison handles “effects”, which includes things like input and output. Full treatment is beyond the scope of this writeup, but the relevant functions are <a href="https://share.unison-lang.org/@unison/base/code/releases/7.4.2/latest/types/IO">documented in base.IO</a>.</p>

<p>Printing a file is easy enough: we can use <code>printLine</code> anywhere in our <code>main</code> function. Reading a file involves constructing the path, opening the file, and reading it as text.</p>

<p>Putting these parts together looks something like:</p>

<pre><code class="language-unison">main : &#39;{IO, Exception} ()
main =
    use IO *
    do
        inputPath = FilePath &#34;input/foo.txt&#34;
        inputHandle = open inputPath Read
        input = getAllText inputHandle
        printLine input
</code></pre>

<p>Parsing is trickier.</p>

<p>There are <a href="https://share.unison-lang.org/@unison/base/code/main/@g18fbfsnp5t9difgcd4hlv7fft0edplsq6sj6ipmoitf72t4ti6ds43g747sple2679tv0c598jm2k6rvd9f0brpg9dmitca08lnvi0/types/Pattern">tools</a> in the base language for doing parsing, but they&#39;re quite simplistic. In particular, they don&#39;t handle parsing recursive structures, which is something that past AoC puzzles have required. On the other hand, sometimes puzzles <em>start</em> with tidy nested structures but then switch to considering the input in a more ad-hoc fashion.</p>

<p>For now, I&#39;ll try using the built-in parsing tools, but I&#39;ll figure out how to bring in a <a href="https://share.unison-lang.org/@dfreeman/yap">more sophisticated parsing library</a> if I need it.</p>

<h2 id="sharing-solutions" id="sharing-solutions">Sharing Solutions</h2>

<p> Another lovely feature of AoC is reading solutions from other developers. Seriously: <a href="https://github.com/BurntSushi/advent-of-code">BurntSushi&#39;s 2018 solutions in Rust</a> taught me more about working in that language than hours of noodling on code did.</p>

<p>Unison programmers seem to share code on <a href="https://share.unison-lang.org">Unison Share</a> instead of GitHub. There&#39;s even an <a href="https://share.unison-lang.org/@unison/advent-of-code">Advent of Code template</a> pinned to the front page!</p>

<p>I followed the instructions in <a href="https://www.unison-lang.org/docs/tooling/unison-share/">Unison share code hosting</a> to get a feel for this. I&#39;m not sure if my code will be valuable to anyone, but I&#39;ll publish it <a href="https://share.unison-lang.org/@nathanielknight/aoc2025">here</a> anyways!</p>
]]></content:encoded>
      <guid>http://natknight.xyz/preparing-for-aoc-2025-with-unison</guid>
      <pubDate>Tue, 25 Nov 2025 22:40:27 +0000</pubDate>
    </item>
    <item>
      <title>Snaste</title>
      <link>http://natknight.xyz/im-a-sucker-for-an-arcane-word-and-i-recently-learned-a-real-good-one</link>
      <description>&lt;![CDATA[I’m a sucker for an arcane word, and I recently learned a real good one. Quoting from Merriam Webster:&#xA;&#xA;&lt;blockquote cite=&#34;https://www.merriam-webster.com/dictionary/snaste&#xA;&#34;  strongsnaste/strong (noun, obsolete):&#xA;pThe wick of a snuffed candle/p&#xA;/blockquote&#xA;&#xA;What I love about this word is how it conjures up feelings that could only have existed in the past.&#xA;&#xA;!--more--&#xA;&#xA;I might read about changing technology, how in the past light-after-sunset was an expensive luxury and a messy, sooty, stinking affair. I might imagine the advent of clean-burning oil or electric light, or examine graphs of economic indicators and see how they track the adoption of new modes of lighting.&#xA;&#xA;But none of that could make me look at a snuffed out candle and appreciate it as something with parts that I’d care about enough to call by name. It wouldn’t occur to me to differentiate a wick from a snaste, but somebody did, which means they were thinking about candles a whole dang lot. I can imagine, vividly, the feeling of picking up a taper and finding the wick broken, and exclaiming, “a pox on thee Jeremy, thou hast marred my snaste and now my taper is all jacked up.”&#xA;&#xA;The past is always more complicated and more remote than you think. How lucky to glimpse it, even fleetingly. &#xA;&#xA;]]&gt;</description>
      <content:encoded><![CDATA[<p>I’m a sucker for an arcane word, and I recently learned a real good one. Quoting from <a href="https://www.merriam-webster.com/dictionary/snaste">Merriam Webster</a>:</p>

<blockquote cite="https://www.merriam-webster.com/dictionary/snaste">
<strong>snaste</strong> (noun, obsolete):
<p>The wick of a snuffed candle</p></blockquote>

<p>What I love about this word is how it conjures up feelings that could only have existed in the past.</p>



<p>I might read about changing technology, how in the past light-after-sunset was an expensive luxury and a messy, sooty, stinking affair. I might imagine the advent of clean-burning oil or electric light, or examine graphs of economic indicators and see how they track the adoption of new modes of lighting.</p>

<p>But none of that could make me look at a snuffed out candle and appreciate it as something with parts that I’d care about enough to call by name. It wouldn’t occur to me to differentiate a wick from a snaste, but somebody did, which means they were thinking about candles a whole dang lot. I can imagine, vividly, the feeling of picking up a taper and finding the wick broken, and exclaiming, “a pox on thee Jeremy, thou hast marred my snaste and now my taper is all jacked up.”</p>

<p>The past is always more complicated and more remote than you think. How lucky to glimpse it, even fleetingly.</p>
]]></content:encoded>
      <guid>http://natknight.xyz/im-a-sucker-for-an-arcane-word-and-i-recently-learned-a-real-good-one</guid>
      <pubDate>Tue, 07 Oct 2025 05:05:44 +0000</pubDate>
    </item>
    <item>
      <title>A foot gun in ripgrep</title>
      <link>http://natknight.xyz/a-foot-gun-in-ripgrep</link>
      <description>&lt;![CDATA[#ripgrep #tool #footgun&#xA;&#xA;I adore ripgrep. It&#39;s fast, it&#39;s convenient, and I&#39;ve never wanted a feature and found it missing.&#xA;&#xA;But no software is perfect, and today ripgrep was the program causing problems.&#xA;&#xA;div style=&#34;border-radius: 1em; background: aliceblue; padding: 1em; border: 1px solid blue;&#34;&#xA;h2Update/h2&#xA;pAndrew Gallant (the author of RipGrep) a href=&#34;https://bsky.app/profile/burntsushi.net/post/3lvt7jzqejc2v&#34;kindly pointed out on BlueSky/a that you can also address this by running a command in your repo:/p&#xA;&#xA;precodeecho &#39;!/.github/&#39;     .rgignore/code/pre&#xA;&#xA;pThanks Andrew!/p&#xA;/div&#xA;!--more--&#xA;&#xA;By default, ripgrep doesn&#39;t search everything. It checks your .gitignore for example, which is wonderful when you don&#39;t want to be searching all of nodemodules. It also ignores hidden files and that&#39;s what bit me today.&#xA;&#xA;See GitHub Actions are stored under .github/workflows/, so when I removed a particular file and rg&#39;d through my whole codebase making sure it wasn&#39;t used anywhere I missed that it was used in some GitHub Actions.&#xA;&#xA;Easily fixed, but how to make sure I don&#39;t get bit again?&#xA;&#xA;We can search hidden files (but ignore .git/) with&#xA;&#xA;rg --hidden --glob=!.git/&#xA;&#xA;but that&#39;s a bit of a pain to type for a tool I use many times daily.&#xA;&#xA;It turns out ripgrep does have a configuration file that you can activate by setting an environment variable (RIPGREPCONFIGPATH).&#xA;&#xA;After a bit of fussing with fish to get the variable set properly, I ended up with this in my shell config:&#xA;&#xA;set -gx RIPGREPCONFIG_PATH $HOME/.config/ripgreprc&#xA;&#xA;and this in my ripgreprc:&#xA;&#xA;--hidden&#xA;--glob=!.git/&#xA;&#xA;And now I&#39;m on to bigger and better (or at least different) problems.&#xA;]]&gt;</description>
      <content:encoded><![CDATA[<p><a href="http://natknight.xyz/tag:ripgrep" class="hashtag"><span>#</span><span class="p-category">ripgrep</span></a> <a href="http://natknight.xyz/tag:tool" class="hashtag"><span>#</span><span class="p-category">tool</span></a> <a href="http://natknight.xyz/tag:footgun" class="hashtag"><span>#</span><span class="p-category">footgun</span></a></p>

<p>I adore <a href="https://github.com/burntsushi/ripgrep">ripgrep</a>. It&#39;s fast, it&#39;s convenient, and I&#39;ve never wanted a feature and found it missing.</p>

<p>But no software is perfect, and today ripgrep was the program causing problems.</p>

<p><div style="border-radius: 1em; background: aliceblue; padding: 1em; border: 1px solid blue;">
<h2>Update</h2>
<p>Andrew Gallant (the author of RipGrep) <a href="https://bsky.app/profile/burntsushi.net/post/3lvt7jzqejc2v">kindly pointed out on BlueSky</a> that you can also address this by running a command in your repo:</p></p>

<pre><code>echo &#39;!/.github/&#39; &gt;&gt; .rgignore</code></pre>

<p><p>Thanks Andrew!</p>
</div>
</p>

<p>By default, ripgrep doesn&#39;t search everything. It checks your <code>.gitignore</code> for example, which is wonderful when you don&#39;t want to be searching all of <code>node_modules</code>. It also ignores <a href="https://en.wikipedia.org/wiki/Hidden_file_and_hidden_directory">hidden files</a> and that&#39;s what bit me today.</p>

<p>See GitHub Actions are stored under <code>.github/workflows/</code>, so when I removed a particular file and <code>rg</code>&#39;d through my whole codebase making sure it wasn&#39;t used anywhere I missed that it was used in some GitHub Actions.</p>

<p>Easily fixed, but how to make sure I don&#39;t get bit again?</p>

<p>We can search hidden files (but ignore <code>.git/</code>) with</p>

<pre><code>rg --hidden --glob=!.git/*
</code></pre>

<p>but that&#39;s a bit of a pain to type for a tool I use many times daily.</p>

<p>It turns out ripgrep does have a <a href="https://github.com/BurntSushi/ripgrep/blob/master/GUIDE.md#configuration-file">configuration file</a> that you can activate by setting an environment variable (<code>RIPGREP_CONFIG_PATH</code>).</p>

<p>After a bit of fussing with <a href="https://fishshell.com/docs/current/language.html">fish</a> to get the variable set properly, I ended up with this in my shell config:</p>

<pre><code class="language-fish">set -gx RIPGREP_CONFIG_PATH $HOME/.config/ripgreprc
</code></pre>

<p>and this in my <code>ripgreprc</code>:</p>

<pre><code>--hidden
--glob=!.git/*
</code></pre>

<p>And now I&#39;m on to bigger and better (or at least different) problems.</p>
]]></content:encoded>
      <guid>http://natknight.xyz/a-foot-gun-in-ripgrep</guid>
      <pubDate>Wed, 23 Jul 2025 23:49:28 +0000</pubDate>
    </item>
  </channel>
</rss>