lua-users home
lua-l archive

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


2009/6/26 Henk Boom <henk@henk.ca>:
> 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.

I should have mentioned, it only supports numeric types (integer and
floating point), since it was intended for passing numeric data to
OpenGL.

    Henk