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

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

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.

Những gì đã thay đổi

3 thay đổi
  1. JavaScript và 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. Hiển thịTwo-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 và 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.
Mọi thứ kể từ v0.1.103 ở 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 102026 · 33 phiên bản

37121 Tháng 10Drop files onto pages, dictate without your voice leaving the Mac, and controllers that rumblev0.1.371 · API web và DOM · thử ngay 37021 Tháng 10Open your files, share to your phone, have pages read aloud, install sites as apps, play with a controller, and accented text drawn rightv0.1.370 · Quyền riêng tư và Shields · thử ngay11 36920 Tháng 10Passkeys with Touch ID and Windows Hello, sites that work offline, notifications you allow, and devices asked for first, all kept on your devicev0.1.369 · Quyền riêng tư và Shields · thử ngay9 36820 Tháng 10A site's own security rules are kept the whole time the page runs, Trusted Types, a map of every unsafe write in DevTools, and animations from scriptv0.1.368 · Quyền riêng tư và Shields · thử ngay 36720 Tháng 10Events, form controls, performance timing, URL patterns, live streams and the newest JavaScript: the Web APIs score rises from 59 to 62v0.1.367 · API web và DOM · thử ngay10 36619 Tháng 10Events, custom form controls, fonts and navigation work the way the web standards say: the Web APIs score rises from 53 to 59v0.1.366 · API web và DOM · thử ngay9 36519 Tháng 10The code-size budget fits your processor, and code that has gone cold makes room for code that is hot nowv0.1.365 · JavaScript và JIT · thử ngay 36419 Tháng 10Compiled code that fits the processor's caches: big pages up to 1.8 times faster, and fast compiled code on Windows and Intel machinesv0.1.364 · JavaScript và JIT · thử ngay 36319 Tháng 10Thermal runs on one code generator, building strings is up to 8 times faster, and two slow paths that grew with the square of their input are linearv0.1.363 · JavaScript và JIT · thử ngay12 36219 Tháng 10A page scheduler that stalled now runs, try / finally and spreads compile, and deleting thousands of properties is 180 times fasterv0.1.362 · Hiển thị · thử ngay 36118 Tháng 10Thermal runs on Windows and Intel machines, a register fix for compiled code on Windows, try / catch compiles, and reading a growing string is 200 times fasterv0.1.361 · JavaScript và JIT · thử ngay 36018 Tháng 10Every byte of machine code is Floati's own, a news site that showed blank renders, Gust's code is half the size, and closures and ?? compilev0.1.360 · JavaScript và JIT · thử ngay9 35916 Tháng 10Thermal reads object members and folds Math, string building compiles, and methods, Array subclasses and globals behave as the standard saysv0.1.359 · JavaScript và JIT · thử ngay 35816 Tháng 10Thermal, Floati's own optimizing compiler, is on: hot loops keep their numbers and strings in registersv0.1.358 · JavaScript và JIT · thử ngay 35715 Tháng 10Loops that test a number run as machine code, more of your functions compile, and reading page nodes is three times fasterv0.1.357 · JavaScript và JIT · thử ngay14 35614 Tháng 10Recursion makes a fraction of the calls, loops keep objects in registers, and element writes stop searchingv0.1.356 · JavaScript và JIT · thử ngay 35514 Tháng 10A hot loop changes compiler without stopping, property writes skip the detour, and pure recursion remembers its answersv0.1.355 · JavaScript và JIT · thử ngay 35413 Tháng 10Floati compiles JavaScript with its own compiler, Updraft: about a hundred times faster to compile, and compiled code no longer piles upv0.1.354 · JavaScript và JIT · thử ngay 35311 Tháng 10Style matching tries a third of the rules, queries prepare their selector once, sibling walks stay fastv0.1.353 · Hiển thị · thử ngay 35211 Tháng 10Code that loads on demand starts at once, images decode beside their downloads, writes run compiledv0.1.352 · Hiển thị · thử ngay10 35111 Tháng 10Styles read once, layouts redone only where they changed, built-ins in compiled loopsv0.1.351 · JavaScript và JIT · thử ngay12 35010 Tháng 10Helpers that compile, strings that stay small, and events that fire fastv0.1.350 · JavaScript và JIT · thử ngay14 34910 Tháng 10Scripts that grow in step with their work, layouts laid out once, and colours mixed like the referencev0.1.349 · Hiển thị · thử ngay13 3489 Tháng 10Scripts that only compile when it pays, cards that line up, and bold that stays boldv0.1.348 · Hiển thị · thử ngay14 3478 Tháng 10Cards inside links, small print at its real size, and errors you can followv0.1.347 · Hiển thị · thử ngay17 3467 Tháng 10A real performance timeline, site icons from the engine with a lookalike check, and forms that lay out rightv0.1.346 · Hiển thị · thử ngay14 3457 Tháng 10Real WebGL, a real 2D canvas, and canvas text that matches the reference browserv0.1.345 · Hiển thị · thử ngay10 3436 Tháng 10Sign-ins that stay signed in, a real IndexedDB, and a storage button that shows what sites keepv0.1.343 · Quyền riêng tư và Shields · thử ngay25 3425 Tháng 10Theme switchers, chart labels sized by CSS, and SVG text you can measurev0.1.342 · API web và DOM · thử ngay 3415 Tháng 10Canvas text measured and drawn like the reference browser, and SVG shapes you can measurev0.1.341 · Hiển thị · thử ngay 3405 Tháng 10Scripts can read and change SVG the way they do in the reference browser, and a hidden hang is gonev0.1.340 · Hiển thị · thử ngay10 3395 Tháng 10Every computed style, real stylesheet objects and full 3D geometry, each checked against the reference browserv0.1.339 · API web và DOM · thử ngay12 3385 Tháng 10Pages load faster, render truer and gain a dozen modern web features, each one checked against the reference browserv0.1.338 · API web và DOM · thử ngay19