WebAssembly / WebAssembly/shared-everything-threads

Clarifications on "more complex" unchanged instructions

Open
#105 6 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
WebAssembly
Stars
97
Forks
6
PR merge metrics
No merged PRs in 30d

Description

We should clarify if the following specifications are desired:

  • table.copy can copy between shared and unshared tables (all 4 combinations[^1], also for all the other cases below)
  • array.copy can copy between shared and unshared arrays
  • table.init can initialize shared and unshared tables from shared and unshared element segments
  • array.new_elem can construct shared and unshared arrays using shared and unshared element segments
  • array.new_data can construct shared and unshared arrays using shared and unshared data segments
  • array.init_data and array.init_elem can similarly use a mix of shared and unshared arrays and element / data segments

AFAICT that's what this proposal is currently defining, I can say for sure that the V8 implementation does not support most of these cases (some of the bulk instructions might not work at all for shared types in the current POC.)

[^1]: Inside an unshared function

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 reading the proposal's treatment of "more complex" unchanged instructions and compare the listed shared/unshared combinations with the V8 proof-of-concept implementation. Done means the proposal explicitly resolves whether each table, array, element-segment, and data-segment combination is supported.

Written by the indexing model from the issue text.

Assessment

Tech stack
wasm
Domain
compilers
Issue type
Feature
Difficulty
5/5
Estimated time
Over a week
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.