Skip to content

v1.0.0-rc.1

Pre-release
Pre-release

Choose a tag to compare

@davydog187 davydog187 released this 02 Jun 22:22
· 71 commits to main since this release
cc785d9

The 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

  • os standard library, sandboxed (#289), and utf8 library (#258).
  • debug upvalue introspection — getupvalue/setupvalue and name tracking (#285); debug.getinfo name/namewhat from the call site (#290).
  • Position captures () in patterns across find/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/repeat block exit (#286, #303); caller's open_upvalues restored after nested execution (#245); require no longer leaks upvalue cells into the caller (#244).
  • Integer divide/modulo by zero matches PUC-Lua (#292); table.unpack rejects oversized ranges (#293); gsub validates 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