You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: component-model/src/design/why-component-model.md
+12-9Lines changed: 12 additions & 9 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -13,8 +13,17 @@ A module is defined by the [WebAssembly Core Specification](https://webassembly.
13
13
14
14
WebAssembly programs can be written by hand,
15
15
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
+
```
18
27
19
28
A core module is a set of definitions.
20
29
Kinds of definitions include:
@@ -34,13 +43,7 @@ Kinds of definitions include:
34
43
* And others; see [the Core Specification](https://webassembly.github.io/spec/core/syntax/modules.html)
35
44
for the complete list.
36
45
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,
44
47
or via a separate runtime such as [Wasmtime](https://wasmtime.dev/)
45
48
or [WAMR](https://github.com/bytecodealliance/wasm-micro-runtime).
0 commit comments