wasi-threads icon indicating copy to clipboard operation
wasi-threads copied to clipboard

should memory be exported as well?

Open yamt opened this issue 1 year ago • 3 comments

  • there seems to be a consensus memory should be imported for wasi-threads. clarification: https://github.com/WebAssembly/wasi-threads/pull/20
  • on the other hand, it's said that memory should be exported in wasi: https://github.com/WebAssembly/WASI/blob/main/legacy/application-abi.md#current-unstable-abi
  • it's a bit redundant to both import and export a memory.
  • a side note: released versions of LLVM wasm-ld doesn't seem to support both import and export memory. https://reviews.llvm.org/D135898

discussions: https://github.com/WebAssembly/wasi-libc/pull/369#discussion_r1053853546 https://github.com/WebAssembly/wasi-threads/pull/19#discussion_r1061484551 https://github.com/WebAssembly/WASI/pull/48#discussion_r289338186

yamt avatar Jan 05 '23 10:01 yamt