3 ms·
This is probably compiling to bytecode (like luac) and bundling the result with the lua interpreter as an executable. Doing the latter by hand involves writing
by JonChesterfield 2y ago
This is probably compiling to bytecode (like luac) and bundling the result with the lua interpreter as an executable. Doing the latter by hand involves writing a very small C program that passes a static char array to the lua entry point - I think this is nicely packaging that process.
It might be compiling to native code instead but the readme doesn't look like it.
- incanus77 2y agoJanet puts together “executables” like this as well, which is a pretty slick setup.
- synergy20 2y agoJanet has nothing to do with Lua though, am I missing something
- ungamedplayer 2y agoI think mate is just saying that Janet works the same way.
- incanus77 2y agoRight, sorry — to be clear, I brought it up because it's a pretty nice way to make executables easily from an embeddable scripting language and the approach is fairly unique among interpreted languages.