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
10
11
12
13
-- string.byte / string.char loops (encoders, checksums).
local src = string.rep("The quick brown fox jumps over the lazy dog. ", 50)
local n = 0
for r = 1, 200 do
  local out = {}
  for i = 1, #src do
    local b = string.byte(src, i)
    n = n + b
    out[i] = string.char((b + 1) % 256)
  end
  n = n + #table.concat(out)
end
return n