lua-users home
lua-l archive

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


What is "reasonable efficiency" compared to native C/C++ code?

Thanks for this work,
Mike

On Tue, Apr 12, 2011 at 1:46 PM, Dimiter "malkia" Stanev <malkia@gmail.com> wrote:
Mike, this is awesome!

Thanks!


On 4/12/2011 10:25 AM, Mike Pall wrote:
I wrote:
You'll be able to do this with reasonable efficiency with the
planned metatables for cdata objects.

Support for ctype metamethods has just been committed to LuaJIT
git HEAD. Here are the docs:

http://luajit.org/ext_ffi_tutorial.html#metatype
http://luajit.org/ext_ffi_api.html#ffi_metatype

Have fun -- feedback welcome!

--Mike







--
Michael Gogins
Irreducible Productions
http://www.michael-gogins.com
Michael dot Gogins at gmail dot com