Repository navigation
Build D2 WebAssembly with TinyGo - #2966
Merged
Merged
Conversation
- sent from alixander's Codex
- sent from alixander's Codex
- sent from alixander's Codex
- sent from alixander's Codex
alixander
added a commit
that referenced
this pull request
Nov 26, 2026
d2js/js/README.md: put back the Development paragraph naming TinyGo 0.44.0-d2.2 from d2lang/tinygo. Resolving the isometric conflict with master's whole file had dropped it, and the build refuses stock TinyGo. Changelogs: sizes and speed against master 40e942d, whose module lost 4.5 MB with isometric rendering. The module is a further 49.7% smaller (32.6% with Brotli) and takes 55% of the time. next.md gains an entry for the TinyGo switch (#2966) these numbers build on, states the asyncify growth for the code as a whole, as ci/wasm-flags.sh does, and limits the shared sort routine to D2's own sorts. CI: test TALA's scheduler.none variants natively. ci/wasm-flags.sh, ci/wasm-goroutines.txt and *_nosched.go now select the wasm job and ci/wasm-strip the packed browser job; the first three and ci/wasm-strip selected no job before. THIRD_PARTY_NOTICES.txt: the TinyGo runtime and wasm_exec.js in the module come from d2lang/tinygo v0.44.0-d2.2. Co-Authored-By: Claude Opus 5.5 <[email protected]>
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.
Human
AI
Build the browser and Node D2.js packages with TinyGo 0.44.0. With the Safari fix on base
8e054d14, the standard Go release build (Binaryen 131,wasm-opt -O2) produces a 55.95 MiB module. TinyGo produces 23.76 MiB. The Brotli payload embedded in the browser bundle falls from 10.69 to 6.43 MiB (39.8%).Verification
In the comparison against base
7d483240, the full Linux CI job passed in 24m 43s on this PR and 12m 04s on the base. PR run · Base run