Beefy Boxes and Bandwidth Generously Provided by pair Networks
Problems? Is your data what you think it is?
 
PerlMonks  

Re: Re: Simulated Evolution

by bsb (Priest)
on Dec 16, 2001 at 20:20 UTC ( [id://132355]=note: print w/replies, xml ) Need Help??


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'

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://132355]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others surveying the Monastery: (2)
As of 2024-04-20 06:06 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found