Tất cả phiên bản v0.1.1077 Tháng 8 2026JavaScript và JIT Feed

Ghi chú phát hành được viết bằng tiếng Anh.

Recursive functions with locals and captured constants, in native code

The engine already compiled simple recursive number-crunchers (like a bare Fibonacci) all the way to machine code. It now compiles the recursive functions people actually write: ones that declare their own local variables and ones that capture a constant from an outer scope. The ordinary `function fib(n){ if(n<2){ return n; } var a = fib(n-1); var b = fib(n-2); return a+b; }` now runs as native code - measured about 18.6x faster than the previous tier (19ms vs 356ms on the same work) - and so does a recursion that closes over a constant, `const K = 3; function pow(n){ return n<1 ? 1 : K*pow(n-1); }`. It stays correct by construction: the compiler only takes a body it can prove is pure and numeric, a local is only read once it definitely holds a number on every path that reaches it, and a captured value is checked to be a number once before any native code runs - anything else quietly falls back to the interpreter with an identical result. Proven bit-for-bit against the interpreter across two differential fuzzers (nine thousand generated programs) and a three-tier equivalence check. JavaScript performance (JIT) moves 42 to 44; overall holds at 51.

Những gì đã thay đổi

3 thay đổi
  1. JavaScript và JITThe native recursion compiler now accepts bodies with their own LOCAL variables, including the everyday `var a = f(n-1); var b = f(n-2); return a+b` shape with an early base-case return. Each local becomes a machine register; a definite-assignment analysis proves a local is only ever read once it holds a number on every path, so a hoisted-but-not-yet-assigned variable is refused rather than misread. Measured about 18.6x faster than the interpreter tier on fib-with-locals.
  2. JavaScript và JITRecursive functions that CAPTURE a numeric constant from an outer scope now compile too - `const K=3; function pow(n){ return n<1 ? 1 : K*pow(n-1); }`. The captured value is checked to be a number once, before any native code runs, and passed through the recursion; a captured non-number (a string, an object) simply falls back to the interpreter with the same answer.
  3. JavaScript và JITCorrect by construction and proven: the compiler only takes a body it can show is pure and numeric with no heap effect, so a depth or fuel limit can abort and redo the whole call one tier down with a bit-identical result. Two differential fuzzers (about nine thousand generated recursive programs) and a three-tier equivalence check compare the native output to the interpreter bit-for-bit, NaN and overflow included. A separately measured non-recursive-helper case came out flat and was deliberately left on the existing tier.
Mọi thứ kể từ v0.1.107 ở một nơi

Phiên bản

v0.1.0 - 0.1.9 · 10 Tháng 7 2026418v0.1.427 · 25 Tháng 11 2026

Tháng 112026 · 1 phiên bản

Tháng 102026 · 7 phiên bản

Tháng 92026 · 3 phiên bản

Tháng 82026 · 18 phiên bản

14614 Tháng 8WebAssembly modules can call JavaScriptv0.1.146 · Hiển thị 14414 Tháng 8Exact tiling: percentage columns never leave a seamv0.1.144 · JavaScript và JIT 13514 Tháng 8DevTools automation: the methods a real driver reaches forv0.1.135 · API web và DOM 12413 Tháng 8Puppeteer queries elements end to end - the first floor moves the overallv0.1.124 · Hiển thị 12213 Tháng 8Time-travel scrubbing: jump to any pause on the timelinev0.1.122 · DevTools 12113 Tháng 8Time-travel debugging: step BACK - a debugger the reference browser does not havev0.1.121 · Thẻ và giao diện 12013 Tháng 8DevTools: a WebSocket transport, so external tools can attachv0.1.120 · DevTools 11913 Tháng 8DevTools: a Sources panel with a clickable line gutterv0.1.119 · Thẻ và giao diện 11811 Tháng 8DevTools debugger: step over, into and outv0.1.118 · JavaScript và JIT 1177 Tháng 8DevTools breakpoints snap to the nearest real linev0.1.117 · DevTools 1167 Tháng 8DevTools debugger: source-line breakpointsv0.1.116 · DevTools 1157 Tháng 8DevTools debugger: evaluate expressions at the breakpointv0.1.115 · DevTools 1147 Tháng 8DevTools debugger: pause on exceptionsv0.1.114 · DevTools 1137 Tháng 8Visual DevTools: a live Console REPL and a Debugger panelv0.1.113 · Thẻ và giao diện 1127 Tháng 8DevTools Debugger: real `debugger;` breakpoints at the VMv0.1.112 · DevTools 1006 Tháng 8The browser can be driven, not just watched: a DevTools Protocol that mutates the real pagev0.1.100 · DevTools 986 Tháng 8The engine speaks the DevTools Protocolv0.1.98 · DevTools 704 Tháng 8One press, and you are on the new versionv0.1.70 · Thẻ và giao diện

Tháng 72026 · 3 phiên bản