Life tag testing

For scripts to aid with computation or simulation in cellular automata.
Locked
User avatar
rowett
Moderator
Posts: 4597
Joined: January 31st, 2013, 2:34 am
Location: UK
Contact:

Re: Life tag testing

Post by rowett »

Build 428 is now available on the lazyslug server

Enhancements in this build:
  • PCA rules now support Randomize
  • PCA population now takes into account the 4 parts per cell
  • updated Help information for PCA rules
This build is a Release Candidate.
User avatar
rowett
Moderator
Posts: 4597
Joined: January 31st, 2013, 2:34 am
Location: UK
Contact:

Re: Life tag testing

Post by rowett »

Build 429 is now available on the lazyslug server

Fixes in this build:
  • ensure PopUp Viewer size is consistent when using Randomize, New Pattern or Change Rule
  • fixed PopUp title message size
This build is a Release Candidate.
User avatar
rowett
Moderator
Posts: 4597
Joined: January 31st, 2013, 2:34 am
Location: UK
Contact:

Re: Life tag testing

Post by rowett »

Build 430 is now available on the lazyslug server

Enhancements in this build:
  • CXRLE Gen now accepts negative generations
  • new Theme for PCA rules which has a different colour for each of the 4 sub-pixels
This build is a Release Candidate.
User avatar
rowett
Moderator
Posts: 4597
Joined: January 31st, 2013, 2:34 am
Location: UK
Contact:

Re: Life tag testing

Post by rowett »

Build 431 is now available on the lazyslug server

Fixes in this build:
  • fixed issue with PCA Theme for non-PCA rules
This build is a Release Candidate.
User avatar
rowett
Moderator
Posts: 4597
Joined: January 31st, 2013, 2:34 am
Location: UK
Contact:

Re: Life tag testing

Post by rowett »

Build 432 is now available on the lazyslug server

Enhancements in this build:
  • Help->Info->Theme now shows PCA Theme colour labels
Fixes in this build:
  • Flip X and Flip Y now flip sub-pixels in PCA cells
  • fixed editor issue with PCA rules on odd generations
This build is a Release Candidate.
User avatar
rowett
Moderator
Posts: 4597
Joined: January 31st, 2013, 2:34 am
Location: UK
Contact:

Re: Life tag testing

Post by rowett »

Build 433 is now available on the lazyslug server

Fixes in this build:
  • workround for performance issue on iOS 13
This build is a Release Candidate.
User avatar
rowett
Moderator
Posts: 4597
Joined: January 31st, 2013, 2:34 am
Location: UK
Contact:

Re: Life tag testing

Post by rowett »

Nathaniel,
Please will you update the [ viewer ] template so it outputs <p> </p> where it used to output <div class="sellall"> </div>

See here for the report.
User avatar
rowett
Moderator
Posts: 4597
Joined: January 31st, 2013, 2:34 am
Location: UK
Contact:

Re: Life tag testing

Post by rowett »

Build 434 is now available on the lazyslug server

Enhancements in this build:
  • [[ PASTEMODE <0..15>|mode]] script command now supports 16 paste modes:
    • ZERO, AND, 0010, X, 0100, Y, XOR, OR, NOR, XNOR, NOTY, 1011, NOTX, 1101, NAND, ONE
    • COPY can be used instead of X
  • alternate rules where the alternates are duplicates now remove duplicate from rule and alias name
Fixes in this build:
  • fixed Wolfram alternate rules
This build is a Release Candidate.
User avatar
rowett
Moderator
Posts: 4597
Joined: January 31st, 2013, 2:34 am
Location: UK
Contact:

Re: Life tag testing

Post by rowett »

Build 435 is now available on the lazyslug server

Enhancements in this build:
  • [[ PASTEMODE ]] now accepts binary truth table output (e.g. 0001 for AND and 0111 for OR)
  • [[ PASTEMODE ]] now allows DIFF as an alias for mode 4 (0100)
