docs(lab12): a QuickNotes endpoint as a WebAssembly component - #1496
Open
HNS2112 wants to merge 4 commits into
Open
docs(lab12): a QuickNotes endpoint as a WebAssembly component#1496HNS2112 wants to merge 4 commits into
HNS2112 wants to merge 4 commits into
Conversation
Signed-off-by: Elvira <239804565+HNS2112@users.noreply.github.com>
Signed-off-by: HNS <239804565+HNS2112@users.noreply.github.com>
Signed-off-by: HNS <239804565+HNS2112@users.noreply.github.com>
…dule Signed-off-by: Elvira <239804565+HNS2112@users.noreply.github.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.
Goal
Lab 12 submission: a Moscow-time endpoint built as a WebAssembly component with the Spin SDK, measured against the Lab 6 Docker container, plus the same logic rebuilt as a standalone WASI CLI module under wasmtime.
Changes
wasm/moscow-time/— Spin component: main.go, spin.toml, go.mod, wit/wasm-cli/— standalone wasip1 module forwasmtime runevidence/lab12/— build output, latency and cold-start measurementssubmissions/lab12.md— report covering Tasks 1–2 and the bonusTesting
spin upserves valid Moscow-time JSON on/time; main.wasm is 5.24 MB.Warm latency: Spin 10.5 ms vs Docker 11.3 ms. Cold start: Spin 137 ms vs Docker 140 ms.
CLI module 3.18 MB, 20.2 ms per
wasmtime runinvocation.Note on toolchain
Spin 4's
http-gotemplate no longer uses TinyGo — it builds withcomponentize-goand SDK v3, so the lab's-buildmode=c-sharedand TinyGo requirements describe the Spin 3.x pipeline. Four intermediate failures (a 404 in componentize-go's installer, a missing wit/ directory in the scaffold, a Go 1.26 linker segfault, and GOTOOLCHAIN silently upgrading Go) are documented in the report.Checklist
git log --show-signature)submissions/labN.mdupdated