<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
  <channel>
    <title>Simulation on Programmer.ie: Modern AI programming</title>
    <link>http://programmer.ie/tags/simulation/</link>
    <description>Recent content in Simulation on Programmer.ie: Modern AI programming</description>
    <generator>Hugo</generator>
    <language>en-us</language>
    <lastBuildDate>Mon, 10 Aug 2026 20:56:00 +0100</lastBuildDate>
    <atom:link href="http://programmer.ie/tags/simulation/index.xml" rel="self" type="application/rss+xml" />
    <item>
      <title>Cellular Automata From First Principles 53: Build a Reusable Cellular Automata Engine</title>
      <link>http://programmer.ie/post/cellular-automata-from-first-principles-53/</link>
      <pubDate>Mon, 10 Aug 2026 20:56:00 +0100</pubDate>
      <guid>http://programmer.ie/post/cellular-automata-from-first-principles-53/</guid>
      <description>&lt;h1 id=&#34;cellular-automata-from-first-principles-53-build-a-reusable-cellular-automata-engine&#34;&gt;Cellular Automata From First Principles 53: Build a Reusable Cellular Automata Engine&lt;/h1&gt;&#xA;&lt;p&gt;Across this book we repeatedly rebuilt the same 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;state&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;neighborhood&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;rule&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;step loop&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;measurements&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;rendering&#xA;&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;p&gt;That repetition was useful while learning.&lt;/p&gt;&#xA;&lt;p&gt;Now it is time to turn those concepts into interfaces.&lt;/p&gt;&#xA;&lt;hr&gt;&#xA;&lt;h2 id=&#34;keep-the-engine-small&#34;&gt;Keep the engine small&lt;/h2&gt;&#xA;&lt;p&gt;A useful engine does not need to know what Conway&amp;rsquo;s Life, Lenia or an NCA is.&lt;/p&gt;&#xA;&lt;p&gt;It only needs to orchestrate state transitions.&lt;/p&gt;</description>
    </item>
    <item>
      <title>Cellular Automata From First Principles 17: Measure a Cellular Automaton</title>
      <link>http://programmer.ie/post/cellular-automata-from-first-principles-17/</link>
      <pubDate>Mon, 10 Aug 2026 18:50:00 +0100</pubDate>
      <guid>http://programmer.ie/post/cellular-automata-from-first-principles-17/</guid>
      <description>&lt;h1 id=&#34;cellular-automata-from-first-principles-17-measure-a-cellular-automaton&#34;&gt;Cellular Automata From First Principles 17: Measure a Cellular Automaton&lt;/h1&gt;&#xA;&lt;p&gt;Up to this point we have mostly &lt;strong&gt;looked at&lt;/strong&gt; cellular automata.&lt;/p&gt;&#xA;&lt;p&gt;That is useful.&lt;/p&gt;&#xA;&lt;p&gt;It is also limiting.&lt;/p&gt;&#xA;&lt;p&gt;A human can inspect a handful of spacetime diagrams.&lt;/p&gt;&#xA;&lt;p&gt;We cannot reliably inspect:&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;256 elementary rules&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;× several initial conditions&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;× several widths&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;× hundreds of generations&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;× repeated stochastic runs&#xA;&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;p&gt;by eye.&lt;/p&gt;&#xA;&lt;p&gt;If we want to compare rules, search for interesting behavior or eventually optimize a rule for some objective, we need to turn behavior into data.&lt;/p&gt;</description>
    </item>
    <item>
      <title>Cellular Automata From First Principles 01: Build Your First Automaton</title>
      <link>http://programmer.ie/post/cellular-automata-from-first-principles-01/</link>
      <pubDate>Mon, 10 Aug 2026 18:21:00 +0100</pubDate>
      <guid>http://programmer.ie/post/cellular-automata-from-first-principles-01/</guid>
      <description>&lt;h1 id=&#34;cellular-automata-from-first-principles-01-build-your-first-automaton&#34;&gt;Cellular Automata From First Principles 01: Build Your First Automaton&lt;/h1&gt;&#xA;&lt;p&gt;In the previous chapter we reduced a cellular automaton to four 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;space&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;state&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;neighborhood&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;rule&#xA;&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;p&gt;Now we are going to build one.&lt;/p&gt;&#xA;&lt;p&gt;Not a framework.&lt;/p&gt;&#xA;&lt;p&gt;Not a library.&lt;/p&gt;&#xA;&lt;p&gt;One update step.&lt;/p&gt;&#xA;&lt;p&gt;That is enough to expose the whole mechanism.&lt;/p&gt;&#xA;&lt;hr&gt;&#xA;&lt;h2 id=&#34;start-with-a-one-dimensional-world&#34;&gt;Start with a one-dimensional world&lt;/h2&gt;&#xA;&lt;p&gt;Create a row of cells and turn on the centre cell:&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;width &lt;span style=&#34;color:#f92672&#34;&gt;=&lt;/span&gt; &lt;span style=&#34;color:#ae81ff&#34;&gt;41&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(width, dtype&lt;span style=&#34;color:#f92672&#34;&gt;=&lt;/span&gt;np&lt;span style=&#34;color:#f92672&#34;&gt;.&lt;/span&gt;uint8)&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;state[width &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;1&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;print(state)&#xA;&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;p&gt;Conceptually:&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>
