<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
  <channel>
    <title>Artificial Life on Programmer.ie: Modern AI programming</title>
    <link>http://programmer.ie/tags/artificial-life/</link>
    <description>Recent content in Artificial Life on Programmer.ie: Modern AI programming</description>
    <generator>Hugo</generator>
    <language>en-us</language>
    <lastBuildDate>Tue, 11 Aug 2026 01:06:00 +0100</lastBuildDate>
    <atom:link href="http://programmer.ie/tags/artificial-life/index.xml" rel="self" type="application/rss+xml" />
    <item>
      <title>Digital Life 01: Look at This Thing</title>
      <link>http://programmer.ie/books/digital-life/01-look-at-this-thing/</link>
      <pubDate>Tue, 11 Aug 2026 01:06:00 +0100</pubDate>
      <guid>http://programmer.ie/books/digital-life/01-look-at-this-thing/</guid>
      <description>&lt;h1 id=&#34;digital-life-01-look-at-this-thing&#34;&gt;Digital Life 01: Look at This Thing&lt;/h1&gt;&#xA;&lt;p&gt;Don&amp;rsquo;t read anything yet.&lt;/p&gt;&#xA;&lt;p&gt;Watch this.&lt;/p&gt;&#xA;&lt;!--&#xA;TODO VISUAL:&#xA;Full-width animated Lenia or Flow-Lenia organism.&#xA;&#xA;Prefer:&#xA;- localized organism&#xA;- visible locomotion or deformation&#xA;- no explanatory labels&#xA;- dark/neutral background&#xA;- several seconds of uninterrupted motion&#xA;&#xA;Caption should initially be minimal:&#xA;&#34;One state of a continuous cellular automaton evolving through time.&#34;&#xA;--&gt;&#xA;&lt;p&gt;Something is moving.&lt;/p&gt;&#xA;&lt;p&gt;It appears to have a boundary.&lt;/p&gt;&#xA;&lt;p&gt;Different parts of it seem to behave differently.&lt;/p&gt;</description>
    </item>
    <item>
      <title>Digital Life 00: What Would Digital Life Mean?</title>
      <link>http://programmer.ie/books/digital-life/00-what-is-digital-life/</link>
      <pubDate>Tue, 11 Aug 2026 00:31:00 +0100</pubDate>
      <guid>http://programmer.ie/books/digital-life/00-what-is-digital-life/</guid>
      <description>&lt;h1 id=&#34;digital-life-00-what-would-digital-life-mean&#34;&gt;Digital Life 00: What Would Digital Life Mean?&lt;/h1&gt;&#xA;&lt;p&gt;Suppose we wanted to build life in software.&lt;/p&gt;&#xA;&lt;p&gt;Not simulate a bird.&lt;/p&gt;&#xA;&lt;p&gt;Not animate a creature.&lt;/p&gt;&#xA;&lt;p&gt;Not create an AI assistant and give it a name.&lt;/p&gt;&#xA;&lt;p&gt;Something more fundamental.&lt;/p&gt;&#xA;&lt;p&gt;A computational system that begins to exhibit properties we associate with living things:&lt;/p&gt;&#xA;&lt;div class=&#34;highlight&#34;&gt;&lt;pre tabindex=&#34;0&#34; style=&#34;color:#f8f8f2;background-color:#272822;-moz-tab-size:4;-o-tab-size:4;tab-size:4;&#34;&gt;&lt;code class=&#34;language-text&#34; data-lang=&#34;text&#34;&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;structure&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;persistence&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;response&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;adaptation&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;repair&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;memory&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;inheritance&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;evolution&#xA;&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;p&gt;The obvious temptation is to start implementing those words.&lt;/p&gt;&#xA;&lt;p&gt;We could create:&lt;/p&gt;</description>
    </item>
    <item>
      <title>Cellular Automata From First Principles 58: Capstone — Discover, Measure and Explain a New System</title>
      <link>http://programmer.ie/post/cellular-automata-from-first-principles-58/</link>
      <pubDate>Mon, 10 Aug 2026 21:01:00 +0100</pubDate>
      <guid>http://programmer.ie/post/cellular-automata-from-first-principles-58/</guid>
      <description>&lt;h1 id=&#34;cellular-automata-from-first-principles-58-capstone--discover-measure-and-explain-a-new-system&#34;&gt;Cellular Automata From First Principles 58: Capstone — Discover, Measure and Explain a New System&lt;/h1&gt;&#xA;&lt;p&gt;The book began with one tiny rule applied to one tiny neighborhood.&lt;/p&gt;&#xA;&lt;p&gt;We end with a different question:&lt;/p&gt;&#xA;&lt;blockquote&gt;&#xA;&lt;p&gt;Can we discover a cellular system, characterize its behavior, test its robustness and explain what we actually know about it?&lt;/p&gt;&lt;/blockquote&gt;&#xA;&lt;p&gt;That is the capstone.&lt;/p&gt;&#xA;&lt;hr&gt;&#xA;&lt;h2 id=&#34;choose-a-system-family&#34;&gt;Choose a system family&lt;/h2&gt;&#xA;&lt;p&gt;The capstone can use any family we built:&lt;/p&gt;</description>
    </item>
    <item>
      <title>Cellular Automata From First Principles 35: Flow-Lenia and Mass-Conserving Artificial Life</title>
      <link>http://programmer.ie/post/cellular-automata-from-first-principles-35/</link>
      <pubDate>Mon, 10 Aug 2026 20:06:00 +0100</pubDate>
      <guid>http://programmer.ie/post/cellular-automata-from-first-principles-35/</guid>
      <description>&lt;h1 id=&#34;cellular-automata-from-first-principles-35-flow-lenia-and-mass-conserving-artificial-life&#34;&gt;Cellular Automata From First Principles 35: Flow-Lenia and Mass-Conserving Artificial Life&lt;/h1&gt;&#xA;&lt;p&gt;Ordinary Lenia updates local state by adding growth:&lt;/p&gt;&#xA;&lt;div class=&#34;highlight&#34;&gt;&lt;pre tabindex=&#34;0&#34; style=&#34;color:#f8f8f2;background-color:#272822;-moz-tab-size:4;-o-tab-size:4;tab-size:4;&#34;&gt;&lt;code class=&#34;language-text&#34; data-lang=&#34;text&#34;&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;A(t + dt) = clip(A(t) + dt × G(U))&#xA;&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;p&gt;That means state can be created in one region and destroyed in another.&lt;/p&gt;&#xA;&lt;p&gt;For many artificial-life experiments that is perfectly acceptable.&lt;/p&gt;&#xA;&lt;p&gt;But it leaves a major question:&lt;/p&gt;&#xA;&lt;blockquote&gt;&#xA;&lt;p&gt;What changes if local structure must reorganize &lt;strong&gt;existing mass&lt;/strong&gt; instead of creating or deleting it?&lt;/p&gt;</description>
    </item>
    <item>
      <title>Cellular Automata From First Principles 33: Multi-Kernel and Multi-Channel Lenia</title>
      <link>http://programmer.ie/post/cellular-automata-from-first-principles-33/</link>
      <pubDate>Mon, 10 Aug 2026 20:00:00 +0100</pubDate>
      <guid>http://programmer.ie/post/cellular-automata-from-first-principles-33/</guid>
      <description>&lt;h1 id=&#34;cellular-automata-from-first-principles-33-multi-kernel-and-multi-channel-lenia&#34;&gt;Cellular Automata From First Principles 33: Multi-Kernel and Multi-Channel Lenia&lt;/h1&gt;&#xA;&lt;p&gt;Our Lenia implementation has one scalar field:&lt;/p&gt;&#xA;&lt;div class=&#34;highlight&#34;&gt;&lt;pre tabindex=&#34;0&#34; style=&#34;color:#f8f8f2;background-color:#272822;-moz-tab-size:4;-o-tab-size:4;tab-size:4;&#34;&gt;&lt;code class=&#34;language-text&#34; data-lang=&#34;text&#34;&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;A(x, y)&#xA;&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;p&gt;and one kernel:&lt;/p&gt;&#xA;&lt;div class=&#34;highlight&#34;&gt;&lt;pre tabindex=&#34;0&#34; style=&#34;color:#f8f8f2;background-color:#272822;-moz-tab-size:4;-o-tab-size:4;tab-size:4;&#34;&gt;&lt;code class=&#34;language-text&#34; data-lang=&#34;text&#34;&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;K&#xA;&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;p&gt;That is enough for rich behavior.&lt;/p&gt;&#xA;&lt;p&gt;But it also forces every local process to share the same spatial scale and the same state variable.&lt;/p&gt;&#xA;&lt;p&gt;A richer model can use multiple channels:&lt;/p&gt;&#xA;&lt;div class=&#34;highlight&#34;&gt;&lt;pre tabindex=&#34;0&#34; style=&#34;color:#f8f8f2;background-color:#272822;-moz-tab-size:4;-o-tab-size:4;tab-size:4;&#34;&gt;&lt;code class=&#34;language-text&#34; data-lang=&#34;text&#34;&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;A0(x, y)&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;A1(x, y)&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;A2(x, y)&#xA;&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;p&gt;and multiple kernels linking them.&lt;/p&gt;&#xA;&lt;hr&gt;&#xA;&lt;h2 id=&#34;represent-state-as-channels&#34;&gt;Represent state as channels&lt;/h2&gt;&#xA;&lt;div class=&#34;highlight&#34;&gt;&lt;pre tabindex=&#34;0&#34; style=&#34;color:#f8f8f2;background-color:#272822;-moz-tab-size:4;-o-tab-size:4;tab-size:4;&#34;&gt;&lt;code class=&#34;language-python&#34; data-lang=&#34;python&#34;&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;&lt;span style=&#34;color:#f92672&#34;&gt;import&lt;/span&gt; numpy &lt;span style=&#34;color:#66d9ef&#34;&gt;as&lt;/span&gt; np&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;channels &lt;span style=&#34;color:#f92672&#34;&gt;=&lt;/span&gt; &lt;span style=&#34;color:#ae81ff&#34;&gt;3&lt;/span&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;state &lt;span style=&#34;color:#f92672&#34;&gt;=&lt;/span&gt; np&lt;span style=&#34;color:#f92672&#34;&gt;.&lt;/span&gt;zeros((channels, &lt;span style=&#34;color:#ae81ff&#34;&gt;128&lt;/span&gt;, &lt;span style=&#34;color:#ae81ff&#34;&gt;128&lt;/span&gt;), dtype&lt;span style=&#34;color:#f92672&#34;&gt;=&lt;/span&gt;np&lt;span style=&#34;color:#f92672&#34;&gt;.&lt;/span&gt;float64)&#xA;&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;p&gt;Now each cell has a vector state:&lt;/p&gt;</description>
    </item>
    <item>
      <title>Cellular Automata From First Principles 31: Discover Your First Lenia Organisms</title>
      <link>http://programmer.ie/post/cellular-automata-from-first-principles-31/</link>
      <pubDate>Mon, 10 Aug 2026 19:54:00 +0100</pubDate>
      <guid>http://programmer.ie/post/cellular-automata-from-first-principles-31/</guid>
      <description>&lt;h1 id=&#34;cellular-automata-from-first-principles-31-discover-your-first-lenia-organisms&#34;&gt;Cellular Automata From First Principles 31: Discover Your First Lenia Organisms&lt;/h1&gt;&#xA;&lt;p&gt;Running Lenia is easy.&lt;/p&gt;&#xA;&lt;p&gt;Finding persistent, localized, non-trivial structures is the hard part.&lt;/p&gt;&#xA;&lt;p&gt;This chapter turns that problem into a repeatable search pipeline.&lt;/p&gt;&#xA;&lt;hr&gt;&#xA;&lt;h2 id=&#34;define-what-counts-as-a-candidate&#34;&gt;Define what counts as a candidate&lt;/h2&gt;&#xA;&lt;p&gt;We should not start with the vague objective:&lt;/p&gt;&#xA;&lt;blockquote&gt;&#xA;&lt;p&gt;Find something that looks alive.&lt;/p&gt;&lt;/blockquote&gt;&#xA;&lt;p&gt;Instead define measurable properties.&lt;/p&gt;&#xA;&lt;p&gt;A useful first candidate might be:&lt;/p&gt;&#xA;&lt;div class=&#34;highlight&#34;&gt;&lt;pre tabindex=&#34;0&#34; style=&#34;color:#f8f8f2;background-color:#272822;-moz-tab-size:4;-o-tab-size:4;tab-size:4;&#34;&gt;&lt;code class=&#34;language-text&#34; data-lang=&#34;text&#34;&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;survives for 1,000 steps&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;stays localized&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;keeps non-zero mass&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;continues changing&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;avoids filling the whole board&#xA;&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;p&gt;Each condition removes a different failure mode.&lt;/p&gt;</description>
    </item>
    <item>
      <title>Cellular Automata From First Principles 30: Build Lenia From First Principles</title>
      <link>http://programmer.ie/post/cellular-automata-from-first-principles-30/</link>
      <pubDate>Mon, 10 Aug 2026 19:51:00 +0100</pubDate>
      <guid>http://programmer.ie/post/cellular-automata-from-first-principles-30/</guid>
      <description>&lt;h1 id=&#34;cellular-automata-from-first-principles-30-build-lenia-from-first-principles&#34;&gt;Cellular Automata From First Principles 30: Build Lenia From First Principles&lt;/h1&gt;&#xA;&lt;p&gt;We now have every conceptual component needed for a minimal Lenia implementation:&lt;/p&gt;&#xA;&lt;div class=&#34;highlight&#34;&gt;&lt;pre tabindex=&#34;0&#34; style=&#34;color:#f8f8f2;background-color:#272822;-moz-tab-size:4;-o-tab-size:4;tab-size:4;&#34;&gt;&lt;code class=&#34;language-text&#34; data-lang=&#34;text&#34;&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;continuous state&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;radial kernel&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;convolution&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;smooth growth function&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;small time step&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;bounded update&#xA;&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;p&gt;This chapter assembles them into one runnable system.&lt;/p&gt;&#xA;&lt;hr&gt;&#xA;&lt;h2 id=&#34;represent-the-model-parameters-explicitly&#34;&gt;Represent the model parameters explicitly&lt;/h2&gt;&#xA;&lt;div class=&#34;highlight&#34;&gt;&lt;pre tabindex=&#34;0&#34; style=&#34;color:#f8f8f2;background-color:#272822;-moz-tab-size:4;-o-tab-size:4;tab-size:4;&#34;&gt;&lt;code class=&#34;language-python&#34; data-lang=&#34;python&#34;&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;&lt;span style=&#34;color:#f92672&#34;&gt;from&lt;/span&gt; dataclasses &lt;span style=&#34;color:#f92672&#34;&gt;import&lt;/span&gt; dataclass&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;&lt;span style=&#34;color:#a6e22e&#34;&gt;@dataclass&lt;/span&gt;(frozen&lt;span style=&#34;color:#f92672&#34;&gt;=&lt;/span&gt;&lt;span style=&#34;color:#66d9ef&#34;&gt;True&lt;/span&gt;)&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;&lt;span style=&#34;color:#66d9ef&#34;&gt;class&lt;/span&gt; &lt;span style=&#34;color:#a6e22e&#34;&gt;LeniaConfig&lt;/span&gt;:&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;    radius: int &lt;span style=&#34;color:#f92672&#34;&gt;=&lt;/span&gt; &lt;span style=&#34;color:#ae81ff&#34;&gt;13&lt;/span&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;    ring_center: float &lt;span style=&#34;color:#f92672&#34;&gt;=&lt;/span&gt; &lt;span style=&#34;color:#ae81ff&#34;&gt;0.5&lt;/span&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;    ring_width: float &lt;span style=&#34;color:#f92672&#34;&gt;=&lt;/span&gt; &lt;span style=&#34;color:#ae81ff&#34;&gt;0.15&lt;/span&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;    mu: float &lt;span style=&#34;color:#f92672&#34;&gt;=&lt;/span&gt; &lt;span style=&#34;color:#ae81ff&#34;&gt;0.15&lt;/span&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;    sigma: float &lt;span style=&#34;color:#f92672&#34;&gt;=&lt;/span&gt; &lt;span style=&#34;color:#ae81ff&#34;&gt;0.03&lt;/span&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;    dt: float &lt;span style=&#34;color:#f92672&#34;&gt;=&lt;/span&gt; &lt;span style=&#34;color:#ae81ff&#34;&gt;0.1&lt;/span&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;p&gt;Keeping parameters in one object makes experiments reproducible.&lt;/p&gt;</description>
    </item>
    <item>
      <title>Cellular Automata From First Principles 29: Growth Functions</title>
      <link>http://programmer.ie/post/cellular-automata-from-first-principles-29/</link>
      <pubDate>Mon, 10 Aug 2026 19:48:00 +0100</pubDate>
      <guid>http://programmer.ie/post/cellular-automata-from-first-principles-29/</guid>
      <description>&lt;h1 id=&#34;cellular-automata-from-first-principles-29-growth-functions&#34;&gt;Cellular Automata From First Principles 29: Growth Functions&lt;/h1&gt;&#xA;&lt;p&gt;We now have two pieces:&lt;/p&gt;&#xA;&lt;div class=&#34;highlight&#34;&gt;&lt;pre tabindex=&#34;0&#34; style=&#34;color:#f8f8f2;background-color:#272822;-moz-tab-size:4;-o-tab-size:4;tab-size:4;&#34;&gt;&lt;code class=&#34;language-text&#34; data-lang=&#34;text&#34;&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;continuous state&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;      ↓&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;weighted neighborhood&#xA;&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;p&gt;But a neighborhood value does not tell us what should happen next.&lt;/p&gt;&#xA;&lt;p&gt;We need a response curve.&lt;/p&gt;&#xA;&lt;p&gt;In Lenia-style systems that curve is usually called a &lt;strong&gt;growth function&lt;/strong&gt;.&lt;/p&gt;&#xA;&lt;p&gt;It converts neighborhood potential into local growth or decay.&lt;/p&gt;&#xA;&lt;hr&gt;&#xA;&lt;h2 id=&#34;a-gaussian-shaped-preference&#34;&gt;A Gaussian-shaped preference&lt;/h2&gt;&#xA;&lt;p&gt;A useful starting point is:&lt;/p&gt;&#xA;&lt;div class=&#34;highlight&#34;&gt;&lt;pre tabindex=&#34;0&#34; style=&#34;color:#f8f8f2;background-color:#272822;-moz-tab-size:4;-o-tab-size:4;tab-size:4;&#34;&gt;&lt;code class=&#34;language-python&#34; data-lang=&#34;python&#34;&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;&lt;span style=&#34;color:#f92672&#34;&gt;import&lt;/span&gt; numpy &lt;span style=&#34;color:#66d9ef&#34;&gt;as&lt;/span&gt; np&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;&lt;span style=&#34;color:#66d9ef&#34;&gt;def&lt;/span&gt; &lt;span style=&#34;color:#a6e22e&#34;&gt;gaussian_growth&lt;/span&gt;(u, mu&lt;span style=&#34;color:#f92672&#34;&gt;=&lt;/span&gt;&lt;span style=&#34;color:#ae81ff&#34;&gt;0.15&lt;/span&gt;, sigma&lt;span style=&#34;color:#f92672&#34;&gt;=&lt;/span&gt;&lt;span style=&#34;color:#ae81ff&#34;&gt;0.03&lt;/span&gt;):&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;    &lt;span style=&#34;color:#66d9ef&#34;&gt;return&lt;/span&gt; &lt;span style=&#34;color:#ae81ff&#34;&gt;2.0&lt;/span&gt; &lt;span style=&#34;color:#f92672&#34;&gt;*&lt;/span&gt; np&lt;span style=&#34;color:#f92672&#34;&gt;.&lt;/span&gt;exp(&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;        &lt;span style=&#34;color:#f92672&#34;&gt;-&lt;/span&gt;((u &lt;span style=&#34;color:#f92672&#34;&gt;-&lt;/span&gt; mu) &lt;span style=&#34;color:#f92672&#34;&gt;**&lt;/span&gt; &lt;span style=&#34;color:#ae81ff&#34;&gt;2&lt;/span&gt;) &lt;span style=&#34;color:#f92672&#34;&gt;/&lt;/span&gt; (&lt;span style=&#34;color:#ae81ff&#34;&gt;2&lt;/span&gt; &lt;span style=&#34;color:#f92672&#34;&gt;*&lt;/span&gt; sigma &lt;span style=&#34;color:#f92672&#34;&gt;**&lt;/span&gt; &lt;span style=&#34;color:#ae81ff&#34;&gt;2&lt;/span&gt;)&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;    ) &lt;span style=&#34;color:#f92672&#34;&gt;-&lt;/span&gt; &lt;span style=&#34;color:#ae81ff&#34;&gt;1.0&lt;/span&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;p&gt;The output is approximately:&lt;/p&gt;</description>
    </item>
    <item>
      <title>Cellular Automata From First Principles 28: Neighborhoods as Convolution Kernels</title>
      <link>http://programmer.ie/post/cellular-automata-from-first-principles-28/</link>
      <pubDate>Mon, 10 Aug 2026 19:45:00 +0100</pubDate>
      <guid>http://programmer.ie/post/cellular-automata-from-first-principles-28/</guid>
      <description>&lt;h1 id=&#34;cellular-automata-from-first-principles-28-neighborhoods-as-convolution-kernels&#34;&gt;Cellular Automata From First Principles 28: Neighborhoods as Convolution Kernels&lt;/h1&gt;&#xA;&lt;p&gt;A neighborhood does not have to be a list of nearby coordinates.&lt;/p&gt;&#xA;&lt;p&gt;It can be a &lt;strong&gt;spatial weighting function&lt;/strong&gt;.&lt;/p&gt;&#xA;&lt;p&gt;That lets us say:&lt;/p&gt;&#xA;&lt;div class=&#34;highlight&#34;&gt;&lt;pre tabindex=&#34;0&#34; style=&#34;color:#f8f8f2;background-color:#272822;-moz-tab-size:4;-o-tab-size:4;tab-size:4;&#34;&gt;&lt;code class=&#34;language-text&#34; data-lang=&#34;text&#34;&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;cells near this radius matter a lot&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;cells closer in matter less&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;cells farther away do not matter at all&#xA;&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;p&gt;The standard programming tool for applying that same weighted neighborhood everywhere is convolution.&lt;/p&gt;&#xA;&lt;hr&gt;&#xA;&lt;h2 id=&#34;start-with-a-small-kernel&#34;&gt;Start with a small kernel&lt;/h2&gt;&#xA;&lt;div class=&#34;highlight&#34;&gt;&lt;pre tabindex=&#34;0&#34; style=&#34;color:#f8f8f2;background-color:#272822;-moz-tab-size:4;-o-tab-size:4;tab-size:4;&#34;&gt;&lt;code class=&#34;language-python&#34; data-lang=&#34;python&#34;&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;&lt;span style=&#34;color:#f92672&#34;&gt;import&lt;/span&gt; numpy &lt;span style=&#34;color:#66d9ef&#34;&gt;as&lt;/span&gt; np&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;kernel &lt;span style=&#34;color:#f92672&#34;&gt;=&lt;/span&gt; np&lt;span style=&#34;color:#f92672&#34;&gt;.&lt;/span&gt;array([&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;    [&lt;span style=&#34;color:#ae81ff&#34;&gt;0.0&lt;/span&gt;, &lt;span style=&#34;color:#ae81ff&#34;&gt;0.1&lt;/span&gt;, &lt;span style=&#34;color:#ae81ff&#34;&gt;0.0&lt;/span&gt;],&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;    [&lt;span style=&#34;color:#ae81ff&#34;&gt;0.1&lt;/span&gt;, &lt;span style=&#34;color:#ae81ff&#34;&gt;0.6&lt;/span&gt;, &lt;span style=&#34;color:#ae81ff&#34;&gt;0.1&lt;/span&gt;],&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;    [&lt;span style=&#34;color:#ae81ff&#34;&gt;0.0&lt;/span&gt;, &lt;span style=&#34;color:#ae81ff&#34;&gt;0.1&lt;/span&gt;, &lt;span style=&#34;color:#ae81ff&#34;&gt;0.0&lt;/span&gt;],&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;])&#xA;&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;p&gt;Normalize it:&lt;/p&gt;</description>
    </item>
    <item>
      <title>Cellular Automata From First Principles 27: From Discrete Cells to Continuous State</title>
      <link>http://programmer.ie/post/cellular-automata-from-first-principles-27/</link>
      <pubDate>Mon, 10 Aug 2026 19:43:00 +0100</pubDate>
      <guid>http://programmer.ie/post/cellular-automata-from-first-principles-27/</guid>
      <description>&lt;h1 id=&#34;cellular-automata-from-first-principles-27-from-discrete-cells-to-continuous-state&#34;&gt;Cellular Automata From First Principles 27: From Discrete Cells to Continuous State&lt;/h1&gt;&#xA;&lt;p&gt;So far most of our cellular automata have used a small set of states:&lt;/p&gt;&#xA;&lt;div class=&#34;highlight&#34;&gt;&lt;pre tabindex=&#34;0&#34; style=&#34;color:#f8f8f2;background-color:#272822;-moz-tab-size:4;-o-tab-size:4;tab-size:4;&#34;&gt;&lt;code class=&#34;language-text&#34; data-lang=&#34;text&#34;&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;0 or 1&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;empty / prey / predator&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;ready / firing / refractory&#xA;&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;p&gt;That makes rules easy to inspect.&lt;/p&gt;&#xA;&lt;p&gt;But it also forces every update to make a hard categorical decision.&lt;/p&gt;&#xA;&lt;p&gt;What happens if a cell can instead hold &lt;strong&gt;any value between 0 and 1&lt;/strong&gt;?&lt;/p&gt;</description>
    </item>
    <item>
      <title>Cellular Automata From First Principles 00: How Can Tiny Rules Build Complex Worlds?</title>
      <link>http://programmer.ie/post/cellular-automata-from-first-principles-00/</link>
      <pubDate>Mon, 10 Aug 2026 18:20:00 +0100</pubDate>
      <guid>http://programmer.ie/post/cellular-automata-from-first-principles-00/</guid>
      <description>&lt;h1 id=&#34;cellular-automata-from-first-principles-00-how-can-tiny-rules-build-complex-worlds&#34;&gt;Cellular Automata From First Principles 00: How Can Tiny Rules Build Complex Worlds?&lt;/h1&gt;&#xA;&lt;p&gt;A cellular automaton begins with almost nothing.&lt;/p&gt;&#xA;&lt;p&gt;You need:&lt;/p&gt;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;a collection of cells,&lt;/li&gt;&#xA;&lt;li&gt;a state for each cell,&lt;/li&gt;&#xA;&lt;li&gt;a neighborhood,&lt;/li&gt;&#xA;&lt;li&gt;and a rule that tells each cell what to become next.&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;&lt;p&gt;That is enough.&lt;/p&gt;&#xA;&lt;p&gt;There is no central controller.&lt;/p&gt;&#xA;&lt;p&gt;There is no object that knows what the final pattern should look like.&lt;/p&gt;&#xA;&lt;p&gt;There is only local state changing through time.&lt;/p&gt;</description>
    </item>
  </channel>
</rss>
