Skip to content

Commit 428763e

Browse files
committed
Review feedback in 'WebAssembly core modules' section
1 parent 509ded0 commit 428763e

1 file changed

Lines changed: 12 additions & 9 deletions

File tree

component-model/src/design/why-component-model.md

Lines changed: 12 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -13,8 +13,17 @@ A module is defined by the [WebAssembly Core Specification](https://webassembly.
1313

1414
WebAssembly programs can be written by hand,
1515
but it's more likely that you will use a higher level programming language
16-
such as Rust, C, Go, Javascript, or Python to build WebAssembly programs.
17-
Many existing toolchains currently produce a [WebAssembly core module](https://webassembly.github.io/spec/core/syntax/modules.html) -- a single binary `.wasm` file.
16+
such as Rust, C, Go, JavaScript, or Python to build WebAssembly programs.
17+
Many existing toolchains currently produce a
18+
[WebAssembly core module](https://webassembly.github.io/spec/core/syntax/modules.html)—a single
19+
binary `.wasm` file.
20+
21+
A core module usually corresponds to a single binary `.wasm` file.
22+
Here's what the `file` command outputs for a sample `.wasm` file:
23+
```console
24+
$ file adder.wasm
25+
adder.wasm: WebAssembly (wasm) binary module version 0x1 (MVP)
26+
```
1827

1928
A core module is a set of definitions.
2029
Kinds of definitions include:
@@ -34,13 +43,7 @@ Kinds of definitions include:
3443
* And others; see [the Core Specification](https://webassembly.github.io/spec/core/syntax/modules.html)
3544
for the complete list.
3645

37-
A core module usually corresponds to a single binary `.wasm` file.
38-
Here's what the `file` command outputs for a sample `.wasm` file:
39-
```console
40-
$ file adder.wasm
41-
adder.wasm: WebAssembly (wasm) binary module version 0x1 (MVP)
42-
```
43-
These modules can be run in the browser,
46+
Core modules can be run in the browser,
4447
or via a separate runtime such as [Wasmtime](https://wasmtime.dev/)
4548
or [WAMR](https://github.com/bytecodealliance/wasm-micro-runtime).
4649

0 commit comments

Comments
 (0)