[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: Re: [ANN] luajit-msgpack - with questions to Mike
- From: Alexander Nasonov <alnsn@...>
- Date: Wed, 23 Nov 2011 21:47:11 +0000
Alexander Nasonov wrote:
> Pierre Chapuis wrote:
> > I know, it's not efficient. Another way to do it would be to have the
> > user explicitly mark lists as lists, for instance with a metatable,
> > and otherwise encode everything as hash tables.
>
> Have you seen how it's done in mplua?
> https://github.com/nobu-k/mplua/blob/master/src/lua_objects.hpp#L145
I meant to reply privately to Pierre but I don't mind sharing this :)
Basically, that code relies on implementation details of Lua 5.1.
I don't know whether an implementation it's different in LuaJIT but
it's allowed to be different by the specs.
Alex