A No-Frills Introduction to Lua 5.1 VM Instructions (2006) [pdf] (luaforge.net) 45 points by bshanks 11y ago ↗ HN
[–] pyroMax 11y ago ↗ Let me guess, you were playing Hack 'n' Slash, and the control flow statements didn't make sense.
[–] bsummer4 11y ago ↗ This is pretty cool. Is there something like this for the LuaJIT VM? [–] haberman 11y ago ↗ See: http://wiki.luajit.org/Bytecode-2.0Also running LuaJIT with -jdump will dump bytecode and compiler IR I believe.
[–] haberman 11y ago ↗ See: http://wiki.luajit.org/Bytecode-2.0Also running LuaJIT with -jdump will dump bytecode and compiler IR I believe.
[–] Skinney 11y ago ↗ I read this guide ALOT when trying to understand how a VM worked, this guide was invaluable. It gave me enough knowledge to write my own VM. Recommended!
[–] rurban 11y ago ↗ This is also the best internal opcode description for the LUA derived VM's: potion[1], sol[2] and tinyrb[3].1: http://perl11.org/potion/2: https://github.com/rsms/sol3: http://code.macournoyer.com/tinyrb/
5 comments
[ 2.7 ms ] story [ 20.5 ms ] threadAlso running LuaJIT with -jdump will dump bytecode and compiler IR I believe.
1: http://perl11.org/potion/
2: https://github.com/rsms/sol
3: http://code.macournoyer.com/tinyrb/