[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: Re: Lua next version
- From: Henk Boom <henk@...>
- Date: Fri, 26 Jun 2009 12:40:30 -0400
2009/6/26 steve donovan <steve.j.donovan@gmail.com>:
> On Fri, Jun 26, 2009 at 12:03 AM, Cosmin
> Apreutesei<cosmin.apreutesei@gmail.com> wrote:
>> counts), or, for a truly blastingly efficient library (efficient to
>> the standards that lua users have been spoiled to expect) would have
>> to be implemented in the VM... something which I wouldn't mind at all
>> having.
>
> Sounds like the ideal job for an extension - implement an array type
> in C. Can make it as efficient as is possible, especially if it
> supports block operations.
>
> I would do this, but my stack is overflowing ;)
There's a memarray module packed in with luaglut, which gives a very
simple C-array interface (zero-based). It's very basic, and
undocumented, but still useful.
Henk