3 ms·
Funny that luac is called: https://github.com/Azure/golua/blob/24b0595f74412f2f249fbdb38bb5efa2c349a07e/lua/state.go#L332 https://github.com/Azure/golua/blob/2
by swah 8y ago
Funny that luac is called:
https://github.com/Azure/golua/blob/24b0595f74412f2f249fbdb38bb5efa2c349a07e/lua/state.go#L332 https://github.com/Azure/golua/blob/24b0595f74412f2f249fbdb3...
Isn't this a pure Go implementation?
- glibgil 8y agoluac is the Lua compiler, not a reflection of what language the engine is written in. I'm not saying it doesn't call a compiler written in C, but executing a binary named `luac` doesn't mean that it does https://www.lua.org/manual/5.3/luac.html https://www.lua.org/manual/5.3/luac.html
- sdfpoi8g98sd 8y agoYou should read the source you are linking to instead of being needlessly snarky. The function you call emits IR, and it's doc block says: // EmitIR compiles the Lua script similarly to Compile but instead // uses the long listing options to capture the compiled IR dump. // EmitIR returns the Lua bytecode encoded as a string or any error.