docs: spec PIC package composition + correct composition status#37
Merged
Conversation
Adds docs/pic-composition.md — the design spec for porting CompositionBuilder onto the 0.8.x PIC shared-memory loader (N packages share one memory, cross-calls pass pointers directly instead of copying between memories), with a two-package adder+doubler example and the path to static merge into one .wasm. Also corrects the README: the shipped composition is RUNTIME composition (separate memories, cross-memory bridge), not a merged module; adds the level-1/2/3 roadmap. package-linking-exploration.md gets a pointer to the new spec. Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
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.
Spec: PIC package composition + accurate composition status
Requested spec for the next step of package-to-package composition, plus a docs correction.
docs/pic-composition.md(new) — design spec for portingCompositionBuilderonto the 0.8.x PIC loader. The current builder gives each package its own memory and copies bytes between them on every cross-call; the PIC version lets N packages share one memory (one allocator, disjoint bases) and wires A's import directly to B's export — no cross-memory copy. Includes the two-packageadder+doublerexample to build first, honest open questions (return-buffer free, memory floor scaling), and the path to level-3 static merge into one.wasm.package-linking-exploration.md— pointer to the new spec.Docs only — no code. For review before merge.
🤖 Generated with Claude Code