This build is a Release Candidate.
User avatar
dvgrn
Moderator
Posts: 12053
Joined: May 17th, 2009, 11:00 pm
Location: Madison, WI
Contact:

Re: Life tag testing

Post by dvgrn »

This is either an interesting new feature or something I didn't notice before:

For LifeWiki embedded LifeViewers, e.g., the one on the Very_long_boat page, it used to be that if you wanted to see how the pattern behaved, you'd click on the embedded viewer to get a pop-up window, then move the cursor to the pop-up window so that it would grab keystrokes, then hit [Enter] to start the pattern running. I don't remember it being possible to actually see the pattern running in the original embedded window, unless the viewerconfig included an AUTOSTART script command.

Now suddenly when I click and open the popup window, then hit [Enter] immediately without moving the mouse, the animation starts in the original embedded viewer instead of in the pop-up.

This kind of makes me want some way to choose where I want to run the pattern. If things are adequately visible in the embedded viewer, why bother to open the popup at all? But very often the popup is good to have for the pan and zoom and other controls, of course. The way it works now is really pretty good, except that if I close the popup I can't get the pattern running in the embedded viewer any more (without re-opening the popup).

--------------------------------

While I'm at it, I'll mention another oddity for which I haven't tracked down the source: click to open the popup, keep the mouse over the embedded viewer, and type Alt+N. A mysterious popup appears --
CreateNewPatternWithRule.png
CreateNewPatternWithRule.png (6.9 KiB) Viewed 171 times
-- and when you click OK, it breaks the embedded viewer (makes it much smaller, with a black theme).
User avatar
rowett
Moderator
Posts: 4597
Joined: January 31st, 2013, 2:34 am
Location: UK
Contact:

Re: Life tag testing

Post by rowett »

dvgrn wrote: October 16th, 2019, 10:56 am Now suddenly when I click and open the popup window, then hit [Enter] immediately without moving the mouse, the animation starts in the original embedded viewer instead of in the pop-up.
This is an (unfortunate?) side-effect of the recent fix for slow-down on iOS. The fix was because for some reason when a Viewer has focus on iOS the update events only get delivered to LifeViewer 15 times a second (rather than 60) resulting in slowdown.
The fix was a) not to set focus when the PopUp Viewer launches and b) not to set focus when any touch events are registered.

This is OK for mobile since you can't use hotkeys.

Before the fix launching a PopUp Viewer would grab focus. Key strokes get delivered to whatever has focus.

So in this scenario on the desktop when you click on the embedded Viewer you are giving it focus. Next the PopUp Viewer launches and doesn't take focus. Any key presses go to the Viewer with focus which is the embedded one.
dvgrn wrote: October 16th, 2019, 10:56 am This kind of makes me want some way to choose where I want to run the pattern. If things are adequately visible in the embedded viewer, why bother to open the popup at all? But very often the popup is good to have for the pan and zoom and other controls, of course. The way it works now is really pretty good, except that if I close the popup I can't get the pattern running in the embedded viewer any more (without re-opening the popup).
I think this would prove to be confusing. You have a choice: use an embedded one, or use a thumbnail embedded one to launch the PopUp :)
dvgrn wrote: October 16th, 2019, 10:56 am While I'm at it, I'll mention another oddity for which I haven't tracked down the source: click to open the popup, keep the mouse over the embedded viewer, and type Alt+N. A mysterious popup appears --

CreateNewPatternWithRule.png
-- and when you click OK, it breaks the embedded viewer (makes it much smaller, with a black theme).
Alt+N is the hotkey for New Pattern that was introduced in Build 401.
When you ask for a New Pattern you're prompted for the pattern rule (defaults to the current rule). If you then click OK LifeViewer will restart with a blank pattern. It goes black because that's the default Theme background colour and a new pattern has no live cells.

You have hit a bug, however. It looks like New Pattern is fighting with Thumbnail settings. Of course, this wouldn't be an issue if I hadn't fixed the iOS performance issue because you'd never be able to run New Pattern on a thumbnail :)

