<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/">
    <channel>
        <title>Lax</title>
        <link>https://paragraph.com/@lax-2</link>
        <description>undefined</description>
        <lastBuildDate>Sun, 26 Apr 2026 15:54:50 GMT</lastBuildDate>
        <docs>https://validator.w3.org/feed/docs/rss2.html</docs>
        <generator>https://github.com/jpmonette/feed</generator>
        <language>en</language>
        <image>
            <title>Lax</title>
            <url>https://storage.googleapis.com/papyrus_images/ee8bc1ba31475521d4b23da4e5af68c479906fa7bdedd769097505cf0bb7eb74.jpg</url>
            <link>https://paragraph.com/@lax-2</link>
        </image>
        <copyright>All rights reserved</copyright>
        <item>
            <title><![CDATA[Game Of Life]]></title>
            <link>https://paragraph.com/@lax-2/game-of-life</link>
            <guid>qnDD9Y5u5qT6hLUyNWPw</guid>
            <pubDate>Sat, 25 Dec 2021 22:40:59 GMT</pubDate>
            <description><![CDATA[Game Of Life Rules :A board with equal size square boxes called cells. Each cell is alive when its bright and dead when its not. For a cell to be alive it must have 2 or more neighbouring cells that are alive too else it dies. If it has one alive neighbour it dies, no neighbour, it dies. A cell is born when a cell has exactly three live neighbours. So usually, this is played in a infinite universe and an infinite environment space with unlimited memory and computing power that none of us has ...]]></description>
            <content:encoded><![CDATA[<figure float="none" data-type="figure" class="img-center" style="max-width: null;"><img src="https://storage.googleapis.com/papyrus_images/35ece708c9dd86aa5b8846d010beb1afdb65bf9604189c019056b54cce1d1fc2.jpg" alt="" blurdataurl="data:image/gif;base64,R0lGODlhAQABAIAAAP///wAAACwAAAAAAQABAAACAkQBADs=" nextheight="600" nextwidth="800" class="image-node embed"><figcaption HTMLAttributes="[object Object]" class="hide-figcaption"></figcaption></figure><h2 id="h-game-of-life-rules" class="text-3xl font-header !mt-8 !mb-4 first:!mt-0 first:!mb-0">Game Of Life Rules :</h2><p>A board with equal size square boxes called cells. Each cell is alive when its bright and dead when its not. For a cell to be alive it must have 2 or more neighbouring cells that are alive too else it dies. If it has one alive neighbour it dies, no neighbour, it dies. A cell is born when a cell has exactly three live neighbours.</p><p>So usually, this is played in a infinite universe and an infinite environment space with unlimited memory and computing power that none of us has access to so building it on a periodic-repeating single plane universe when the edges are connected to its parallel ones.</p><h2 id="h-langauges" class="text-3xl font-header !mt-8 !mb-4 first:!mt-0 first:!mb-0">Langauges:</h2><p>Rust, WebAssembly and Javascript</p><figure float="none" data-type="figure" class="img-center" style="max-width: null;"><img src="https://storage.googleapis.com/papyrus_images/2d902c399fbbce7e763cf1060edc7086f5b55b75b08ee80623147fb8213e0524.png" alt="the only god tier languages I know in existence " blurdataurl="data:image/gif;base64,R0lGODlhAQABAIAAAP///wAAACwAAAAAAQABAAACAkQBADs=" nextheight="600" nextwidth="800" class="image-node embed"><figcaption HTMLAttributes="[object Object]" class="">the only god tier languages I know in existence</figcaption></figure><p>Why Javascript?</p><ul><li><p>can directly read and write to WebAssembly limear memory space</p></li><li><p>Garbage-collector heap</p></li><li><p>considers and returns scalar</p></li></ul><p>What is <code>wasm_bindgen</code></p><ul><li><p>used to box Rust structures</p></li><li><p>wrapping pointers in javascript class for usability</p></li><li><p>basically clears boundries</p></li></ul><h2 id="h-game-plan" class="text-3xl font-header !mt-8 !mb-4 first:!mt-0 first:!mb-0">Game Plan</h2><p>Well, here comes the binary! the best part. The whole universe is mapped cell to byte into a flat one dimensional array where the live cell is represented by 0 and a dead cell is represented by 1.</p><p>Consider a <strong>4 x 4</strong> universe : 16 cells in total mapped into an flat array looks like this →</p><figure float="none" data-type="figure" class="img-center" style="max-width: null;"><img src="https://storage.googleapis.com/papyrus_images/254cc8ef31a52d72b23f439d0aeb7905e2658ab3c70075310471fa9b19048701.png" alt="count index 0" blurdataurl="data:image/gif;base64,R0lGODlhAQABAIAAAP///wAAACwAAAAAAQABAAACAkQBADs=" nextheight="600" nextwidth="800" class="image-node embed"><figcaption HTMLAttributes="[object Object]" class="">count index 0</figcaption></figure><p>How is it mapped? good question! An <code>index</code> function is used to allocate the cell environment into a byte memory reserved in the universe like this:</p><p><code>index(row, column, universe) = row * width(universe)</code></p><blockquote><p>WebAssembly LIner Memoy ?→ Rust <code>String</code> → Javascripts Garbage collector Heap → HTML <code>textContent</code></p></blockquote><p>code source</p><p>As you notice, a macro <code>#[repr(u8)]</code> is used so as to represent each cell with a single byte.</p>]]></content:encoded>
            <author>lax-2@newsletter.paragraph.com (Lax)</author>
        </item>
    </channel>
</rss>