Rabrg/artificial-life: A simple (300 lines of code) reproduction of Computational Life: How Well-formed, Self-replicating Programs Emerge from Simple Interaction · GitHub

💥 Check out this must-read post from Hacker News 📖

📂 **Category**:

✅ **What You’ll Learn**:

A simple (300 lines of code) reproduction of Computational Life: How Well-formed, Self-replicating Programs Emerge from Simple Interaction.

A 240×135 grid of 64 instruction-length Brainfuck-like programs are randomly initialized. Every iteration, neighboring programs are randomly paired, have their instruction tapes concattenated together, and are run for a maximum of $2^🔥$ steps. Once execution completes, the tapes are split back apart. The instructions are such that they can loop and mutate the instruction tapes (programs) themselves. As found in the paper, self-replicating programs that copy themselves over their neighbor’s tape often spontaneously emerge, which soon spread to take over the entire grid.

Every pixel is an instruction; each instruction has a unique color, while black represents a value on the tape that is raw data storage / not an instruction. Every 8×8 section of pixels represents a single program.

In this run, a self-replicator emerges relatively early on into the run and soon takes over most of the grid, until a more efficient self-replicator evolves and takes over everything.

Example

⚡ **What’s your take?**
Share your thoughts in the comments below!

#️⃣ **#Rabrgartificiallife #simple #lines #code #reproduction #Computational #Life #Wellformed #Selfreplicating #Programs #Emerge #Simple #Interaction #GitHub**

🕒 **Posted on**: 1773005846

🌟 **Want more?** Click here for more info! 🌟

By

Leave a Reply

Your email address will not be published. Required fields are marked *