A power tool to peek into LuaJIT internals, primarily for educational purposes and for talks on stage
- execute arbitrary Lua code and see what happens
- several snippets showcasing interesting quirks of LuaJIT are readily available
- upload and study
jit.dump
output [TBD] - explore bytecode behind the source code in several modes
- Lua — bytecodes are hidden, revealed on click on a source line
- Bytecode — only bytecode is displayed
- Mixed — bytecodes interleaved with Lua source code
- browse generated JIT-compiled traces
- visually examine trace graph
- highligh source code lines and/or bytecodes participating in a trace
- examine trace properties, including general info, IR and the assembly
- Presentation Mode — hit P to reduce visual clutter; suitable for presenting after a moderate zoom
Install luajit
and graphviz
first.
In the root of the source tree, invoke npm install
to install JavaScript dependencies and prepare code for running.
To start the server, do npm start
.