Hello, Justin!
> I'd really like to get feedback from the Lua folks here on the structure/performance of the Lua generated code
I've worked a bit with this generator and what I can say:
in-place increment, decrement operations converts into (function() ... end)() this is good, but not always necessary.
Some AST preprocessing could be made to detect if return of this operations are required. What I mean:
var i = 2;
i++;
print(i);
now converts into something like:
local i = 2
(function()
local hx_tmp = i
i = i + 1
return hx_tmp
end)()
print(i)
Also, long chain of table field dereferencing generates on calls, and this is major performance issue IMO.