Tất cả phiên bản v0.1.765 Tháng 8 2026Hiển thị, JavaScript và JIT Feed

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

Type checks and string switches run at speed

This release speeds up how code makes DECISIONS. A huge amount of real JavaScript branches on a string or a type: `if (kind === 'primary')`, `if (typeof callback === 'function')`, a switch over string cases. Until now, the moment a hot loop compared a string or asked a value's type, the engine gave up speeding it up and ran the whole loop the slow way. Now both run fast: comparing a string to a constant, and checking a value's type with `typeof`, are compiled, so a tight dispatch loop runs up to about 1.8 times faster. The care here is all in getting equality exactly right, because string comparison in JavaScript is full of traps: '5' and '05' are different strings even though they look like the same number, and a string is never strictly equal to a number. The fast path compares strings by their actual text and never by number, and anything that would need real coercion quietly falls back to the careful path - so it is faster with zero change in behaviour, proven equal to the plain interpreter by a differential fuzzer that now throws every mix of string and type comparison at both paths. The engine gate holds at 6375 of 6375.

Những gì đã thay đổi

3 thay đổi
  1. JavaScript và JITFaster: comparing a string to a constant in a hot loop (`kind === 'primary'`, a string switch) is now compiled instead of running the whole loop interpreted - up to about 1.8x on a dispatch loop. Equality stays exact: strings compare by text not by number (so '5' and '05' stay different), and anything needing coercion falls back to the careful path.
  2. Hiển thịFaster: `typeof x === '...'` type-guards (`typeof cb === 'function'`, `typeof v === 'undefined'`) now compile too, feeding the same string-comparison fast path.
  3. Hiển thịBoth are proven equal to the plain interpreter by a differential fuzzer that now throws string and typeof comparisons - strict and loose, including the numeric-string traps - at both paths, and the whole engine gate holds at 6375 of 6375.
Mọi thứ kể từ v0.1.76 ở 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