You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
widgets: native pages from .t27 replace tool.js for jtag-verdict and race-the-bee (t27 epic 10937) #1707
Move the first two WIDGETS tools from hand-written tool.js to pages written in .t27 and built to wasm. The epic is Trinity-S-AI-DNA/t27#10937: 28 tools carry 22833 hand-written lines (JavaScript, CSS, Node data builders, Python card renderers); the logic and the page of each are being ported to .t27, proven equal to the hand-written version by a differential, and driven by one shared host.
This change, for jtag-verdict and race-the-bee:
public/widgets/host.js (32 lines): the one host every native widget shares; it forwards events and data to widget.wasm and sets the HTML the wasm writes.
widget.wasm per tool, built from the native spec (the tool's words plus its page, t27c gen and zig, wasm32-freestanding), 9269 and 13014 bytes.
scripts/widget-pages-from-spec.mjs: a folder with widget.wasm and no tool.js is a native tool; its page loads ../host.js; every other byte of the generated page is unchanged.
the vendored public/t27/t27_compiler.wasm is rebuilt from the t27 repo, because the old build rejects module-level var in a spec.
tool.js of both tools is deleted (171 and 105 lines).
Activity
website: regenerate the play pages for the rebuilt vendored compiler
widgets: one unified host.js (260 lines) for all 28 native tools (Closes
widget pages: a native spec may hold any module-level constants; its …
widgets: t27c-stages (29515-byte wasm) and gatle (38685) drawn native…
widgets: stat-card (36671), lut-treemap (41208), fasm-skyline (52245)…
widgets: bit-diff (55689), bit-autopsy (58804), idcode (39368), slack…
course: regenerate course.generated.ts after the host and page stamps…