Repository navigation
docs(examples): wasm-exports-demo.affine + smoke harness (closes #500) - #552
Merged
Merged
Conversation
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.
Summary
Lands the deferred end-to-end demo for the generic
wasm_export_callbinding (Tier 1 #5, #455).examples/wasm-exports-demo.affineships one driver perWasmValuescalar kind (add_i32/add_i64/mul_f32/mul_f64+ adispatch_unknownfor the runtime-dispatch case), and a smoke fixture attests/codegen-deno/wasm_exports_demo.{affine,harness.mjs}round-trips each through a hand-built 120-byte wasm module exporting all four shapes.The harness asserts both the raw module exports and the AS-side wrappers at appropriate precision: exact for i32/i64 (including values past i32 range, exercising the i64 BigInt boundary), 1e-5 for f32, 1e-12 for f64.
docs/bindings-roadmap.adocTier-1 row 5 grows a pointer to the new example so future readers find the canonical end-to-end demo.Test plan
dune buildcleandune test— 375/375 (was 374; +1 from examples/ auto-discovery picking up the new file)bash tools/run_codegen_deno_tests.sh— all codegen-deno harnesses green, including newwasm_exports_demo.harness.mjsexamples/wasm-exports-demo.affine(affinescript check)Closes
Refs
docs/bindings-roadmap.adocTier 1 row 5 — updated🤖 Generated with Claude Code