Repository navigation
feat(bench): issue-58 L0 — Lynx IR spec and direct-emission prototype with measured evidence - #59
Merged
Merged
Conversation
…IR spec Co-Authored-By: Claude Fable 5 <[email protected]> Claude-Session: https://claude.ai/code/session_01YHfFsy9CLaRovTFH8pTGyY
This was referenced Aug 18, 2026
Open
Closed
Huxpro
marked this pull request as ready for review
August 19, 2026 17:12
This was referenced Aug 19, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
L0 of #58 (Lynx-specialized compiler + renderer roadmap): the representation spec, the cost model, and the measured evidence for the L0 exit gate — a direct-emission prototype cell for the lynx-table fixture, driven end-to-end through the existing web harnesses.
docs/lynx-specialized-target-l0.md— the Lynx IR spec (static structure, create functions, slot table, typed delta opcodes, adoption identity, directive lowering), the cost model, the fresh-core-vs-extraction recommendation (extract a host-neutral hook kernel fromuniversal-core.ts, per the two-renderer escape clause), and the recorded GO verdict.benchmarks/lynx-table/prototype/— theoctane-directcell: a hand-written rendition of what atarget: 'lynx'backend would emit for the fixture (straight-line PAPI create functions + slot-delta applier on the main thread; a state-owner background stub emitting typed deltas overcallLepusMethod), assembled into a JSON web bundle that shares the octane cell'spageConfigandapp.cssbyte-for-byte. Includes a functional-parity smoke for every benchmark op, an FCP A/B runner, a binary-bundle section reader, and the committed session records underprototype/results/.web/run-web.mjs— registersoctane-directas an opt-in cell behind the byte-identical driver.L0 exit-gate verdict: GO
Measurement session (4× Xeon 2.10GHz, Chromium 141, quiet-host protocol, fresh page per sample, n=5, AB/BA alternation; medians, same-window ratios):
FCP@10k mount-create ladder (
prototype/results/fcp-10000.md):0.575×, −675.9 ms — against a path whose directly observed
plan_interpretationis only 111.5 ms. The win is the whole interpret → record graph → command batch → prepare → generic apply pipeline around the identical PAPI calls; PAPI creation itself (476.6 ms same-session) and layout/flush persist in both cells and are the engine-intrinsic remainder.Per-op wall clock @10k (
prototype/results/web-l0-session.md, ×vs vue-vdom):Storms are at parity — the universal path's per-tick cost is already floored by flush/layout, which bounds expectations: the specialized path's wins are first screen, bulk creates, and point updates. Same-session stage attribution of the current path (
prototype/results/stages-10000-l0-session.md): create@10kpapi_element_creation582.9 +mt_apply_other290.3 +bg_replay138.7 of 1165.9 ms raw.Validation
pnpm format:checkpnpm typecheckpnpm testprototype/smoke.mjsfunctional parity at 1k and 10k (create/append/update-10th/select/remove/swap/clear/both storms);stages/run.mjs --smokeon the unmodified harness; fullstages/run.mjs --reps 5 --rows 10000reportable run;pnpm syncclean.Docs + benchmark-only change: no runtime/compiler package is touched (
packages/**unchanged), so repo-wide typecheck/test were deliberately not run for this diff; format:check and sync pass repo-wide.Risk / follow-ups
bg_replay138.7 ms); the claim boundary is spelled out inprototype/README.mdand the spec.target: 'lynx'compiler backend, L2 background core + slot-delta protocol (kernel-extraction spike first), L3 main-thread applier + first-screen codegen; deferred capability details (directive lowering beyond the fixture, native.lynx.bundletemplate sections, lane-scheduler batching) are listed there.Provenance
agent-authored)