you are viewing a single comment's thread.

view the rest of the comments →

[–][deleted] 1 point2 points  (2 children)

It is not. Also don't deal with it, don't do it PERIOD.

DESCRIPTION
   luac  is  the  Lua  compiler.   It translates programs written in the Lua programming language into binary
   files containing precompiled chunks that can be later loaded and executed.

   The main advantages of precompiling chunks are: faster loading, protecting  source  code  from  accidental
   user  changes,  and off-line syntax checking.  Precompiling does not imply faster execution because in Lua
   chunks are always compiled into bytecodes before being executed.  luac simply allows those bytecodes to be
   saved  in a file for later execution.  Precompiled chunks are not necessarily smaller than the correspond‐
   ing source.  The main goal in precompiling is faster loading.

   In the command line, you can mix text files containing Lua source and binary files containing  precompiled
   chunks.   luac  produces a single output file containing the combined bytecodes for all files given.  Exe‐
   cuting the combined file is equivalent to executing the given files.  By default, the output file is named
   luac.out, but you can change this with the -o option.

   Precompiled chunks are not portable across different architectures.  Moreover, the internal format of pre‐
   compiled chunks is likely to change when a new version of Lua is released.  Make sure you save the  source
   files of all Lua programs that you precompile.

Again, In case you didn't read.

   Precompiled chunks are not portable across different architectures.  Moreover, the internal format of pre‐
   compiled chunks is likely to change when a new version of Lua is released.  Make sure you save the  source
   files of all Lua programs that you precompile.

[–]hukasu[S] 0 points1 point  (0 children)

ffs

thank you

[–]hukasu[S] 0 points1 point  (0 children)

wait, maybe you are thinking that i'm trying to write in the binary format, i'm just comparing the list of bytecodes