[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: Re: evolutionary programming & Lua
- From: Adolf Mathias <dolfi@...>
- Date: Wed, 18 Aug 1999 10:39:28 +0200
Hi,
I've done some evolutionary programming in Scheme (a Lisp dialect), but
don't think it's that easy in Lua, because you don't have a simple
program representation other than text. In Scheme, you can implement the
basic operations, mutation and cross-over, by means of simple list
operations, whereas cross-over on a text-based representation of
programs involves syntactical analysis. A syntax-tree representation of
programs
in Lua would be the solution, but this is essentially the same as with
most other programming languages, except that the interpretation of a
generated piece of code with Lua's dostring is particulary simple.
Greetings
--
Adolf Mathias EMail: dolfi at zkm dot de Web: www.zkm.de
|||| / |< ||| ZKM Institute for Visual Media - Institut für Bildmedien
P.B. 6919 D-76049 Karlsruhe, Germany; fon +49 721-8100-1544, fax -1509