title: LuaJIT vs luac for custom Lua bytecode interpreter
body: <p>Related: <a href="https://stackoverflow.com/questions/8623052/differences-between-standard-lua-bytecode-and-luajit-bytecode">Differences between standard Lua bytecode and LuaJIT bytecode</a></p>
  
  <p>I'm writing a Lua bytecode interpreter, and I'm trying to decide between LuaJIT and luac to generate the initial bytecode. Since I'm writing an interpreter, I'm not going to get any of the JIT performance, so it all comes down to the quality of the compiler and design of the generated bytecode.</p>
  
  <p>Is either compiler significantly better?</p>
  
  <p>I'm writing this in Dart (also interpreted), so any free optimization from the compiler is appreciated.</p>