Commit cd374ec
authored
feat: wasm32 browser target — wasm example tour, wasm-serve, benchmark refresh (#154)
## Summary
Browser-targeted WebAssembly support, plus the developer ergonomics and
example coverage to go with it.
- **wasm example as a language tour** — `examples/wasm/hello.osp`
expanded from a hello-world into a full wasm-safe walkthrough of the
language (pattern matching, functions, string interpolation, etc.), with
`.expectedoutput` and the prebuilt `hello.wasm` regenerated to match.
- **Make targets** — VSIX targets scoped to `osprey` only, and a new
`wasm-serve` dev server target for running the wasm example in the
browser.
- **Benchmarks** — restored the full 22-case run (including the GC
backend) and refreshed the published results/tables.
## Test plan
- [ ] `make ci` (lint + test + build)
- [ ] Differential example harness passes (`examples/wasm/hello.osp`
matches `.expectedoutput` byte-for-byte)
- [ ] `make wasm-serve` runs the example in a browser1 parent b9b9939 commit cd374ec
12 files changed
Lines changed: 1787 additions & 57 deletions
File tree
- benchmarks/results
- compiler/runtime
- examples/wasm
- build
- website/src/_includes
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
3 | 3 | | |
4 | 4 | | |
5 | 5 | | |
| 6 | + | |
6 | 7 | | |
7 | 8 | | |
8 | 9 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
7 | 7 | | |
8 | 8 | | |
9 | 9 | | |
10 | | - | |
| 10 | + | |
11 | 11 | | |
12 | 12 | | |
13 | 13 | | |
| |||
89 | 89 | | |
90 | 90 | | |
91 | 91 | | |
| 92 | + | |
| 93 | + | |
| 94 | + | |
92 | 95 | | |
93 | 96 | | |
94 | 97 | | |
| |||
155 | 158 | | |
156 | 159 | | |
157 | 160 | | |
| 161 | + | |
| 162 | + | |
| 163 | + | |
| 164 | + | |
| 165 | + | |
| 166 | + | |
| 167 | + | |
| 168 | + | |
| 169 | + | |
| 170 | + | |
| 171 | + | |
| 172 | + | |
| 173 | + | |
158 | 174 | | |
159 | 175 | | |
160 | 176 | | |
| |||
Large diffs are not rendered by default.
Large diffs are not rendered by default.
0 commit comments