Skip to content

[spec] fix valid-limit (2) - #1094

Closed
Huxpro wants to merge 1 commit into
WebAssembly:masterfrom
Huxpro:limit-fix-2
Closed

Huxpro wants to merge 1 commit into
WebAssembly:masterfrom
Huxpro:limit-fix-2

Conversation

@Huxpro

@Huxpro Huxpro commented Oct 17, 2019

Copy link
Copy Markdown
Contributor

Background: see WebAssembly/multi-value#29

This is (2). The benefits are that this approach reuses 2^{32} and 2^{16} defined in Validation - Type. This is also closer to the future reference-type one in spirit where both tableinst and memoryinst instantiate a tabletype and memtype valid rule to use in the premises.

TODO: Prose need to be updated if this approach is preferred.

@rossberg

Copy link
Copy Markdown
Member

Yeah, I see the point, but it is a bit weird to materialise table/mem types in the rules instead of having structurally inductive premises. So I'd either go for (1), or implement the full change from reference-types.

@Huxpro

Huxpro commented Oct 17, 2019

Copy link
Copy Markdown
Contributor Author

@rossberg Ah I see it. They are not structurally inductive premises is a great point. Thx!

@Huxpro Huxpro closed this Oct 17, 2019
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