Oscillizer-Web, yet another oscillizer remake

For scripts to aid with computation or simulation in cellular automata.
Post Reply
User avatar
Scorbie
Posts: 1692
Joined: December 7th, 2013, 1:05 am

Oscillizer-Web, yet another oscillizer remake

Post by Scorbie » August 20th, 2021, 7:02 am

It's neither polished or complete, but here's a working copy of the project.
Oscillizer-Web, a static frontend web remake of oscillizer.

https://nightlyherb.github.io/oscillizer

It can handle totalistic and INT rules.
The infobox has less info than oscillizer and it should probably be slower than the other counterparts (it isn't optimized)
I still made this (seemingly redundant) project cause the user doesn't need to install anything.

Edit

This has gotten more attention that it actually deserves, many many thanks to everyone!
And I'm so sorry for not being able to catch up all the issues.
The current issues are listed in https://github.com/nightlyherb/oscillizer/issues
If the issues are already known, let me know in this thread if it matters to you.

Thank you.
Last edited by Scorbie on January 3rd, 2022, 9:06 pm, edited 1 time in total.

User avatar
dvgrn
Moderator
Posts: 10612
Joined: May 17th, 2009, 11:00 pm
Location: Madison, WI
Contact:

Re: Oscillizer-Web, yet another oscillizer remake

Post by dvgrn » August 20th, 2021, 7:34 am

Scorbie wrote:
August 20th, 2021, 7:02 am
It's neither polished or complete, but here's a working copy of the project.
Oscillizer-Web, a static frontend web remake of oscillizer.

https://nightlyherb.github.io/oscillizer

It can handle totalistic and INT rules.
Thanks for building a web-only version! I just tried the three cell options on the new p14 gun (plus an eater) and it looks very nice.

Is there any way to add a key below the colored diagram, to say which colors correspond to which periods?

User avatar
LaundryPizza03
Posts: 2297
Joined: December 15th, 2017, 12:05 am
Location: Unidentified location "https://en.wikipedia.org/wiki/Texas"

Re: Oscillizer-Web, yet another oscillizer remake

Post by LaundryPizza03 » August 20th, 2021, 8:09 am

The stator and the full-period rotor are given too similar colors. For example, try calculating the stator on this p7 using the applet — the resulting image should be a gray blob next to a slightly darker gray blob. The scheme for colored cells seems okay, however. I'd suggest changing the full-period rotor to white, like in Nakano and the original Oscillizer.

Code: Select all

x = 8, y = 9, rule = B3678/S35678
3b2o$3b2o$b5o$b7o$b7o$b5o$5o$b3o$2b3o!
Note that this preview is about twice actual size.

A word of advice on colored cells: The maximum number of divisors of a number below 1000 is 32 (for period 840), so you will need to encode 32 different colors + background to satisfactorily represent an arbitrary oscillator at period 1000 or below.
Attachments
Oscillizer Web Colors.png
Oscillizer Web Colors.png (7.91 KiB) Viewed 3621 times

Code: Select all

x = 4, y = 3, rule = B3-q4z5y/S234k5j
2b2o$b2o$2o!
LaundryPizza03 at Wikipedia

User avatar
Scorbie
Posts: 1692
Joined: December 7th, 2013, 1:05 am

Re: Oscillizer-Web, yet another oscillizer remake

Post by Scorbie » August 20th, 2021, 10:13 pm

dvgrn wrote:
August 20th, 2021, 7:34 am
Is there any way to add a key below the colored diagram, to say which colors correspond to which periods?
I'll try, and I think it will show up alongside the oscillator data table.
I've witnessed my development speed though and I can't really give you any promised deadlines :(
LaundryPizza03 wrote:
August 20th, 2021, 8:09 am
The stator and the full-period rotor are given too similar colors. For example, try calculating the stator on this p7 using the applet — the resulting image should be a gray blob next to a slightly darker gray blob. The scheme for colored cells seems okay, however. I'd suggest changing the full-period rotor to white, like in Nakano and the original Oscillizer.
Thanks for the feedback. I got with this colorscheme because I don't like the white full-period rotor cells (and they make it harder to distinguish the individual cells), do you think it would be okay if I darken the stator cells instead?
A sample look on the darker stator
A sample look on the darker stator
oscillizer-test-dark-stator.png (552 Bytes) Viewed 3586 times
(Edit: That being said, the changes might not be implemented as people do have different preferences, as I've seen in the feedback in the discord lounge)
LaundryPizza03 wrote:
August 20th, 2021, 8:09 am
A word of advice on colored cells: The maximum number of divisors of a number below 1000 is 32 (for period 840), so you will need to encode 32 different colors + background to satisfactorily represent an arbitrary oscillator at period 1000 or below.
Thanks for the advice, the way it's implemented is that it just uses equally distributed hues from the hsv color wheels, and I don't see this changing as it's simple and effective for most use cases (up to 16 colors), but I'll keep that in mind in case there's a change or whatever.

User avatar
LaundryPizza03
Posts: 2297
Joined: December 15th, 2017, 12:05 am
Location: Unidentified location "https://en.wikipedia.org/wiki/Texas"

Re: Oscillizer-Web, yet another oscillizer remake

Post by LaundryPizza03 » November 20th, 2021, 3:39 am

I'm not sure why Oscillizer-Web now does not give the period of subperiodic rotors, such as the sparkers in this p132 that are color-coded red:

Code: Select all

x = 85, y = 49, rule = B3-ky4ek5y/S235e
b2o10b2o55b2o10b2o$b2o10b2o55b2o10b2o4$bo12bo55bo12bo$2bo10bo57bo10bo$
o2bo8bo2bo53bo2bo8bo2bo$o2bo8bo2bo53bo2bo8bo2bo$2b2o8b2o21bo13bo21b2o
8b2o$34bobo11bobo3$2b2o8b2o20b3o11b3o20b2o8b2o$o2bo8bo2bo18b3o11b3o18b
o2bo8bo2bo$o2bo8bo2bo19bo13bo19bo2bo8bo2bo$2bo10bo57bo10bo$bo12bo55bo
12bo$35bo13bo$34b3o11b3o2$b2o10b2o55b2o10b2o$b2o10b2o55b2o10b2o4$b2o
10b2o55b2o10b2o$b2o10b2o55b2o10b2o2$34b3o11b3o$35bo13bo$bo12bo55bo12bo
$2bo10bo57bo10bo$o2bo8bo2bo19bo13bo19bo2bo8bo2bo$o2bo8bo2bo18b3o11b3o
18bo2bo8bo2bo$2b2o8b2o20b3o11b3o20b2o8b2o3$34bobo11bobo$2b2o8b2o21bo
13bo21b2o8b2o$o2bo8bo2bo53bo2bo8bo2bo$o2bo8bo2bo53bo2bo8bo2bo$2bo10bo
57bo10bo$bo12bo55bo12bo4$b2o10b2o55b2o10b2o$b2o10b2o55b2o10b2o!

Code: Select all

x = 4, y = 3, rule = B3-q4z5y/S234k5j
2b2o$b2o$2o!
LaundryPizza03 at Wikipedia

User avatar
Scorbie
Posts: 1692
Joined: December 7th, 2013, 1:05 am

Re: Oscillizer-Web, yet another oscillizer remake

Post by Scorbie » November 20th, 2021, 4:25 am

LaundryPizza03 wrote:
November 20th, 2021, 3:39 am
I'm not sure why Oscillizer-Web now does not give the period of subperiodic rotors, such as the sparkers in this p132 that are color-coded red:
You mean you're not sure why it doesn't give the table of "subperiod - color" mappings as in this issue? Gosh, I guess the author is really lazy!


cough cough cough cough cough


I'll try to implement it after I clean up that pile of mess...

GUYTU6J
Posts: 2200
Joined: August 5th, 2016, 10:27 am
Location: 拆哪!I repeat, CHINA! (a.k.a. 种花家)
Contact:

Re: Oscillizer-Web, yet another oscillizer remake

Post by GUYTU6J » December 31st, 2021, 5:48 am

The website has failed to detect period of the following pattern:

Code: Select all

x = 26, y = 25, rule = B3-jknr4ity5ijk6i8/S23-a4city6c7c
3bo7bo$2bobo5bobo$3bo7bo2$6b3o$6bobo$6bobo$7bo$23bo$22bob2o$bo5bo15bob
o$obo2bo3bo12b2o$bo3bo3bo13bo$5bo3bo12bobo$7bo15bo$22b2o$23bobo$7bo14b
ob2o$6bobo14bo$6bobo$6b3o2$3bo7bo$2bobo5bobo$3bo7bo!
But it works fine for this composite one:

Code: Select all

x = 60, y = 40, rule = B3-jknr4ity5ijk6i8/S23-a4city6c7c
15bo17bo7bo$15bo16bobo5bobo$15bo17bo7bo$36b3o$35bo3bo$35bo3bo$35b2ob2o
$37bo3$31bo$30bobo3b3o$31bo3b5o10b3o$36b3o$47bo$46b2o$46bobo$37bo8b3o$
35b2ob2o$35bo3bo$35bo3bo$36b3o$33bo7bo$32bobo5bobo$bo31bo7bo$obo$bo45b
o$21bo14bo9b3o9bo$5b2o3bo9bobo12bobo8b3o8bobo$5bobob2o4bo5bo14bo21bo$
5b2o3bo3b3o25bo9bo$14b3o26b2o5b2o$bo11bo3bo21b3ob3o3b3ob3o$obo12bo27b
2o5b2o$bo13bo26bo9bo$15bo20bo21bo$35bobo19bobo$11bo7bo16bo9bo11bo$10bo
bo5bobo24bobo$11bo7bo26bo!
There are 9 colors on the map, but they don't have labells for crresponding periods:
oscillizer-test.png
oscillizer-test.png (16.14 KiB) Viewed 3022 times
my 1600th post on the last day of 2021

User avatar
Scorbie
Posts: 1692
Joined: December 7th, 2013, 1:05 am

Re: Oscillizer-Web, yet another oscillizer remake

Post by Scorbie » January 2nd, 2022, 8:07 pm

GUYTU6J wrote:
December 31st, 2021, 5:48 am
The website has failed to detect period of the following pattern:
I've been there once, and it's probably because that pattern is not one of the phases of the oscillator.
Maybe you wanted to search for the right pattern instead of the left?

Code: Select all

x = 66, y = 25, rule = B3-jknr4ity5ijk6i8/S23-a4city6c7c
3bo7bo31bo7bo$2bobo5bobo29bobo5bobo2b2o$3bo7bo31bo7bo3b2o$54bo$6b3o37b
3o4bo$6bobo37bobo3b3o$6bobo37bobo5bo$7bo39bo$23bo39bo$22bob2o36bob2o$b
o5bo15bobo15bo5bo15bobo$obo2bo3bo12b2o16bobo2bo3bo12b2o$bo3bo3bo13bo
17bo3bo3bo13bo$5bo3bo12bobo20bo3bo12bobo$7bo15bo23bo15bo$22b2o38b2o$
23bobo37bobo$7bo14bob2o21bo14bob2o$6bobo14bo22bobo5bo8bo$6bobo37bobo3b
3o$6b3o37b3o4bo$54bo$3bo7bo31bo7bo3b2o$2bobo5bobo29bobo5bobo2b2o$3bo7b
o31bo7bo!

GUYTU6J
Posts: 2200
Joined: August 5th, 2016, 10:27 am
Location: 拆哪!I repeat, CHINA! (a.k.a. 种花家)
Contact:

Re: Oscillizer-Web, yet another oscillizer remake

Post by GUYTU6J » January 2nd, 2022, 9:09 pm

Scorbie wrote:
January 2nd, 2022, 8:07 pm
GUYTU6J wrote:
December 31st, 2021, 5:48 am
The website has failed to detect period of the following pattern:
I've been there once, and it's probably because that pattern is not one of the phases of the oscillator. ...
Whoops, nice catch! Not sure why I missed that. edits stamp collection Would it be possible to output another message for these eventually-oscillating predecessor patterns?
Also, the color codes?

hotdogPi
Posts: 1587
Joined: August 12th, 2020, 8:22 pm

Re: Oscillizer-Web, yet another oscillizer remake

Post by hotdogPi » January 2nd, 2022, 9:26 pm

Oscillizer thinks this works: (it's Karel's p177, but any other pattern does the same). You can see two separate issues here.

Code: Select all

x = 46, y = 46, rule = B02y3/S23
16bo12bo$9b2o24b2o$8b3o3b2o14b2o3b3o$14b2ob2o8b2ob2o$16bo12bo4$2bo40bo
$b2o40b2o$b2o40b2o4$2b2o38b2o$2b2o38b2o$o3bo36bo3bo$3bo38bo$3bo38bo9$
3bo38bo$3bo38bo$o3bo36bo3bo$2b2o38b2o$2b2o38b2o4$b2o40b2o$b2o40b2o$2bo
40bo4$16bo12bo$14b2ob2o8b2ob2o$8b3o3b2o14b2o3b3o$9b2o24b2o$16bo12bo!
User:HotdogPi/My discoveries

Periods discovered: 5-16,⑱,⑳G,㉑G,㉒㉔㉕,㉗-㉛,㉜SG,㉞㉟㊱㊳㊵㊷㊹㊺㊽㊿,54G,55G,56,57G,60,62-66,68,70,73,74S,75,76S,80,84,88,90,96
100,02S,06,08,10,12,14G,16,17G,20,26G,28,38,47,48,54,56,72,74,80,92,96S
217,486,576

S: SKOP
G: gun

User avatar
Scorbie
Posts: 1692
Joined: December 7th, 2013, 1:05 am

Re: Oscillizer-Web, yet another oscillizer remake

Post by Scorbie » January 3rd, 2022, 12:56 am

hotdogPi wrote:
January 2nd, 2022, 9:26 pm
Oscillizer thinks this works: (it's Karel's p177, but any other pattern does the same). You can see two separate issues here.
Could you elaborate? I see one issue (defaulting to B3/S23 when rule parsing fails)
GUYTU6J wrote:
January 2nd, 2022, 9:09 pm
Also, the color codes?
That is in the issues that I plan to fix. Unfortunately for personal reasons I can't invest a lot of effort in the project.
I'm sorry for those who are waiting.

hotdogPi
Posts: 1587
Joined: August 12th, 2020, 8:22 pm

Re: Oscillizer-Web, yet another oscillizer remake

Post by hotdogPi » January 3rd, 2022, 8:08 am

Scorbie wrote:
January 3rd, 2022, 12:56 am
hotdogPi wrote:
January 2nd, 2022, 9:26 pm
Oscillizer thinks this works: (it's Karel's p177, but any other pattern does the same). You can see two separate issues here.
Could you elaborate? I see one issue (defaulting to B3/S23 when rule parsing fails)

Ignoring B0 entirely and allowing transitions that don't exist (with no effect) are two separate issues. It doesn't default to Life.

x = 3, y = 1, rule = B02i3/S02-i3
3o!

x = 3, y = 1, rule = B2iy3/S02-i3
3o!

both tell me it's period 4, which it is in B2i3/S02-i3, while it's period 2 in Life. (If B0 was actually handled correctly, it would become period 2, but it's a predecessor.)
User:HotdogPi/My discoveries

Periods discovered: 5-16,⑱,⑳G,㉑G,㉒㉔㉕,㉗-㉛,㉜SG,㉞㉟㊱㊳㊵㊷㊹㊺㊽㊿,54G,55G,56,57G,60,62-66,68,70,73,74S,75,76S,80,84,88,90,96
100,02S,06,08,10,12,14G,16,17G,20,26G,28,38,47,48,54,56,72,74,80,92,96S
217,486,576

S: SKOP
G: gun

User avatar
Scorbie
Posts: 1692
Joined: December 7th, 2013, 1:05 am

Re: Oscillizer-Web, yet another oscillizer remake

Post by Scorbie » January 3rd, 2022, 9:04 pm

hotdogPi wrote:
January 3rd, 2022, 8:08 am
Scorbie wrote:
January 3rd, 2022, 12:56 am
hotdogPi wrote:
January 2nd, 2022, 9:26 pm
Oscillizer thinks this works: (it's Karel's p177, but any other pattern does the same). You can see two separate issues here.
Could you elaborate? I see one issue (defaulting to B3/S23 when rule parsing fails)

Ignoring B0 entirely and allowing transitions that don't exist (with no effect) are two separate issues. It doesn't default to Life.

x = 3, y = 1, rule = B02i3/S02-i3
3o!

x = 3, y = 1, rule = B2iy3/S02-i3
3o!

both tell me it's period 4, which it is in B2i3/S02-i3, while it's period 2 in Life. (If B0 was actually handled correctly, it would become period 2, but it's a predecessor.)
Thanks, I'll add it to the todo list...

https://github.com/nightlyherb/oscillizer/issues

yoleo
Posts: 124
Joined: October 26th, 2021, 11:48 pm

Re: Oscillizer-Web, yet another oscillizer remake

Post by yoleo » December 13th, 2023, 10:55 pm

This seems to be down currently.

Post Reply