Skip to content

Add an AssemblyScript guest example for Numax - #95

Open
lntutor wants to merge 3 commits into
GianIac:mainfrom
lntutor:feat/assemblyscript-guest-50
Open

Add an AssemblyScript guest example for Numax#95
lntutor wants to merge 3 commits into
GianIac:mainfrom
lntutor:feat/assemblyscript-guest-50

Conversation

@lntutor

@lntutor lntutor commented Jul 30, 2026

Copy link
Copy Markdown
Contributor

Summary

  • add a minimal AssemblyScript guest exporting run and importing only nx.host_log_v2
  • pin AssemblyScript 0.28.8 and include an ABI/runtime smoke test for imports, exports, memory, and exact log output
  • document build and nx run steps plus the managed-memory env.abort caveat
  • build and test the example in the existing WASM examples CI job

Verification

  • npm ci && npm run build && npm test in examples/guest_assemblyscript
  • target/release/nx run examples/guest_assemblyscript/guest.wasm
  • /Users/loi/.cargo/bin/cargo test --workspace -q
  • /Users/loi/.cargo/bin/cargo fmt --all -- --check
  • /Users/loi/.cargo/bin/cargo clippy --workspace --all-targets -- -D warnings
  • git diff --check

Closes #50

@lntutor

lntutor commented Aug 1, 2026

Copy link
Copy Markdown
Contributor Author

Current head dc386cd2a78181caa4de67f780e922f8666946c2 is mergeable and the visible CI surface on this exact SHA is fully green: cross-platform Check, Clippy, and Test jobs on Ubuntu, macOS, and Windows; Format; Build WASM Examples; CLI Multi-process Smoke; Benchmark Comparator Tests; Ubuntu Profiling Artifacts; Benchmark Regression Gate; and the aggregate CI Success check all completed successfully. There are no review threads or review-body comments open on the current PR state, so if this AssemblyScript guest example still matches the intended direction, it looks ready for maintainer review/merge when convenient.

@GianIac GianIac changed the title docs(examples): add AssemblyScript guest Add an AssemblyScript guest example for Numax Aug 11, 2026

@GianIac GianIac left a comment

Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for the PR, a one little fix -> package-lock.json resolves packages from npm.vexere.net instead of registry.npmjs.org. Looks like a local/company registry leaking from your ~/.npmrc. Could you regenerate the lockfile against the public npm registry? Something like:

cd examples/guest_assemblyscript
rm -rf node_modules package-lock.json
npm install --registry=https://registry.npmjs.org/

integrity hashes stay the same, only resolved URLs change. Once that's in, happy to merge.

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.

Add an AssemblyScript guest example for Numax

2 participants