Theory of Self Reproducing Automata (1966) [pdf]
<a href="https:&#x2F;&#x2F;news.ycombinator.com&#x2F;item?id=22738598" rel="nofollow">https:&#x2F;&#x2F;news.ycombinator.com&#x2F;item?id=22738598</a><p>DonHopkins on March 31, 2020 | parent | context | favorite | on: Von Neumann Universal Constructor<p>Check out Buckley&#x27;s paper, &quot;Signal crossing solutions in von Neumann self-replicating cellular automata&quot;, page 453-503 of the Automata-2008 proceedings.
The Wikipedia article discusses and cites the paper, but the link is broken, so here&#x27;s a better one:<p>&quot;Signal crossing solutions in von Neumann self-replicating cellular automata&quot;, page 453-503<p><a href="https:&#x2F;&#x2F;donhopkins.com&#x2F;home&#x2F;documents&#x2F;automata2008reducedsize.pdf" rel="nofollow">https:&#x2F;&#x2F;donhopkins.com&#x2F;home&#x2F;documents&#x2F;automata2008reducedsiz...</a><p>It has a great nuts-and-bolts explanation of how John von Neumann&#x27;s 29 state rule and his universal constructor work, with lots of details, theories, and practical advice about the design and working of various &quot;organs&quot;, like basic building blocks (specifically signal crossings), reusable components, higher level machines, programming techniques, data representation and coding, and overall architecture.<p>The paper is about how to construct organs that initialize themselves the first time they come alive, kind of like a C++ constructor, that&#x27;s only used once in the lifetime of an object.<p>That&#x27;s important because you have to construct unexcited devices with the power off (no excited states), using a construction arm kind of like a 3d or ink jet printer head, but 2d and cells, driven by a &quot;tape&quot; of instructions that moves the arm back and forth and draws the required 2d grid of cells.<p>Factorio players will recognize these tapes of construction instructions as 2D &quot;blueprints&quot; that construction drones use to build patterns of factories and conveyor belts, etc. In Factorio, after your drones have build a blueprint in the unpowered, unsupplied state, you can connect it to the power grid, hook up pipes to deliver fluids, and run conveyor belts in and out of it to deliver resources and products, and it will immediately starts doing its thing. Playing Factorio is uncannily like von Neumann 29 state cellular automata programming, not by coincidence. So it&#x27;s a great way to get your head around cellular automata programming, gpu programming, parallel programming, queuing systems, and data flow programming in general!<p>Factorio Tutorial #20 - Bots, part 1 - Construction robots<p><a href="https:&#x2F;&#x2F;www.youtube.com&#x2F;watch?v=kLOyk55uI2Y&amp;t=19m32s" rel="nofollow">https:&#x2F;&#x2F;www.youtube.com&#x2F;watch?v=kLOyk55uI2Y&amp;t=19m32s</a><p>Factorio just doesn&#x27;t have the ability to construct cells by spilling items off the end of conveyor belts, or destroy cells with conveyor belts, either. But maybe there&#x27;s an extension for that! And John von Neumann&#x27;s 29 state cellular automata doesn&#x27;t have swarms of construction drones that build and tear down blueprints in parallel like Factorio does, so there are some differences. But the basic idea of grids of cells with conveyor belts carrying items between factories is the same.<p>Once you construct an auto-initializing machine, you inject the powered-off copy with a signal, like a reset pulse followed by data, for it to process. And the data can be a program like a series of instructions to control the drawing arm, data to transfer or process, timing signals, or control signals for other machines.<p>Not all machines need to auto-initialize, but machines that use auto-initialization &quot;code&quot; run it once first to set up all the timers and signals, and then the code cuts itself off and switches to the normal runtime &quot;code&quot; for processing the input signals, using &quot;self modifying code&quot; that cuts the traces to the initialization circuit and draws the traces to conduct the signal into the now-initialized machine itself.<p>(Self modifying code can destroy an arrow by pointing to it with another &quot;special&quot; kind of arrow, and sending an excited signal to it, then it disappears and cuts off the downstream circuit. And it can draw new arrows at any time, the same way as the construction arm does, by pointing an arrow at an empty unexcited space, and sending out a series of on&#x2F;off signals to select which cell to create (huffman encoding).<p>So the construction arm prints out an unpowered machine, which, when powered up, initializes itself once, and then modifies itself to permanently switch into run mode.<p>A self replicating machine (which was stupendously huge and complex for a program from 1940 designed on graph paper without the help of computers, but is a microscopic speck compared to Electron today) first prints a powered-down copy of itself, then injects a copy of its program into the storage device of the new copy through an &quot;umbilical cord&quot;, then sends it a reset signal to boot it to &quot;life&quot; and make it start executing its copy of the program from its own tape, and reproducing itself. (Breathing a copy of its &quot;soul&quot; into its new child machine, so to speak.)<p>The parent would typically print a copy of itself offset in the same direction as its parent had printed it, then shut down (or at least stop building and go into a deep state of meditation, counting electric sheep or something) after reproducing once, so as not to hurt its child.<p>It&#x27;s left as an exercise to the reader to design a self reproducing machine that knows how to eat its parent to make more room to expand, or a parent that eats its children, but it&#x27;s probably impossible to design a machine that could destroy itself (like &quot;delete this&quot; in C++). Deleting that last little part would be tricky!<p><a href="https:&#x2F;&#x2F;www.youtube.com&#x2F;watch?v=tJBeih6JZrs" rel="nofollow">https:&#x2F;&#x2F;www.youtube.com&#x2F;watch?v=tJBeih6JZrs</a><p>For one of the best and most beautiful books on cellular automata in general, check out Margolus and Toffoli&#x27;s &quot;Cellular Automata Machines: A New Environment for Modeling&quot; from MIT Press, which describes the CAM-6 hardware:<p><a href="https:&#x2F;&#x2F;www.amazon.com&#x2F;Cellular-Automata-Machines-Environment-Engineering&#x2F;dp&#x2F;026252631X" rel="nofollow">https:&#x2F;&#x2F;www.amazon.com&#x2F;Cellular-Automata-Machines-Environmen...</a><p><a href="https:&#x2F;&#x2F;donhopkins.com&#x2F;home&#x2F;Tommaso_Toffoli_Norman_Margolus_Cellular_Automata_Machines.pdf" rel="nofollow">https:&#x2F;&#x2F;donhopkins.com&#x2F;home&#x2F;Tommaso_Toffoli_Norman_Margolus_...</a><p>(by permission of the authors)<p>CAM-6 Forth source code:<p><a href="http:&#x2F;&#x2F;www.donhopkins.com&#x2F;home&#x2F;code&#x2F;tomt-cam-forth-scr.txt" rel="nofollow">http:&#x2F;&#x2F;www.donhopkins.com&#x2F;home&#x2F;code&#x2F;tomt-cam-forth-scr.txt</a><p><a href="http:&#x2F;&#x2F;www.donhopkins.com&#x2F;home&#x2F;code&#x2F;tomt-users-forth-scr.txt" rel="nofollow">http:&#x2F;&#x2F;www.donhopkins.com&#x2F;home&#x2F;code&#x2F;tomt-users-forth-scr.txt</a><p>Rudy Rucker has also written some wonderful stuff about the CAM-6:<p><a href="https:&#x2F;&#x2F;news.ycombinator.com&#x2F;item?id=14469113" rel="nofollow">https:&#x2F;&#x2F;news.ycombinator.com&#x2F;item?id=14469113</a><p>Rudy Rucker writes about his CAM-6 in the CelLab manual:<p><a href="http:&#x2F;&#x2F;www.fourmilab.ch&#x2F;cellab&#x2F;manual&#x2F;chap5.html" rel="nofollow">http:&#x2F;&#x2F;www.fourmilab.ch&#x2F;cellab&#x2F;manual&#x2F;chap5.html</a><p>Computer science is still so new that many of the people at the cutting edge have come from other fields. Though Toffoli holds degrees in physics and computer science, Bennett&#x27;s Ph.D. is in physical chemistry. And twenty-nine year old Margolus is still a graduate student in physics, his dissertation delayed by the work of inventing, with Toffoli, the CAM-6 Cellular Automaton Machine.<p>After watching the CAM in operation at Margolus&#x27;s office, I am sure the thing will be a hit. Just as the Moog synthesizer changed the sound of music, cellular automata will change the look of video.<p>I tell this to Toffoli and Margolus, and they look unconcerned. What they care most deeply about is science, about Edward Fredkin&#x27;s vision of explaining the world in terms of cellular automata and information mechanics. Margolus talks about computer hackers, and how a successful program is called “a good hack.” As the unbelievably bizarre cellular automata images flash by on his screen, Margolus leans back in his chair and smiles slyly. And then he tells me his conception of the world we live in.<p>“The universe is a good hack.”<p>[...]<p>Margolus and Toffoli&#x27;s CAM-6 board was finally coming into production around then, and I got the Department to order one. The company making the boards was Systems Concepts of San Francisco; I think they cost $1500. We put our order in, and I started phoning Systems Concepts up and asking them when I was going to get my board. By then I&#x27;d gotten a copy of Margolus and Toffoli&#x27;s book, Cellular Automata Machines, and I was itching to start playing with the board. And still it didn&#x27;t come. Finally I told System Concepts that SJSU was going to have to cancel the purchase order. The next week they sent the board. By now it was August, 1987.<p>The packaging of the board was kind of incredible. It came naked, all by itself, in a plastic bag in a small box of styrofoam peanuts. No cables, no software, no documentation. Just a three inch by twelve inch rectangle of plastic—actually two rectangles one on top of the other—completely covered with computer chips. There were two sockets at one end. I called Systems Concepts again, and they sent me a few pages of documentation. You were supposed to put a cable running your graphics card&#x27;s output into the CAM-6 board, and then plug your monitor cable into the CAM-6&#x27;s other socket. No, Systems Concepts didn&#x27;t have any cables, they were waiting for a special kind of cable from Asia. So Steve Ware, one of the SJSU Math&amp;CS Department techs, made me a cable. All I needed then was the software to drive the board, and as soon as I phoned Toffoli he sent me a copy.<p>Starting to write programs for the CAM-6 took a little bit of time because the language it uses is Forth. This is an offbeat computer language that uses reverse Polish notation. Once you get used to it, Forth is very clean and nice, but it makes you worry about things you shouldn&#x27;t really have to worry about. But, hey, if I needed to know Forth to see cellular automata, then by God I&#x27;d know Forth. I picked it up fast and spent the next four or five months hacking the CAM-6.<p>The big turning point came in October, when I was invited to Hackers 3.0, the 1987 edition of the great annual Hackers&#x27; conference held at a camp near Saratoga, CA. I got invited thanks to James Blinn, a graphics wizard who also happens to be a fan of my science fiction books. As a relative novice to computing, I felt a little diffident showing up at Hackers, but everyone there was really nice. It was like, “Come on in! The more the merrier! We&#x27;re having fun, yeeeeee-haw!”<p>I brought my AT along with the CAM-6 in it, and did demos all night long. People were blown away by the images, though not too many of them sounded like they were ready to a) cough up $1500, b) beg Systems Concepts for delivery, and c) learn Forth in order to use a CAM-6 themselves. A bunch of the hackers made me take the board out of my computer and let them look at it. Not knowing too much about hardware, I&#x27;d imagined all along that the CAM-6 had some special processors on it. But the hackers informed me that all it really had was a few latches and a lot of fast RAM memory chips.