EDIT: In fact what I'm planning on doing is preventing an embedded Viewer that's used to launch a PopUp (using THUMBLAUNCH) from retaining focus. This means I don't have to fix the much smaller bug and it clears up the confusion above.
User avatar
rowett
Moderator
Posts: 4597
Joined: January 31st, 2013, 2:34 am
Location: UK
Contact:

Re: Life tag testing

Post by rowett »

Build 436 is now available on the lazyslug server

Fixes in this build:
  • fixed tab position on scaled window for error messages
  • remove focus from embedded Viewer after [[ THUMBLAUNCH ]]
  • fixed resizing bounding box after some editor actions
This build is a Release Candidate.
User avatar
rowett
Moderator
Posts: 4597
Joined: January 31st, 2013, 2:34 am
Location: UK
Contact:

Re: Life tag testing

Post by rowett »

Build 437 is now available on the lazyslug server

Enhancements in this build:
  • added Oscillator and Spaceship period detection
    • toggle with Settings->Pattern->Identify (hotkey F6)
    • once enabled just run the pattern (at any STEP speed)
    • will detect oscillators and spaceships up to a period of 2^20 generations
    • Help->Info->Identify shows last search result
Fixes in this build:
  • adjusted position of Close Window button
  • multi-state patterns with invalid rules were displaying as 2-state
This build is a Release Candidate.
User avatar
rowett
Moderator
Posts: 4597
Joined: January 31st, 2013, 2:34 am
Location: UK
Contact:

Re: Life tag testing

Post by rowett »

Build 438 is now available on the lazyslug server

Fixes in this build:
  • fixed various rendering issues for patterns with invalid rules
This build is a Release Candidate.
User avatar
rowett
Moderator
Posts: 4597
Joined: January 31st, 2013, 2:34 am
Location: UK
Contact:

Re: Life tag testing

Post by rowett »

Build 439 is now available on the lazyslug server

Enhancements in this build:
  • Identify now adds the following metrics to Help->Info->Identify:
    • Type (Still Life [0], Oscillator [1] or Spaceship [2])
    • Cells (number of live cells) or if different:
      • Min Cells and Max Cells [1][2]
    • Bounding_box
    • Direction (Orthogonal, Diagonal or Oblique) [2]
    • Period [1][2]
    • Slope [2]
    • Speed (simplified) [2]
    • Heat [1][2]
    • Generation (the start and end generation of detection)
This build is a Release Candidate.
User avatar
rowett
Moderator
Posts: 4597
Joined: January 31st, 2013, 2:34 am
Location: UK
Contact:

Re: Life tag testing

Post by rowett »

Build 440 is now available on the lazyslug server

Enhancements in this build:
  • Identify improvements:
    • automatically starts searching at full STEP speed
    • stops playback when finished
    • displays table of results
    • autofits display to result
    • clicking Settings->Pattern->Identify will now close Settings menu
    • Reset to hide table of results
This build is a Release Candidate.
User avatar
rowett
Moderator
Posts: 4597
Joined: January 31st, 2013, 2:34 am
Location: UK
Contact:

Re: Life tag testing

Post by rowett »

Build 441 is now available on the lazyslug server

Fixes in this build:
  • improved hash function
  • fixed bounding box for oscillators
  • fix Identify not working with Themes with no history
This build is a Release Candidate.
User avatar
dvgrn
Moderator
Posts: 12053
Joined: May 17th, 2009, 11:00 pm
Location: Madison, WI
Contact:

Re: Life tag testing

Post by dvgrn »

Just noticed by accident that Build 441 doesn't seem to be playing well with Internet Explorer -- or maybe the other way around. (?)

