Skip to content

Instantly share code, notes, and snippets.

This is my image repository

+----------------+----------+------------+
| state | count(*) | ab_version |
+----------------+----------+------------+
| not-registered | 8074 | A_ONB_1661 |
| registered | 276 | A_ONB_1661 |
| not-registered | 7882 | B_ONB_1661 |
| registered | 278 | B_ONB_1661 |
+----------------+----------+------------+
So the B version with commonality has 2.3% less overall sent invites, success rate is a bit higher 3.4% compared to 3.3% of A version.
use strict;
use warnings;
use autodie;
use Fcntl ':seek';
use FindBin ();
use IO::Handle ();
use IO::Seekable ();

HWSS synthesis

x = 67, y = 98, rule = B3/S23
2bo$obo$b2o48$64b2o$65bo$63bo$63b2o11$66bo$66bo$66bo15$64b2o$65bo$63bo
$63b2o7$62bo$60bobo$61b2o2$66bo$66bo$66bo!

LWSS synthesis

(dirty)

#!/usr/bin/perl
use strict;
use warnings;
use Test::More;
use DBI ();
use IO::Handle ();
use List::Util 'min';
use Memoize 'memoize';
#S first-encounter 20
#S last-encounter 25
#S repair-interval 20
#S stable-interval 4
#S max-live 20
#S max-active 7
#P 0 0
.
.
...........????????????..
x = 43, y = 53, rule = B3/S23
6bo$4bobo$5b2o2$38bo$38bobo$38b2o$2bo$obo$b2o11$21bo10bo$20bo10bo$20b
3o8b3o7$18b3o$18bo$19bo6b3o$26bo$27bo6$41b2o$40b2o$42bo8$32bo$31b2o4b
2o$31bobo3bobo$37bo!
x = 68, y = 68, rule = B3/S23
3bo$2bobo$3bo2$b5o$o2bo2bo$2o3bobo$6b2o14$3bob2o13b2obo$3b2obo13bob2o
2$b5o15b5o$o2bo2bo13bo2bo2bo$2o3bobo12b2o3bobo$6b2o18b2o13$5b2o15b2o
19b2o15b2o$3bo2bo15bo2bo15bo2bo15bo2bo$3b3o17b3o15b3o17b3o2$b5o15b5o
15b5o15b5o$o2bo2bo13bo2bo2bo13bo2bo2bo13bo2bo2bo$2o3bobo12b2o3bobo12b
2o3bobo12b2o3bobo$6b2o18b2o18b2o18b2o13$4b2o17b2o17b2o17b2o$3bo2bo15bo
2bo15bo2bo15bo2bo$3b3o17b3o15b3o17b3o2$b5o15b5o15b5o15b5o$o2bo2bo13bo
2bo2bo13bo2bo2bo13bo2bo2bo$2o3bobo12b2o3bobo12b2o3bobo12b2o3bobo$6b2o
18b2o18b2o18b2o!
% et - Erlang template engine
% Copyright (c) 2008 Ivan Fomichev
%
% Permission is hereby granted, free of charge, to any person obtaining a copy
% of this software and associated documentation files (the "Software"), to deal
% in the Software without restriction, including without limitation the rights
% to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
% copies of the Software, and to permit persons to whom the Software is
% furnished to do so, subject to the following conditions:
%
x = 67, y = 71, rule = B3/S23
59bo$57b2o$58b2o17$40bo$24bo7b2o4b2o$24b3o5b2o5b2o$27bo$26b2o4$38b2o$
37bobo$37bo$35b3o$34bo$35b3o$37bo$37bobo$20b2o16b2o$19bobo$21bo12$46bo
$45b2o$45bobo3$b2o$obo$2bo12$65bo$64b2o$64bobo!