lua-users home
lua-l archive

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


On Tue, Jan 14, 2014 at 3:43 AM, William Ahern
<william@25thandclement.com> wrote:
> But it doesn't implement all of Lua 5.2. For example, LuaJIT with 5.2
> compatability doesn't have ephemeron tables or _ENV.
>
> Ephemeron tables are a pretty huge feature for things like caches or
> self-referential anchors. Obviously you can implement those things without
> ephemeron tables, but they require explicit memory management techniques.
> Although I think the time complexity for ephemerons is pretty horrendous, so
> you have to be careful.
>
> Also, LuaJIT doesn't allow things like creating your own FILE* pointer
> object from C, which sucks when you want to use POSIX APIs like fmemopen to
> wrap a byte buffer in a FILE object. Or interfaces like funopen on *BSD or
> fopencookie on Linux, which allow you to craft your own FILE object
> completely from scratch.

Interesting, okay, good to know.