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

[spec] externaddr is meant to be uninterpreted but has a grammar definition #1471

Open
anuraaga opened this issue May 12, 2022 · 0 comments
Open

Comments

@anuraaga
Copy link

I was looking through the definition of addresses and found it might be contradicting itself.

https://www.w3.org/TR/wasm-core-2/exec/runtime.html#syntax-externaddr

It mentions "an embedder may supply an uninterpreted set of host addresses" but also has "externaddr ::= addr", which seems to be interpreting the host address as an unsigned integer. Two possible improvements are

  • Rename "host addresses" to "external addresses", or "externaddr" to "hostaddr". I think these two are talking about the same thing but it's not clear with the word being different.
  • Tweak "externaddr ::= addr", I don't know if there is a way to represent an opaque value in the grammar but "addr" doesn't seem correct here given it has a definition
@rossberg rossberg changed the title externaddr is meant to be uninterpreted but has a grammar definition [spec] externaddr is meant to be uninterpreted but has a grammar definition Aug 4, 2022
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

No branches or pull requests

1 participant