dibyendumajumdar / ravi

Ravi is a dialect of Lua, featuring limited optional static typing, JIT and AOT compilers
http://ravilang.github.io/
Other
1.16k stars 62 forks source link

Import the string library metamethods from Lua 5.4 #158

Closed dibyendumajumdar closed 5 years ago

dibyendumajumdar commented 5 years ago

By pushing the handling of numeric ops when an operand is a string to metamethods, in the common case the overhead in the VM will decrease when performing numeric ops.

dibyendumajumdar commented 5 years ago

Fixed