WebAssembly / WebAssembly/WASI

wasi calls from wasm start function

Open
#616 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

is it allowed to call wasi functions from wasm start function?

i suppose the answer is no because, with some embedder apis, it's tricky or impossible to get a reference to the exported memory before the start function is called.
anyway, is it specified anywhere in the spec?

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 with the WebAssembly core specification's start-function syntax and the WASI Preview 1 specification. Determine whether WASI calls from a wasm start function are specified as permitted, including the exported-memory concern raised here. Document the answer and cite the relevant specification sections.

Written by the indexing model from the issue text.

Assessment

Tech stack
wasm
Domain
operating-systems
Issue type
Documentation
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
30/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.