Conway's Game of Life in the newest version of #Modal. Takes heavy advantage of rule deletion to simulate a 2D grid.
2 comments
@neauoire I'm not sure, I never tried a version without. But my gut feeling is that undefining is faster. Without the ability to stash values in the rules I'd need a run of re-writing operations to read from the grid and write back to it. (Or implement my grid as some kind of tree-map structure) |
@capital no way! That's awesome. The first GOL, is the rewriting fast? Does the undefinition operator cuts down on a lot of rewriting?