WebGPU compute rewrite: design map + verified reference oracle + GPU spike - #11
Open
kdbanman wants to merge 1 commit into
Open
WebGPU compute rewrite: design map + verified reference oracle + GPU spike#11kdbanman wants to merge 1 commit into
kdbanman wants to merge 1 commit into
Conversation
Ground-up rewrite of the 3D face-lattice automaton with GPU-computed iteration (WebGPU) and browser rendering, produced via the wayfinder design map (issue #1). - reference/: faithful environment.pde port (world-coord ground truth) and the packed per-orientation sublattice representation the GPU uses, proven bit-for-bit equivalent (N=8..50), with golden-trajectory and WGSL-table cross-check tests. - src/: WebGPU ping-pong compute of the exact rule (birth {4,5} / survive {3,4,5}, 12 diagonal+adjacent neighbors, toroidal), decoupled from render via a steps-per-frame slider with an iterations/sec readout; GPU stat reduction with async readback; instanced oriented-quad render with orientation/heat color toggle; orbit camera; in-browser verify-vs-oracle self-check. - SPEC.md: build-ready spec consolidating every resolved design decision. Correctness chain: faithful port == packed JS == WGSL table (36/36), with execution-level proof available in-browser. Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01445YRo7RS6hGSuNyBUbaxH
This was referenced Jul 15, 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.
Ground-up rewrite of Gump — the 3D face-lattice automaton — with iteration computed on the GPU and rendered/interacted in the browser. Produced by charting the foggy design work as a wayfinder decision map and resolving it. This PR is the spec + a proven compute spike, not the finished app (per the session's chosen destination).
What's here
web/reference/— the correctness oracledev/gump/environment.pdein world coordinates (ground truth), plus the packed per-orientation sublattice representation the GPU uses.node web/reference/verify.mjs), with a pinned golden trajectory and the N=50 cube reproducing the README's grow→sustain signature.web/src/— the WebGPU spike{4,5}/ survive{3,4,5}, 12 neighbors, toroidal) as a WGSL compute kernel, ping-ponged on the GPU.web/SPEC.md— build-ready spec consolidating every resolved decision (compute API = WebGPU, storage-buffer sublattice encoding, decoupling loop, render path, coloring, stats, symmetry metric, seed-centric interaction, controls, stack).Resolved design decisions (the map)
WebGPU compute (primary) · N a runtime slider · seed-centric, no freehand editing · three excellent readouts: population-over-time, cell-age/heat coloring, orientation-balance variance.
Verification
Correctness chain: faithful
environment.pdeport == packed JS == WGSL table, with execution-level proof available in-browser via the Verify button.Run
Notes
dev/is untouched; the rewrite lives beside it inweb/.🤖 Generated with Claude Code
https://claude.ai/code/session_01445YRo7RS6hGSuNyBUbaxH
Generated by Claude Code