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

threads: no shared function expansion #1745

Merged
merged 1 commit into from
Aug 28, 2024

Conversation

abrown
Copy link
Collaborator

@abrown abrown commented Aug 28, 2024

If I understand wast's Expander correctly (which I may not!), there is no need for it to know how to create type definitions for shared functions because there is no way to write WAT that would mark a function shared in an inline way. Since the only way to create a shared function is with an explicit type ID (e.g., (func (type $ft))), we can set shared = false when a TypeDef must be created.

If I understand `wast`'s `Expander` correctly (which I may not!), there
is no need for it to know how to create type definitions for shared
functions because there is no way to write WAT that would mark a
function shared in an inline way. Since the only way to create a shared
function is with an explicit type ID (e.g., `(func (type $ft))`), we can
set `shared = false` when a `TypeDef` must be created.
Copy link
Member

@alexcrichton alexcrichton left a comment

Choose a reason for hiding this comment

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

Mind opening an issue for this as a feature request on the shared-everything-threads repo? I've found it quite convenient historically to be able to write functions in the past without having to write a type ahead of time, so in the limit of time I think this'd be a neat feature to have.

@alexcrichton alexcrichton added this pull request to the merge queue Aug 28, 2024
Merged via the queue into bytecodealliance:main with commit bf1ed5d Aug 28, 2024
29 checks passed
@abrown abrown deleted the set-expansion branch August 28, 2024 22:48
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