tech-kern archive

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

Re: [patch] put Lua standard libraries into the kernel



Hi Marc,

On Tue, Nov 26, 2013 at 6:18 AM, Marc Balmer <marc%msys.ch@localhost> wrote:
> Am 26.11.13 02:50, schrieb Lourival Vieira Neto:
>> Hi Folks,
>>
>> Here is a patch that puts some Lua standard libraries into the kernel:
>>
>> - Auxiliary library (C API);
>> - Base library;
>> - String library;
>> - Table library.
>
> In the kernel, Lua states are created empty _on purpose_.  So the Lua
> standard library should be a module (or modules) in kernel space.

Why?

Note, the Lua states still empty, but, with this patch, you can call
luaL_openlibs().

> Whether all standard libraries should be one module, or rather multiple
> kernel modules, is to be discussed.

Let's discuss then =).

> But please don't load the automatically.

Do you mean 'don't link Lua stdlib with Lua'? What is the reason?

Regards,
-- 
Lourival Vieira Neto


Home | Main Index | Thread Index | Old Index