User:LuveelVoom/A Primer On OCA: Difference between revisions

From LifeWiki
Jump to navigation Jump to search
mNo edit summary
No edit summary
Line 59: Line 59:
==== Limitations of oscar: recognizing replicators, puffers, and other strange growth ====
==== Limitations of oscar: recognizing replicators, puffers, and other strange growth ====
It is worth noting that oscar.lua and Identify both suffer from crucial flaws: they cannot identify puffers, replicators, or other complex patterns. One workaround to this is to use the [[catagolue]] object page ([https://catagolue.hatsya.com/object]), which can determine the period of puffers (however, it cannot currently identify their displacement; this has to be done manually). To identify using the object page, paste the RLE (obtainable in the lower right of LifeViewer after copying or directly from a Golly copy) into the text box and press identify. This will send you to a page which should contain the text "ylXX" at the top, where XX is the period of your puffer. The catagolue page can also identify other objects, indicating still lifes by xs(population), oscillators by xp(period), spaceships by xq(period), puffers and other linear growth with yl(period), and other objects with zz or rarely other descriptions. Catagolue will be useful later, so keep this in the back of your mind!
It is worth noting that oscar.lua and Identify both suffer from crucial flaws: they cannot identify puffers, replicators, or other complex patterns. One workaround to this is to use the [[catagolue]] object page ([https://catagolue.hatsya.com/object]), which can determine the period of puffers (however, it cannot currently identify their displacement; this has to be done manually). To identify using the object page, paste the RLE (obtainable in the lower right of LifeViewer after copying or directly from a Golly copy) into the text box and press identify. This will send you to a page which should contain the text "ylXX" at the top, where XX is the period of your puffer. The catagolue page can also identify other objects, indicating still lifes by xs(population), oscillators by xp(period), spaceships by xq(period), puffers and other linear growth with yl(period), and other objects with zz or rarely other descriptions. Catagolue will be useful later, so keep this in the back of your mind!
==== Exercises ====
Use oscar or Identify to identify each of the following:
(TBA)
=== What's interesting? ===
=== What's interesting? ===
So you've found an object. How do you tell if it's worth posting? It's usually fine to post it to the #naturalistic channel of the discord. However, when posting to the forums, here are some things to consider:
*Is your object high period or very large but common? For example, a period-250 object is more interesting than a period-5 object.
*Does your object interact with other objects in unique ways? For example, if your rule has a common ship that, when hitting a block, is cleanly reflected 90 degrees and leaves the block intact, that's pretty interesting.
*Does the rule itself have interesting dynamics and common objects with varied uses? Many of the most successful rules are ones with several different interesting object. If your rule has one object and it's not [[endemic]], consider checking out rules nearby.
*Most importantly, use your judgement.
==== Exercises ====
Classify the following patterns as interesting, uninteresting, or possibly interesting


(TBA also. I need to figure out how to have multiple LV windows in a grid instead of vertically.)
=== Outer Totalistic ===
=== Outer Totalistic ===



Revision as of 03:56, 11 April 2025

Introduction

!!! CURRENTLY A WIP !!!

So you've messed around with Conway's Game of Life, but are struggling to find anything new? You want to make real discoveries? OCA (Other Cellular Automata) may be of interest for you. This guide aims to give you an introduction to OCA. It will include LifeViewer inserts, but you probably want either a Golly or LifeViewer window in the background to follow along. Exercises will be included at the end of some subchapters.

1: Other Cellular Automata

This chapter will cover the basics: what OCA are and how to recognize objects.

What's OCA?

An OCA is a cellular automata that does not follow the standard behavior of Life. Recall that in Life, a cell is born with 3 living neighbors and remains alive if it has 2 or 3 living neighbors:

x=7, y = 3, rule = B3/S23 o3b3o$3o2bo$bo! [[ GPS 20 STEP 1 WIDTH 600 HEIGHT 360 GRID SHADER BASIC THEME 6 THUMBSIZE 2 ZOOM 16.0 THUMBNAIL ]]

In a different cellular automata, however, the rules are changed. Try, for example, running the same pattern, but this time in HighLife, where a cell is born with 3 or 6 living neighbors and lives with 2 or 3:

x=7, y = 3, rule = B36/S23 o3b3o$3o2bo$bo! [[ GPS 20 STEP 1 WIDTH 600 HEIGHT 360 GRID SHADER BASIC THEME 6 THUMBSIZE 2 ZOOM 16.0 THUMBNAIL ]]

Note that the two patterns very quickly diverge from each other. In OCA, you can't just take patterns from Life for granted, especially in rules with very different behavior to Life. You'll have to find new patterns to achieve wanted behavior. Sometimes, patterns exist in rules that have no comparable counterpart in Life:

x=5, y = 5, rule = B36/S23 2b3o$bo2bo$o3bo$o2bo$3o! [[ GPS 20 STEP 1 WIDTH 600 HEIGHT 360 GRID SHADER BASIC THEME 6 THUMBSIZE 2 ZOOM 16.0 THUMBNAIL ]]

Even stranger, some rules lack entire object types that Life doesn't have. In Seeds, for example, a cell is born with 2 living neighbors and always dies in the next generation, making still lives impossible.

Object Recognition

If objects from standard Life don't work in OCA, how will you know what they do? Thankfully, there are a couple of tools to identify what an object is doing. The most powerful of these tools is your own brain. When you notice an object, you should be able to quickly recognize what it is. Here are common objects in a convenient table. You probably already know most of these, but a refresher is nice:

Object type Behavior Example from Life
Still life Does not change after a generation Block
Oscillator Returns to initial state after some number of generations Blinker
Spaceship Returns to initial state, plus displacement, after some number of generations Glider
Active region Common chaotic pattern, which can be used in catalyses Herschel
Replicator Creates a copy of itself, leading to infinite growth No elementary examples in Life, but one is shown above
Puffer Like a spaceship, but leaves objects behind it. (Called a rake if it leaves only spaceships, and a breeder if it leaves puffers) Block-laying switch engine

Once you spot an object, how do you figure out more specific details about it? Say, for example, you are confronted with this:

x=14, y = 19, rule = B36/S23 3bo2b2o$3bo4bo$3bo4bo$5o$3bobo$4b5o$o4bo$o4bo5b3o$b2o2bo4$9bo$7bo3bo2$ 6bo5bo2$7bo3bo$9bo! [[ GPS 20 STEP 1 WIDTH 600 HEIGHT 360 GRID SHADER BASIC THEME 6 THUMBSIZE 2 ZOOM 10.0 ]]

It would be tedious and time consuming to count each phase of this object until it returns to its original position, and even more tedious to record the population of each phase and find the lowest one. Thankfully, we have computers:

x=14, y = 19, rule = B36/S23 3bo2b2o$3bo4bo$3bo4bo$5o$3bobo$4b5o$o4bo$o4bo5b3o$b2o2bo4$9bo$7bo3bo2$ 6bo5bo2$7bo3bo$9bo! [[ GPS 20 STEP 1 WIDTH 900 HEIGHT 540 GRID SHADER BASIC THEME 6 THUMBSIZE 2 ZOOM 10.0 AUTOIDENTIFY ]]

oscar: Your new best friend

This section is not entirely about oscar.lua (and oscar.py, although I won't be covering that because python is broken on my golly. They do pretty much the same thing), as LifeViewer deserves love too!! LifeViewer's Identify feature is more convenient to use, albeit slower. To use it, simply ensure that the target pattern is the only pattern on the grid (doing Shift+Delete will clear cells outside a selection) and it should give you details about the pattern! It also tells you information that oscar does not, like the period map. However, LifeViewer's Identify struggles with patterns with period in the tens of thousands or more. When these objects arise, you can use oscar.lua, a lua script helpfully bundled with Golly. To run oscar.lua, ensure that the target pattern is once again the only pattern in the grid, click "File -> Run Script", navigate to oscar.lua, and click it. It might take a while to run for high period patterns.

Sidebar: What the information under Identify means

WILL BE FINISHED LATER

Limitations of oscar: recognizing replicators, puffers, and other strange growth

It is worth noting that oscar.lua and Identify both suffer from crucial flaws: they cannot identify puffers, replicators, or other complex patterns. One workaround to this is to use the catagolue object page ([1]), which can determine the period of puffers (however, it cannot currently identify their displacement; this has to be done manually). To identify using the object page, paste the RLE (obtainable in the lower right of LifeViewer after copying or directly from a Golly copy) into the text box and press identify. This will send you to a page which should contain the text "ylXX" at the top, where XX is the period of your puffer. The catagolue page can also identify other objects, indicating still lifes by xs(population), oscillators by xp(period), spaceships by xq(period), puffers and other linear growth with yl(period), and other objects with zz or rarely other descriptions. Catagolue will be useful later, so keep this in the back of your mind!

Exercises

Use oscar or Identify to identify each of the following:

(TBA)

What's interesting?

So you've found an object. How do you tell if it's worth posting? It's usually fine to post it to the #naturalistic channel of the discord. However, when posting to the forums, here are some things to consider:

  • Is your object high period or very large but common? For example, a period-250 object is more interesting than a period-5 object.
  • Does your object interact with other objects in unique ways? For example, if your rule has a common ship that, when hitting a block, is cleanly reflected 90 degrees and leaves the block intact, that's pretty interesting.
  • Does the rule itself have interesting dynamics and common objects with varied uses? Many of the most successful rules are ones with several different interesting object. If your rule has one object and it's not endemic, consider checking out rules nearby.
  • Most importantly, use your judgement.

Exercises

Classify the following patterns as interesting, uninteresting, or possibly interesting

(TBA also. I need to figure out how to have multiple LV windows in a grid instead of vertically.)

Outer Totalistic

A mostly dry rulespace

Islands of interesting behavior

life !!!!!!!!!!!!!!!!!!!

Isotropic Non-totalistic

How do you navigate a 102-dimensional hypercube?

INT is unimaginably vast

What to look for in an interesting rule

Islands of really interesting behavior

2: Exploring OCA

Classifying OCA

Rulegolfing

When to rulegolf

When NOT to rulegolf

Object-XORing

Rulegolfing with COMPUTERS

3: Techniques for OCA

Corderization

Corderizing Basics

The puffer is oblique!!!

The puffer is dirty!!!!!!

When to give up

Gun construction

Leverage your oscillators

Overunity reactions

Now is a good time to talk about reflectors

Circuitry

Catalysis

Oscillators: certainly underused

Now is a better time to talk about reflectors

Other useful components

Turing-completeness

W110

Universal construction

=== Omniperiodicity and beyond

=== (maybe more advanced stuff here?)

4: Beyond Moore and the Binary

Larger than life

Rules with more than two states

Ruletables: your new archnemesis

Exotic cellular automata

Appendixes

I: Uncommon Nomenclature

II: Useful Programs

III: Useful Threads

IV: INT restriction sets

Index

luveel's lifeviewer configuration:

x=7, y = 3, rule = B3/S23 o3b3o$3o2bo$bo! [[ GPS 20 STEP 1 WIDTH 600 HEIGHT 360 GRID SHADER BASIC THEME 6 THUMBSIZE 2 ZOOM 16.0 THUMBNAIL ]]

Template:Compact TOC