[Buildroot] [PATCH v5] luvi: new package

Thomas Petazzoni thomas.petazzoni at free-electrons.com
Sat Dec 26 09:52:44 UTC 2015


Jörg,

On Fri, 25 Dec 2015 22:51:08 +0100, Jörg Krause wrote:

> > Thanks, patch applied. I must say I don't really understand what this
> > luvi thing is doing, but it built fine here, and the packaging seems
> > reasonable.
> 
> luvi is a LuaJIT runtime with additional bindings, e.g. libuv. You can
> compare it with the V8 engine (the JavaScript engine used by Node.js),
> the main difference is, that luvi already contains the libuv bindings,
> whereas Node.js adds the libuv bindings to V8.
> 
> All together, it is a Node.js like system for Lua.

Thanks a lot for the explanation, makes sense!

> I want to integrate some luvi applications like lit and luvit into
> Buildroot. lit is similar to npm and luvit adds a Node.js like API to
> luvi.
> 
> This will be done in follow-up patches...

Cool!

> > as this ?.lua doesn't really look like a path, but since it builds
> > fine, maybe I'm missing something.
> 
> Lua(JIT) uses this string as a path to search for files. In this case
> we have to tell LuaJIT where to search for its bundled modules.

Ok. So this "?" is interpreted by LuaJIT in a "special" way.

Thanks,

Thomas
-- 
Thomas Petazzoni, CTO, Free Electrons
Embedded Linux, Kernel and Android engineering
http://free-electrons.com


More information about the buildroot mailing list