Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -95,9 +95,9 @@ that is, code which fulfills the definition of the interface function declared i

## 4. Compile a WebAssembly Preview 2 component with `wasi-sdk`'s `wasm32-wasip2-clang`

"P1" refers to [WASI Preview 1](https://github.com/WebAssembly/WASI/blob/main/legacy/README.md),
"P1" refers to [WASI Preview 1](https://github.com/WebAssembly/WASI/tree/wasi-0.1),
the initial version of the WASI APIs.
"P2" refers to [WASI Preview 2](https://github.com/WebAssembly/WASI/blob/main/wasip2/README.md),
"P2" refers to [WASI Preview 2](https://github.com/WebAssembly/WASI/blob/main/docs/Preview2.md),
which introduced the component model.

While in the past building a P2 component required conversion from a P1 component,
Expand Down
4 changes: 2 additions & 2 deletions component-model/src/reference/faq.md
Original file line number Diff line number Diff line change
Expand Up @@ -79,9 +79,9 @@ expect to access—WASI enables building interfaces on top of a shared standard

## Q: I see the terms Preview 1 and Preview 2 frequently. What do those refer to?

Preview 1 refers to [the first iteration of the Component Model](https://github.com/WebAssembly/WASI/tree/main/legacy)
Preview 1 refers to [the first iteration of the Component Model](https://github.com/WebAssembly/WASI/tree/wasi-0.1)
which was based on WITX and is now deprecated.
Preview 2 refers to [a newer iteration of the Component Model](https://github.com/WebAssembly/WASI/tree/main/wasip2)
Preview 2 refers to [a newer iteration of the Component Model](https://github.com/WebAssembly/WASI/blob/main/docs/Preview2.md)
which uses WebAssembly Interface Types (WIT).

Many programming language toolchains may only support Preview 1 components natively,
Expand Down
2 changes: 1 addition & 1 deletion component-model/src/reference/useful-links.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ The following references are helpful in understanding the Component Model and re
- [Canonical ABI][canonical-abi]

[wasm-cm-repo]: https://github.com/WebAssembly/component-model
[wasi-p2]: https://github.com/WebAssembly/WASI/tree/main/wasip2
[wasi-p2]: https://github.com/WebAssembly/WASI/blob/main/docs/Preview2.md
[ast-explainer]: https://github.com/WebAssembly/component-model/blob/main/design/mvp/Explainer.md
[canonical-abi]: https://github.com/WebAssembly/component-model/blob/main/design/mvp/CanonicalABI.md
[wac]: https://github.com/bytecodealliance/wac
Expand Down
Loading