WebAssembly / WebAssembly/WASI

Confusion about WASI's function types.

Open
#495 5 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

S-inactive
Dominant language
Rust
Stars
5.8k
Forks
333
Avg merge
2d 13h
Merged PRs (30d)
3

Description

Why are the function types in the wasi API documentation different from the ones I actually compiled in wasm?
image


The fd_write function in the above document takes two parameters, but the following figure actually takes four.


image

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by comparing the WASI API documentation for fd_write with the compiled wasm signature shown in the issue. Determine whether the difference needs an explanation or a documentation correction; done means the documented function types and their relationship to the compiled signature are clear and consistent.

Written by the indexing model from the issue text.

Assessment

Tech stack
wasm
Domain
documentation
Issue type
Documentation
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.