Skip to content

witx: remove supertypes from the handle type#358

Merged
pchickey merged 1 commit into
masterfrom
pch/remove_handle_supertypes
Nov 30, 2020
Merged

witx: remove supertypes from the handle type#358
pchickey merged 1 commit into
masterfrom
pch/remove_handle_supertypes

Conversation

@pchickey

Copy link
Copy Markdown
Contributor

the idea here was to enable handles to have a subtyping hierarchy,
but this isnt compatible with wasm extern refs and we never used it
anywhere, so its safe to delete all this code.

See also #357

the idea here was to enable handles to have a subtyping hierarchy,
but this isnt compatible with wasm extern refs and we never used it
anywhere, so its safe to delete all this code.
@pchickey pchickey merged commit fa7c8f5 into master Nov 30, 2020
@pchickey pchickey deleted the pch/remove_handle_supertypes branch November 30, 2020 19:09
@sunfishcode

Copy link
Copy Markdown
Member

The subtype relationships are meant to anticipate subtyping in type imports.

Type imports are better than externref for WASI because externrefs aren't virtualizable, since they can only be created by the host, so it'd be good to keep the subtype relationships in anticipation of using them with type imports.

@pchickey

Copy link
Copy Markdown
Contributor Author

oh! as usual I got it backwards. I think i'd like to keep this code out for YAGNI reasons. If we need to add it back in, its not too difficult to do so, either by revert or manually.

yoshuawuyts pushed a commit to yoshuawuyts/WASI that referenced this pull request Nov 25, 2025
the idea here was to enable handles to have a subtyping hierarchy,
but this isnt compatible with wasm extern refs and we never used it
anywhere, so its safe to delete all this code.
yoshuawuyts pushed a commit to yoshuawuyts/WASI that referenced this pull request Nov 25, 2025
the idea here was to enable handles to have a subtyping hierarchy,
but this isnt compatible with wasm extern refs and we never used it
anywhere, so its safe to delete all this code.
yoshuawuyts pushed a commit to yoshuawuyts/WASI that referenced this pull request Nov 25, 2025
the idea here was to enable handles to have a subtyping hierarchy,
but this isnt compatible with wasm extern refs and we never used it
anywhere, so its safe to delete all this code.
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.

3 participants