Re: Bytecode differences between v1 and v2?

  • From: Petri Häkkinen <petrih3@xxxxxxxxx>
  • To: luajit <luajit@xxxxxxxxxxxxx>
  • Date: Sat, 2 Jan 2021 01:01:19 +0200


On 2 Jan 2021, at 0.48, Pierre Fichepoil <contact@xxxxxxxxxxxxxxx> wrote:

On a serious note, you're working with LuaJIT, you can reimplement LuaJIT V1 
bytecode in LuaJIT V2 and it will still be fast because of the JIT compiler.

Here is a working VM by meepen : 
https://gist.github.com/meepen/807dd81a572ffb0f28a8c44c04922fdd

 "On a serious note" :-D

Now that's an option I haven't considered yet. This is also great material for 
understanding LJ opcodes. Thanks for the link! 

Petri


Other related posts: