lua-users home
lua-l archive

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


Did you think about including compression machine in your code?

This is also quite small available, if you are running in smaller
embedded systems.

And as Lua source files are ASCII, the compression will reduce
STRONGLY (you should expect to 10-20% of original size usually...).
This is much more efficient then Lua bytecode as I see it, if you want
to safe programming time.

Am So., 28. Aug. 2022 um 10:01 Uhr schrieb Jairo A. del Rio
<jairoadelrio6@gmail.com>:
>
>
>
> El dom, 28 ago 2022 a la(s) 01:55, bil til (biltil52@gmail.com) escribió:
>>
>> Can you give some motivation, why you need this / what is the purpose
>> of your question?
>
>
> I'm asking for an implementation of portable bytecode in Lua, if any.
>
>>
>> Do you have any Lua application, where it would be bad for you to
>> program the ASCII Lua code?
>
>
> No, not really, but bytecode makes module loading a small bit faster, so I'd prefer to generate it in a platform (e. g. Ubuntu) and then use it in another without recompiling.
>
>> Or do you want to safe programming time?
>
>
> Yes, exactly. I know about some tricks such as stripping spaces, but my question concerns bytecode specifically. Any suggestions?
>
> Regards,
>
> Jairo