Semua versi v0.1.1037 Agu 2026Rendering, JavaScript dan JIT Feed

Catatan rilis ditulis dalam bahasa Inggris.

Generators that actually suspend: function*/yield on the resumable VM

Generators were faking it. Calling a `function*` used to run the whole body to completion right then and there, collecting every `yield` into a hidden array and handing back an iterator over that finished list. That is fine for the simplest finite case and wrong for everything else: an infinite generator hung the tab, `const x = yield` could never receive the value passed to `.next(v)`, and all of a generator's side effects fired up front in the wrong order. They are real now, built on the SAME resumable interpreter that fixed async/await: calling a `function*` returns a generator object and runs NOTHING; each `.next()` runs the body to the next `yield`, which suspends it - reifying its stack, environment and try/finally state onto the heap - and resumes it synchronously on the next call. So an infinite `while(true) yield i++` is fine as long as you pull finitely many values, `.next(v)` delivers `v` to the waiting `yield`, `.return()` runs a spanning `finally`, `.throw()` is catchable inside, and `yield*` delegates to any iterable. for-of, spread, destructuring, `Array.from`, `new Map(gen)` and a class whose `[Symbol.iterator]` is a `*method` all drive them through the real iterator protocol. JavaScript language moves 78 to 80; overall holds at 50, because a language feature - however flagship - is not one of the named infrastructure floors (GPU, video, HTTP/2, multi-process) that gate the climb past halfway. 24 behaviour tests, gate 6375/6375.

Apa yang berubah

3 perubahan
  1. JavaScript dan JITfunction*/yield are real lazy generators now, not the old eager stub. Calling a generator runs none of the body; each .next() runs to the next yield and suspends there, reifying the frame (operand stack, environment, and its try/finally/staged-completion state) onto the heap exactly as async/await does, then resumes synchronously on the next call. Proven by laziness, infinity and two-way tests the eager model could never pass: side effects interleave with consumer code, `function* nats(){ while(true) yield i++ }` yields its first values without hanging, and `.next(v)` is the value of the resumed yield.
  2. RenderingTwo-way communication and early termination: `const x = yield e` evaluates to whatever `.next(v)` passes, `.throw(e)` throws at the yield point so a try/catch spanning it can handle it, and `.return(v)` performs a return there, running any finally that spans the yield. A generator that creates and drives another generator mid-body keeps its own suspended slot with no aliasing.
  3. JavaScript dan JITThe iterator protocol is wired through the VM: for-of, spread `[...g()]`, array destructuring, `Array.from`, `Object.groupBy`, and `new Map`/`new Set`/`new WeakMap`/`new WeakSet` all drive a generator or user iterator by calling its `.next()`, and `yield* iterable` delegates to arrays, strings and other generators (pulled lazily) and evaluates to the inner iterators return value. A class whose `[Symbol.iterator]` is a `*method` is now iterable - the everyday way to make an object iterable. Research note: docs/generators-resumable-vm.md.
Semua sejak v0.1.103 di satu tempat

Versi

v0.1.0 - 0.1.9 · 10 Jul 2026418v0.1.427 · 25 Nov 2026

November2026 · 1 versi

Oktober2026 · 7 versi

September2026 · 3 versi

Agustus2026 · 18 versi

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

Juli2026 · 3 versi