lua-users home
lua-l archive

[Date Prev][Date Next][Thread Prev][Thread Next] [Date Index] [Thread Index]


>From lua-l@tecgraf.puc-rio.br Thu Aug 19 17:06:42 1999
>From: Steve Dekorte <steve@dekorte.com>

>Luiz Henrique de Figueiredo <lhf@tecgraf.puc-rio.br> wrote:
>> Here is a simple implementation of arithmetic expressions in Lua that should
>> be adequate for evolutionary programming.
>>..
>> E{add,1,{mul,2,3}}
>
>I like this example, but isn't this going to be alot slower than doing it
>as Dolfi suggested in Scheme?

I'm not sure it will be slower. You'll have to test it.

>I suppose that you could also write something
>to turn these structures into a string and call dostring() but then you've
>got the whole code structure -> text -> compiled code that scheme avoids.

I don't get it. Why convert the tables into strings??
--lhf