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
-- The `..` operator: a growing accumulator, short multi-part keys, numbers coerced.
local s = ""
for _ = 1, 20000 do s = s .. "x" end
local n = 0
for i = 1, 300000 do
  local a = "k" .. i
  local b = a .. ":" .. i .. ":" .. "v"
  n = n + #b
end
local line = ""
for i = 1, 3000 do line = line .. i .. "," end
return string.format("%d %d %d", #s, n, #line)