remedy-lua 0.1.2

A Lua 5.4 superset in safe Rust for running untrusted scripts: exact fuel, memory and depth limits, an incremental collector, an optional typed dialect and a capability-based host API.
Documentation
1
2
3
4
5
6
7
8
9
-- String library basics through method syntax: sub, upper, lower, byte, char, plain find, rep, reverse.
local n = 0
local base = "The quick brown fox jumps over the lazy dog"
for i = 1, 200000 do
  local s = base:sub(i % 10 + 1, i % 10 + 20)
  n = n + #s:upper() + #s:lower() + s:byte(1) + (s:find("o", 1, true) or 0)
  n = n + #string.char(65 + i % 26, 66) + #s:rep(2) + #s:reverse()
end
return tostring(n)