lua-users home
lua-l archive

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


El 21/01/14 10:24, lua-l-request@lists.lua.org escribió:
Date: Mon, 20 Jan 2014 10:56:54 -0200
From: Elias Barrionovo <elias.tandel@gmail.com>
Subject: Re: Design questions for a small s-expression library
To: Lua mailing list <lua-l@lists.lua.org>

On Jan 18, 2014 12:05 PM, "Antonio Vieiro" <antonio@antonioshome.net> wrote:
3. LuaJIT will be as performant in approach B (invoking C functions for
"car", "cdr", etc.) as in approach A (using Lua native code).

Not really, since the "classic" C API aborts LuaJIT traces, while plain Lua
is properly JITted (except for a few builtins, such as next()).

Yep, I imagine I would have to use the LuaJIT FFI library.

Anyway the "in C" approach proved to be a pain in the neck from the memory management point of view. Plain Lua is not doing bad.

Thanks,
Antonio