in reply to Re: Simulated Evolution
in thread Simulated Evolution

Koza uses Lisp though right?
And breeds the parse trees directly to produce other programs.

I don't think you can do that with Perl, perhaps with some B::* module

Of course you can play with program text and eval for the same effect.

Replies are listed 'Best First'.
Re: Re: Re: Simulated Evolution
by Chmrr (Vicar) on Dec 16, 2001 at 20:52 UTC

    That is correct -- Koza does breed actual Lisp S-expressions. I would submit that what he was doing with Lisp is equivilent to playing with "program text and eval" in any other language, such as Perl. Which, incidentally, is what I did. So I can tell you with great certainty that it does indeed work. :)

    I did look into using the B:: series of modules, but from what I could see, they were lower-level than would be useful -- dealing with opcodes, not expressions. Of course, if anyone knows more about the B:: modules and can educate me, I'm all ears.

    perl -pe '"I lo*`+$^X$\"$]!$/"=~m%(.*)%s;$_=$1;y^`+*^e v^#$&V"+@( NO CARRIER'