Skip to content

Phase 7: Compiler Explorer web app (MVP) - #7

Merged
deaneeth merged 1 commit into
feat/phase-6-fuzzingfrom
feat/phase-7-explorer
Oct 26, 2026
Merged

deaneeth merged 1 commit into
feat/phase-6-fuzzingfrom
feat/phase-7-explorer

Conversation

@deaneeth

Copy link
Copy Markdown
Member

Stacked on feat/phase-6-fuzzing. Merge the stack in order, starting from the bottom PR.

Commits in this PR:

  • Phase 7: Compiler Explorer web app (MVP)

Add web/, an Astro + React static site. A Pyodide worker runs
runtime/web_api.py: one analyze() call compiles the program for both chips,
runs the tiny-gpu simulator, and computes the numpy oracle. The tiny-tpu
program is run in the page on the real tiny-tpu RTL (WASM) through the same
executor the Node tests use. The UI shows every pass's IR, both chips' output,
a bit-exact check of each result against the oracle, and a head-to-head table.

scripts/build_web.py bundles the Python sources, copies the tiny-tpu WASM and
the executor, and generates the example list from examples/ so the UI cannot
drift from them. It runs automatically before npm dev and npm build.

Verified in a browser: the default example is bit-exact on both chips;
mlp_gpu at -O2 is bit-exact on tiny-gpu and rejected by tiny-tpu with the
legality message; the phone-width layout has no horizontal scroll. Not yet:
a CodeMirror editor, the PE-grid animation, and browser test automation.
@deaneeth
deaneeth merged commit c27ee6f into feat/phase-6-fuzzing Oct 26, 2026
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant