Y
Hacker News
new
|
ask
|
show
|
jobs
by
fanf2
2071 days ago
Lua exposes much less of its internals than Python. For example the comment you replied to mentioned stack frames which are not exposed in Lua.
1 comments
anonymoushn
2071 days ago
Those are exposed via the built-in debug library, including in luajit.
link
fanf2
2071 days ago
Oh whoops yes :-)
Note that you can only look up variables by their bytecode register number, not by name.
link
jashmatthews
2071 days ago
IIRC that uses the Lua C API which LuaJIT supports by fully restoring the interpreter state?
link