My Windows 10 machine says it's running IE 11.1009.17134.0. Patterns show up on the LifeWiki, but the controls don't work -- the X button closes the pop-up window, but that seems to be about all. On the forums the "Show in Viewer" links aren't appearing, and [​viewer] patterns have a big blank space where LifeViewer is supposed to be.
User avatar
rowett
Moderator
Posts: 4597
Joined: January 31st, 2013, 2:34 am
Location: UK
Contact:

Re: Life tag testing

Post by rowett »

Build 442 is now available on the lazyslug server

Fixes in this build:
  • IE11 compatibility fix
This build is a Release Candidate.
User avatar
rowett
Moderator
Posts: 4597
Joined: January 31st, 2013, 2:34 am
Location: UK
Contact:

Re: Life tag testing

Post by rowett »

dvgrn wrote: October 22nd, 2019, 10:24 pm Just noticed by accident that Build 441 doesn't seem to be playing well with Internet Explorer -- or maybe the other way around. (?)
Just fixed. That must have been broken for a while so it shows how often people are using Internet Explorer.
User avatar
rowett
Moderator
Posts: 4597
Joined: January 31st, 2013, 2:34 am
Location: UK
Contact:

Re: Life tag testing

Post by rowett »

Build 443 is now available on the lazyslug server

Enhancements in this build:
  • added Volatility to Identify output for Oscillators
This build is a Release Candidate.
User avatar
rowett
Moderator
Posts: 4597
Joined: January 31st, 2013, 2:34 am
Location: UK
Contact:

Re: Life tag testing

Post by rowett »

Build 444 is now available on the lazyslug server

Enhancements in this build:
  • added Mod to Identify
This build is a Release Candidate.
User avatar
rowett
Moderator
Posts: 4597
Joined: January 31st, 2013, 2:34 am
Location: UK
Contact:

Re: Life tag testing

Post by rowett »

Build 445 is now available on the lazyslug server

Enhancements in this build:
  • Identify results now include:
    • min, max and average cells
    • rotor, stator, total active cells (for Oscillators)
    • min, max and average Heat (for Oscillators and Spaceships)
    • Mod transformation (for Oscillators and Spaceships)
    • bounding box size in cells
  • Mod calculation now works for PCA sub-cells
  • improved Mod calculation performance for multi-state patterns
Fixes in this build:
  • reverse playback hotkey was not working for PCA rules
  • fixed Identify for alternating rules
  • fixed canonical form for Hex rules
  • made step back hotkey behaviour for PCA rules match Margolus rules
  • fixed step back at T=0 for reversible rules
  • fixed an issue with Mod buffer not being reset when loading new pattern
This build is a Release Candidate.
User avatar
rowett
Moderator
Posts: 4597
Joined: January 31st, 2013, 2:34 am
Location: UK
Contact:

Re: Life tag testing

Post by rowett »

Build 446 is now available on the lazyslug server

Enhancements in this build:
  • added Temperature (active and rotor) to Identify output for Oscillators
  • added Unsimplified Speed to Identify output for Spaceships
Fixes in this build:
  • fixed an issue with Mod calculation for non-square bounding boxes and rotations
  • Active cell counts and Volatility now work for PCA sub-cells
This build is a Release Candidate.
User avatar
rowett
Moderator
Posts: 4597
Joined: January 31st, 2013, 2:34 am
Location: UK
Contact:

Re: Life tag testing

Post by rowett »

RuleTable load tests

These tests just check if a named rule can be loaded from a wiki Rule: page.

RuleTable [should succeed]:

Code: Select all

x = 9, y = 5, rule = DoubleB3S23
$bo3b3o$b3o2bo$2bo!
RuleTable with ICONS [should succeed]:

Code: Select all

x = 9, y = 5, rule = MazeSolver
$bo3b3o$b3o2bo$2bo!
RuleTree [should succeed]:

Code: Select all

x = 9, y = 5, rule = Hutton32
$bo3b3o$b3o2bo$2bo!
Should fail:

Code: Select all

x = 9, y = 5, rule = MissingRule
$bo3b3o$b3o2bo$2bo!
Locked