<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
  <channel>
    <title>Perfect Lunacy</title>
    <link>https://perfectlunacy.com/</link>
    <description>Recent content on Perfect Lunacy</description>
    <generator>Hugo -- gohugo.io</generator>
    <language>en-us</language>
    <managingEditor>lucas@perfectlunacy.com (Lucas)</managingEditor>
    <webMaster>lucas@perfectlunacy.com (Lucas)</webMaster>
    <lastBuildDate>Fri, 23 Oct 2026 13:56:48 -0700</lastBuildDate>
    <atom:link href="https://perfectlunacy.com/index.xml" rel="self" type="application/rss+xml" />
    <item>
      <title>A Million Lines of Code</title>
      <link>https://perfectlunacy.com/posts/a_million_lines_of_code/</link>
      <pubDate>Fri, 23 Oct 2026 13:56:48 -0700</pubDate><author>lucas@perfectlunacy.com (Lucas)</author>
      <guid>https://perfectlunacy.com/posts/a_million_lines_of_code/</guid>
      <description>I&amp;rsquo;ve always been a tinkerer. I like to learn by building things.&#xA;The other day, I wondered how much of an impact LLM-aided development has had on my side projects. I know I&amp;rsquo;ve worked on, uh, quite a few things, but I hadn&amp;rsquo;t actually counted up.&#xA;So I checked.&#xA;In the past 18 months, I&amp;rsquo;ve worked on 73 different projects. Some of them, admittedly, didn&amp;rsquo;t make it much past the wild hair idea phase, but still - over the past 18 months, I&amp;rsquo;ve committed 1.</description>
    </item>
    <item>
      <title>Condition/Restart in Ruby</title>
      <link>https://perfectlunacy.com/posts/conditions_rb/</link>
      <pubDate>Tue, 01 Sep 2026 20:19:52 -0700</pubDate><author>lucas@perfectlunacy.com (Lucas)</author>
      <guid>https://perfectlunacy.com/posts/conditions_rb/</guid>
      <description>Ruby is my favorite programming language. Now, I&amp;rsquo;ll readily admit it&amp;rsquo;s not the right choice for many projects, but its syntax is so great. I feel like I can go from thought to code faster in Ruby than any other programming language (including Weave!)&#xA;But there&amp;rsquo;s one thing that Ruby (and many other languages!) could improve - error handling.&#xA;Ruby, like many other languages, relies primarily on Exception handling as its error-handling approach of choice.</description>
    </item>
    <item>
      <title>Cloche Architecture</title>
      <link>https://perfectlunacy.com/posts/cloche-architecture/</link>
      <pubDate>Fri, 05 Jun 2026 18:20:05 -0700</pubDate><author>lucas@perfectlunacy.com (Lucas)</author>
      <guid>https://perfectlunacy.com/posts/cloche-architecture/</guid>
      <description>Summoning Daemons Software has a long history of magic metaphors:&#xA;As in certain cults it is possible to kill a process if you know its true name. &amp;ndash; Ken Thompson and Dennis M. Ritchie&#xA;Today is no different. Let&amp;rsquo;s talk about how I use a summoning circle (container) to constrain my daemonic minions (LLM agents) in cloche&#xA;On the Importance of Properly Binding a Minion Any time we bind (execute) a minion (any software) to a task, we assume it will not break the contract we&amp;rsquo;ve set for it.</description>
    </item>
    <item>
      <title>YOLO or Bust? There&#39;s a Third Option</title>
      <link>https://perfectlunacy.com/posts/the-third-way/</link>
      <pubDate>Tue, 26 May 2026 13:51:56 -0700</pubDate><author>lucas@perfectlunacy.com (Lucas)</author>
      <guid>https://perfectlunacy.com/posts/the-third-way/</guid>
      <description>Using LLMs for writing software - so-called &amp;ldquo;vibe-coding&amp;rdquo;, but I prefer &amp;ldquo;grow-coding&amp;rdquo; - is taking the world of software development by storm. Love it or hate it, using LLM-based tooling for writing code is everywhere right now.&#xA;In his Welcome to Gas Town post, Steve Yegge posits a set of developmental stages many engineers go through while using AI. At stage 1 you&amp;rsquo;re really not using AI at all. Maybe auto-complete in the IDE, but not really leaning on it.</description>
    </item>
    <item>
      <title>Weave Wrap-Up</title>
      <link>https://perfectlunacy.com/posts/weave-retrospective/</link>
      <pubDate>Tue, 24 Feb 2026 14:52:44 -0800</pubDate><author>lucas@perfectlunacy.com (Lucas)</author>
      <guid>https://perfectlunacy.com/posts/weave-retrospective/</guid>
      <description>Well - it&amp;rsquo;s been a few weeks now, I think it&amp;rsquo;s time to finally call it. Weave is &amp;ldquo;done&amp;rdquo;. At least, as done as it&amp;rsquo;s going to get for a while.&#xA;Post Done Work As it turned out, having a functional language made me want to add a few more features to it. After adding these, I think I&amp;rsquo;m satisfied and ready to move on:&#xA;Spools It didn&amp;rsquo;t take long after I got Weave actually running that I realized I&amp;rsquo;d made a big mistake - early on, I&amp;rsquo;d specified &amp;ldquo;code import&amp;rdquo; as an explicit anti-goal.</description>
    </item>
    <item>
      <title>Errors in Weave</title>
      <link>https://perfectlunacy.com/posts/errors-in-weave/</link>
      <pubDate>Thu, 29 Jan 2026 14:25:31 -0800</pubDate><author>lucas@perfectlunacy.com (Lucas)</author>
      <guid>https://perfectlunacy.com/posts/errors-in-weave/</guid>
      <description>Weave is the Programming Language I&amp;rsquo;ve been developing in my spare time. &amp;hellip;If you&amp;rsquo;ve been reading my blog at all, you&amp;rsquo;ll know that already.&#xA;As I&amp;rsquo;ve been working on making Weave more of a &amp;ldquo;Real&amp;rdquo; language I realized I needed to provide some sort of error handling mechanism. While functions are pure and beautiful, we live in a world where side effects and muck are not only expected, but often required to Get Things Done.</description>
    </item>
    <item>
      <title>Weave Performance</title>
      <link>https://perfectlunacy.com/posts/weave-performance/</link>
      <pubDate>Wed, 28 Jan 2026 08:53:41 -0800</pubDate><author>lucas@perfectlunacy.com (Lucas)</author>
      <guid>https://perfectlunacy.com/posts/weave-performance/</guid>
      <description>Last night, I decided to spend some time working on Weave&amp;rsquo;s performance. It was&amp;hellip; fine for a toy project, but I was a little disappointed in how slow my interpreter ran. Fast enough to show promise, but too slow to use for Real work, basically.&#xA;Sitting down with Claude I began refactoring portions of the VM.&#xA;replaced name-based lookups of global variables with slots using compiler-inserted ints for O(1) lookup optimized the Container type with internal hashmaps for key-value lookups* micro-optimized the function call semantics to reduce / remove memory cloning operations Everything helped&amp;hellip; a bit.</description>
    </item>
    <item>
      <title>It Lives</title>
      <link>https://perfectlunacy.com/posts/it-lives/</link>
      <pubDate>Sun, 25 Jan 2026 10:33:17 -0800</pubDate><author>lucas@perfectlunacy.com (Lucas)</author>
      <guid>https://perfectlunacy.com/posts/it-lives/</guid>
      <description>At last, I have &amp;ldquo;finished&amp;rdquo; the Weave interpreter.&#xA;I spent last few evenings playing with the fruits of my labor. And I think it&amp;rsquo;s pretty damn cool - even if I do say so myself.&#xA;Check this out!&#xA;One line convert from CSV to JSON read(&amp;#34;input.csv&amp;#34;, :csv) |&amp;gt; ^(rows) { write(&amp;#34;output.json&amp;#34;, rows, :json) } First class Lambdas &amp;amp; pipe operations make for easy function composition We can put generically useful logic inside reusable module, not reinvented for each script.</description>
    </item>
    <item>
      <title>Memory Management in Weave</title>
      <link>https://perfectlunacy.com/posts/weave-memory/</link>
      <pubDate>Sat, 24 Jan 2026 09:10:42 -0800</pubDate><author>lucas@perfectlunacy.com (Lucas)</author>
      <guid>https://perfectlunacy.com/posts/weave-memory/</guid>
      <description>I recently re-read my original post about Weave - the data-pipeline language I&amp;rsquo;ve been developing in my spare time.&#xA;That post ended with the words &amp;ldquo;Weave is nearly fully implemented - and I&amp;rsquo;m nearly through the book! Another few weeks and I believe I&amp;rsquo;ll have Weave ready[&amp;hellip;]&amp;rdquo;&#xA;Oh the Hubris of my youth.&#xA;In reality, it has taken me another seven months since those words were typed before I could consder Weave to be even remotely &amp;ldquo;ready&amp;rdquo; for &amp;ldquo;anything&amp;rdquo;.</description>
    </item>
    <item>
      <title>Weave Syntax</title>
      <link>https://perfectlunacy.com/posts/weave-syntax/</link>
      <pubDate>Wed, 14 May 2025 08:35:55 -0700</pubDate><author>lucas@perfectlunacy.com (Lucas)</author>
      <guid>https://perfectlunacy.com/posts/weave-syntax/</guid>
      <description>I wanted a language for writing simple, data-oriented shell scripts. &amp;hellip;So I decided to make my own!&#xA;Goals Clean syntax; Composable functionality Pipelines of data transformations should be trivial to express and compose First-class function support Make common data types trivial to work with Plain text Common data formats: CSV,JSON,INI,TOML,YAML Pipes Must be callable without interfering with the shell environment. e.g. the current Python/Ruby interpreter should not be a factor Anti-Goals Weave is not an all-purpose programming language.</description>
    </item>
    <item>
      <title>A (Programming) Language of My Own</title>
      <link>https://perfectlunacy.com/posts/weave/</link>
      <pubDate>Fri, 02 May 2025 12:19:12 -0700</pubDate><author>lucas@perfectlunacy.com (Lucas)</author>
      <guid>https://perfectlunacy.com/posts/weave/</guid>
      <description>(Pssst - wanna jump to the Syntax?) I&amp;rsquo;ve long enjoyed learning programming languages and I try to learn at least one new language every year. Past years have seen mainstream choices like Kotlin or Rust, or just playing around with something esoteric like Rockstar.&#xA;This year I was going to (re)learn Lisp. It&amp;rsquo;s long held a fascination for me, with its legendary expressive flexibility and unusual syntax (at least, by C-family standards)!</description>
    </item>
    <item>
      <title>Iffy_code</title>
      <link>https://perfectlunacy.com/posts/iffy_code/</link>
      <pubDate>Sun, 01 Oct 2023 08:48:52 -0700</pubDate><author>lucas@perfectlunacy.com (Lucas)</author>
      <guid>https://perfectlunacy.com/posts/iffy_code/</guid>
      <description>Ah, Null. Infamously referred to as the billion-dollar mistake.&#xA;As software engineers, we likely spend a quarter of our careers managing Null. Checking for it. Returning it.&#xA;Trying to figure out WTF returned Null somewhere down there that caused an invalid de-reference here&amp;hellip;&#xA;No getting around it. Development in languages with Null can be Iffy.&#xA;I&amp;rsquo;m a Ruby dev in my day job and after writing some variant of&#xA;if !</description>
    </item>
    <item>
      <title>The Best Thanksgiving Turkey</title>
      <link>https://perfectlunacy.com/posts/turkey_recipe/</link>
      <pubDate>Wed, 16 Nov 2022 15:26:10 -0800</pubDate><author>lucas@perfectlunacy.com (Lucas)</author>
      <guid>https://perfectlunacy.com/posts/turkey_recipe/</guid>
      <description>It&amp;rsquo;s almost Thanksgiving again, which means it&amp;rsquo;s time for my personal tradition - convincing people to try boiling their Thanksgiving bird.&#xA;Why Boiling? I spent ten years in search of a recipe that made turkey taste good. I tried dry brining, wet brining, smoking, roasting, bbq, rubs and injections&amp;hellip; In fairness, I never tried deep-frying, but when the list of possible side effects includes explosions and house fires&amp;hellip; well, I just don&amp;rsquo;t need that much excitement in my life.</description>
    </item>
    <item>
      <title>Decker</title>
      <link>https://perfectlunacy.com/posts/decker/</link>
      <pubDate>Tue, 28 Jun 2022 12:37:50 -0700</pubDate><author>lucas@perfectlunacy.com (Lucas)</author>
      <guid>https://perfectlunacy.com/posts/decker/</guid>
      <description>This is Decker:&#xA;Not me, nor the facemask - which was a Covid Thing (more about that another time) - but that little collection of electronics and wires strapped to the side of my head.&#xA;Decker is my longest-lived project by a mile. I started it in the fall of 2017 and I still tinker with it in an on-again, off-again fashion. It consists of a Raspberry Pi Zero W literally taped to a Vufine+ display and wired together with ribbon cable and a few thousand lines of Rust code.</description>
    </item>
    <item>
      <title>Lego Sorter Build Log 1: Neural Networking</title>
      <link>https://perfectlunacy.com/posts/lego_prototype_1/</link>
      <pubDate>Mon, 27 Jun 2022 17:13:41 -0700</pubDate><author>lucas@perfectlunacy.com (Lucas)</author>
      <guid>https://perfectlunacy.com/posts/lego_prototype_1/</guid>
      <description>My current project is an automated Lego sorting machine. I&amp;rsquo;ve seen a few other blogs showing off their Lego sorters. They&amp;rsquo;re super cool! But they usually show off the completed final result and skip all the interesting learning that happened along the way. This series is going to be the build log of the process of designing, building and programming this thing.&#xA;So far, the sorter does&amp;hellip; well, nothing. But that&amp;rsquo;s getting a bit ahead of the story.</description>
    </item>
    <item>
      <title>About</title>
      <link>https://perfectlunacy.com/page/about/</link>
      <pubDate>Mon, 20 Jun 2022 19:22:33 -0700</pubDate><author>lucas@perfectlunacy.com (Lucas)</author>
      <guid>https://perfectlunacy.com/page/about/</guid>
      <description>I&amp;rsquo;m Lucas &amp;ndash; a software engineer by trade. I like to build things to explore the bleeding edges of hardware, programming languages, and whatever else catches my attention.&#xA;Current and recent projects include Decker, a wearable computer I designed and built from scratch; Weave, a programming language with some unusual ideas about data pipelines and syntax; and Cloche an LLM-Agent orchestration and workflow layer.&#xA;I write here about the engineering behind these projects, along with opinions on software development, turkey recipes, and the craft of building things well.</description>
    </item>
    <item>
      <title>Wearable Software Principles</title>
      <link>https://perfectlunacy.com/posts/wearable-software-principles/</link>
      <pubDate>Sun, 19 Jun 2022 19:52:14 -0700</pubDate><author>lucas@perfectlunacy.com (Lucas)</author>
      <guid>https://perfectlunacy.com/posts/wearable-software-principles/</guid>
      <description>I&amp;rsquo;ve been writing software for Decker for about 4 years. During that time I&amp;rsquo;ve experimented a bit with what what works for having a display constantly in my line of sight.&#xA;Rule 1: Make it Useful First People (including yours truly) will put up with bad UX if the program solves a need. But useless software never gets run.&#xA;There are whole books to be written about how to write useful software, but one good technique is to start from a problem.</description>
    </item>
    <item>
      <title>Decker FAQ</title>
      <link>https://perfectlunacy.com/posts/decker-faq/</link>
      <pubDate>Sat, 18 Jun 2022 18:20:43 -0700</pubDate><author>lucas@perfectlunacy.com (Lucas)</author>
      <guid>https://perfectlunacy.com/posts/decker-faq/</guid>
      <description>I get the same set of questions about Decker&amp;hellip; a lot. Frequently, even.&#xA;So let&amp;rsquo;s just knock them all out here:&#xA;Why? I&amp;rsquo;ve wanted a head-mounted computer since I was just a wee nerdlet. I thought it was cool and have pursued making one off and on for years. Unfortunately, I&amp;rsquo;m really not much of an electronics guy, so for most of that time I would run up against the necessity of soldering a video input board from a VCR onto a display unit from a camcorder and decide it just wasn&amp;rsquo;t worth it.</description>
    </item>
    <item>
      <title>First Post</title>
      <link>https://perfectlunacy.com/posts/first-post/</link>
      <pubDate>Wed, 15 Jun 2022 19:12:55 -0700</pubDate><author>lucas@perfectlunacy.com (Lucas)</author>
      <guid>https://perfectlunacy.com/posts/first-post/</guid>
      <description>I decided I might as well get in on this new &amp;ldquo;blogging&amp;rdquo; thing I&amp;rsquo;ve heard so much about.&#xA;So why now?&#xA;Well, over the past few years I&amp;rsquo;ve worked on a bunch of weird technical projects that took my fancy and I wanted to write down some of the lessons learned&amp;hellip; and just sorta have a place to geek about about some of the technical details that excite me but don&amp;rsquo;t often get covered in a normal human conversation.</description>
    </item>
  </channel>
</rss>
