3 ms·
Was it not a stack machine already? The embedding API explicitly exposes a stack, so I assumed that it was implemented that way.
by moonchild 6y ago
Was it not a stack machine already?
The embedding API explicitly exposes a stack, so I assumed that it was implemented that way.
- anonymoushn 6y agoit had a stack, but that stack was on the heap. In lua 5.4 under normal circumstances, 20 frames of Lua call stack corresponds to 20ish frames of C call stack. In lua 5.3 the number of C stack frames was some smaller number unrelated to the depth of the Lua call stack.
- moonchild 6y agoAh - so it uses the C native stack.