[Date Prev][Date Next][Thread Prev][Thread Next]
- Subject: Re: evolutionary programming & Lua
- From: Adolf Mathias <dolfi@...>
- Date: Thu, 19 Aug 1999 08:19:38 +0200
Luiz Henrique de Figueiredo wrote:
> >From email@example.com Wed Aug 18 03:38:33 1999
> >From: Adolf Mathias <firstname.lastname@example.org>
> >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
> You can do the same in Lua using tables to implement lists.
> You don't have to use text at all.
Certainly you can use tables to represent expressions, but you can't
them like in Scheme and instead have to cast them into code again,
which, according to my knowledge of Lua, involves either the path back
over text, or a new evaluator of these 'table expressions'.
But please tell me if I'm wrong. I'd love to learn more about Lua...
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