lua-users home
lua-l archive

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




On 08/10/15 04:20 PM, Tim Perkins wrote:
On Tue, Oct 6, 2015 at 10:15 AM Soni L. <fakedme@gmail.com <mailto:fakedme@gmail.com>> wrote:

    As of Lua 5.3 you can add a #! line to a precompiled bytecode file and
    it'll parse and run.

    Seeing as how insane that is, can we get to embed bytecode in source
    code? As in:


The byte code is an implementation detail, and possibly not compatible between versions. So no, you wouldn't want to write it as part of the source code anyway. It would be unmaintainable.

What's your use-case? Code obfuscation?
Optimization.

Technically I'd have a preprocessor read source, convert the parts it cares about to bytecode, inject them into the original source (replacing the... thing) and load().

--
Disclaimer: these emails may be made public at any given time, with or without reason. If you don't agree with this, DO NOT REPLY.