SPTH 'Taking the redpill: Artificial Evolution in native x86 systems' (VX heavens)

1.1.1. CoreWorld

  <p>
    Arti?cial evolution for self-replicating computer codes has been introduced for the ?rst time in 1990, when Steen Rasmussen created <em>CoreWorld</em>.[1] CoreWorld is a virtual machine which can be controlled by a language called <em>RedCode</em>. This assembler-like language has a pool of ten di?erent instructions that take two addresses as arguments. Rasmussen’s idea was to introduce a random ?aw of the MOV command, resulting of random mutations of the self-replicating codes within the environment. The big disadvantage of RedCode was, that nearly all ?aws led to a lethal mutation, hence evolution did not occure as wished.
  </p>
  
  <h4>
    <a name="c112"></a>1.1.2. Tierra
  </h4>
  
  <p>
    In 1992, Tom Ray found out that the problem with RedCode was due to <em>argumented instruction set</em>: Independent mutations in the instruction and its arguments are unlikely to lead to a meaningful combination.[2] Instead of direct connection between the instruction and its argument, Ray developed a pattern-based addressing mechanism: He introduced two NOP-instructions (NOP0 and NOP1). These instructions do not operate themselve, but can be used as marker within the code. A pattern-matching algorithmus would ?nd the ?rst appearence of a complementary marker string given (after the search-command), and returns its addresse.
  </p>
  
  <div class="CodeRay">
    <div class="code">
      <div class="CodeRay">
        <div class="code">
          <pre>PUSH        AX        ; push ax JMP NOP0 NOP1 NOP0                ; jmp marker101 INC        A        ; inc ax NOP1 NOP0 NOP1                ; marker101: POP        CX        ; pop cx  </pre>
        </div>
      </div></p>
    </div></p>
  </div>
  
  <p>
    There are 32 instructions available in the virtual Tierra world, roughly based on assembler (JMP, PUSH AX, INC B and so on). With these inventions, Ray was able to gain great results for arti?cial evolution (like parasitism, multi-cellularity[3][4], ...).
  </p>
  
  <h4>
    <a name="c113"></a>1.1.3. Avida
  </h4>
  
  <p>
    In 1994, Christoph Adami has developed another arti?cial evolution simulation, called <em>Avida</em>. Beside of some di?erent structures of the simulation, an important change has been made in the arti?cial chemistry: Instead of hardcoded arguments within the instructions (as in Tierra for example PUSH AX), instructions and arguments are completely separated. The arguments are de?ned by NOPs (in avida there are three NOPs: nop-A, nop-B, nop-C) following the operation (for example, a nop-A following a PUSH pushes the AX-register to the stack). There are 24 instructions available in avida, again roughtly based on assembler (call, return, add, sub, allocate and so on).
  </p>
  
  <div class="CodeRay">
    <div class="code">
      <div class="CodeRay">
        <div class="code">
          <pre>push nop-A                ; push ax jump-f nop-A nop-B nop-B                ; jmp markerBCC inc nop-A                ; inc ax nop-B nop-C nop-C                ; markerBCC: pop nop-B                ; pop bx  </pre>
        </div>
      </div></p>
    </div></p>
  </div>
  
  <p>
    With that improvements of the virtual simulation, the researchers using avida found out amazing results, among other things about the origin of complex features in organism [5].
  </p>
</blockquote>

<div class="posterous_quote_citation">
  via <a href="http://vx.netlux.org/lib/vsp26.html">vx.netlux.org</a>
</div>

<p>
  Very interesting paper on creating a evolutionary system for native x86 systems. This is an area that has fascinated me since I first studied genetic algorithms. However I didn't realize that this was being done for native x86 instruction sets as well, I always assumed that the environment was a virtual one.
</p>

Posted via email from Sijin Joseph

Sijin Joseph
Sijin Joseph

Hands-on technology leader with 15+ yrs of experience in launching products, scaling up teams and setting up software infrastructure.