Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add WASM Core 2 spec and phase 3+ WASM proposals #1190

Merged
merged 1 commit into from
Feb 5, 2024
Merged

Conversation

tidoust
Copy link
Member

@tidoust tidoust commented Feb 5, 2024

The list only contained Level 1 of WASM Core (see #1059). This adds Level 2. In practice, crawling will work fine for the Editor's Draft but Reffy will basically not extract anything from the /TR version of the spec because it does not follow usual patterns. That seems fine enough for now.

This update also introduces missing WASM proposals as forks of the WASM Core or WASM JavaScript API specification. Most of the time, the title needs to be created because the actual specification remains that of the base spec.

One difficulty is that the WebAssembly group approaches extensions proposals as generic WASM extensions, and not necessarily as WASM Core extensions or WASM JS API extensions, whereas we need to make a choice to set the forkOf property. Things look good for this batch of updates, because current proposals still seem to extend either of these specs. That may not always be the case though in the future!

Similarly, the find-specs script assumed that proposals were always extending the Core spec. It now reports the URL of the home page, both to make it clearer that a choice needs to be made, and to avoid reporting a proposal that is already in the list as a WASM JS API fork.

Via #1186.

The list only contained Level 1 of WASM Core (see #1059). This adds Level 2. In
practice, crawling will work fine for the Editor's Draft but Reffy will
basically not extract anything from the /TR version of the spec because it does
not follow usual patterns. That seems fine enough for now.

This update also introduces missing WASM proposals as forks of the WASM Core or
WASM JavaScript API specification. Most of the time, the title needs to be
created because the actual specification remains that of the base spec.

One difficulty is that the WebAssembly group approaches extensions proposals as
generic WASM extensions, and not necessarily as WASM *Core* extensions or WASM
*JS API* extensions, whereas we need to make a choice to set the `forkOf`
property. Things look good for this batch of updates, because current proposals
still seem to extend either of these specs. That may not always be the case
though in the future!

Similarly, the find-specs script assumed that proposals were always extending
the Core spec. It now reports the URL of the home page, both to make it clearer
that a choice needs to be made, and to avoid reporting a proposal that is
already in the list as a WASM JS API fork.

Via #1186.
"url": "https://webassembly.github.io/content-security-policy/js-api/",
"forkOf": "wasm-js-api-2",
"title": "WebAssembly JavaScript Interface: Content Security Policy"
},
{
"url": "https://webassembly.github.io/exception-handling/js-api/",
"forkOf": "wasm-js-api-2"
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Note this one has a custom title, no need to set it ourselves in specs.json.

"url": "https://www.w3.org/TR/wasm-core-1/",
"url": "https://www.w3.org/TR/wasm-core-2/",
"nightly": {
"url": "https://webassembly.github.io/spec/core/bikeshed/"
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is needed because the Editor's Draft link in the Level 2 spec does not target the Bikeshed rendition of the spec.

Copy link
Member

@dontcallmedom dontcallmedom left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I note that the forks include forks of the test suites, which may or may not include related test cases; I think we're probably better off ignoring this at the moment

@tidoust tidoust merged commit 75e0469 into main Feb 5, 2024
1 check passed
@tidoust tidoust deleted the wasm-forks branch February 5, 2024 10:51
@dontcallmedom dontcallmedom mentioned this pull request Feb 7, 2024
11 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants