[Date Prev][Date Next][Thread Prev][Thread Next]
- Subject: Re: [Suggestion] Embed bytecode in source code
- From: "Soni L." <fakedme@...>
- Date: Thu, 8 Oct 2015 16:45:59 -0300
On 08/10/15 04:20 PM, Tim Perkins wrote:
On Tue, Oct 6, 2015 at 10:15 AM Soni L. <firstname.lastname@example.org
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?
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.