Repository navigation
v1.0.0-rc.1
Pre-releaseThe second release candidate for 1.0.0. It builds on rc.0 with new os and utf8 standard libraries, richer debug/error introspection, a substantial string.format and table performance pass, and a batch of correctness fixes around upvalue lifetimes and Lua 5.3 semantics. The public API is unchanged from rc.0.
⚡ Performance highlights
A focused pass on the two hottest stdlib areas and the VM dispatcher. Throughput vs. rc.0 (pre-compiled chunk, full Benchee runs on one machine; Luerl and PUC-Lua used as drift controls, ±3%):
| Workload | Change | Notes |
|---|---|---|
string.format — literal-heavy |
+143% | now ~2.7× faster than Luerl |
string.format — width-flagged |
+83% | |
String build via table.concat |
+66% | now faster than Luerl |
| OOP / method dispatch | +41% | now faster than Luerl |
table.sort (n=1000) |
+35% | |
string.format — many specifiers |
+26% |
Driven by an iolist-based string.format rewrite (#299, #317, #319, #316), plain-table sort/concat fast paths (#299, #318), expanded VM dispatcher coverage (#275, #277), and batched table construction (#321).
✨ Added
osstandard library, sandboxed (#289), andutf8library (#258).debugupvalue introspection —getupvalue/setupvalueand name tracking (#285);debug.getinfoname/namewhat from the call site (#290).- Position captures
()in patterns acrossfind/match/gmatch/gsub(#288). - Configurable maximum call depth (#283) and allocation-bomb DoS hardening (#305).
- Structured error data (#246); operand hints in arithmetic/bitwise type errors (#270).
🔧 Changed
- Rendered errors lead with source location; ANSI gated on TTY (#304).
- Broader Lua 5.3 official suite coverage; remaining skips narrowed to precise sub-ranges (#251, #282, #287, #294, #295).
- README rewrite, runnable
examples/, and@specs across the public API (#298, #300, #301).
🐛 Fixed
- Open upvalues now close at
do/if/while/for/repeatblock exit (#286, #303); caller'sopen_upvaluesrestored after nested execution (#245);requireno longer leaks upvalue cells into the caller (#244). - Integer divide/modulo by zero matches PUC-Lua (#292);
table.unpackrejects oversized ranges (#293);gsubvalidates its replacement (#291); parenthesised call/vararg adjusts to one value (#278);obj:method(...)expands multi-values (#248);require()converts dots to path separators (#242).
⚠️ Known issues
Deep recursion is ~25% slower than rc.0. The configurable call-depth limit (#283) adds per-call bookkeeping that recursion-dense workloads (e.g. naive fib(30)) pay in full; workloads doing real work per call are unaffected or faster. This is a deliberate safety/speed tradeoff for the RC and will be addressed before 1.0.0 final.
Full changelog: v1.0.0-rc.0...v1.0.0-rc.1