Should type imports be restricted to defined types and resources
维护者通常 4 天内回复
还没有人认领这个 Issue。
评估
- 难度
- 5/5
- 预计耗时
- 一周以上
- 新手友好度
- 25/100
- Issue 类型
- 功能
- 描述清晰度
- 需要澄清
- 活跃度
- 活跃
- 技术栈
- wasm
- 领域
- compilers
调研方向
Read the issue's component text examples and the tests added in wasm-tools PR 2833. Decide whether imports of instance, component, and function types should be allowed, and clarify the intended rules for type imports, including the exported-type example. Done means the specification has a clear decision and corresponding behavior is agreed upon.
由索引模型根据 Issue 内容生成。
描述
It turns out that wasmparser as a slew of minor issues related to handling type imports of instance, component, and function types. For example:
(component
(type $f (func))
(import "f" (type (eq $f)))
)
One example is that wasmparser rejects, likely erroneously, this currently:
(component
(type $f (func))
(export "f" (type $f))
(import "g" (type (eq $f)))
)
Another example is tests added in https://github.com/bytecodealliance/wasm-tools/pull/2833 as well.
Overall I'm not aware of an actual use case of this. Resources make sense, and defined types make sense for bindings generation, but I'm not sure importing other kinds of types has much of a use case beyond "let's fill out the full matrix". I wanted to raise this as a very-not-urgent issue as a result in case others had thoughts on this.
- 主要语言
- WebAssembly
- 星标
- 1.4k
- 派生
- 134
- 平均合并
- 3 天 19 小时
- 30 天内合并 PR
- 8
环境准备
这个项目没有提供开发容器、Dockerfile 或贡献指南,环境需要你自己搭建:先看它的 README,通用步骤见我们的新手贡献指南。
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
WebAssembly/component-model 的其他 Issue
-
难度 2/5 1-3 小时 新手友好度 68/100
WebAssembly/component-model#609 · 2 条评论 · 1 个 reaction ·
维护者通常 4 天内回复
-
难度 5/5 一周以上 新手友好度 12/100
WebAssembly/component-model#768 · 1 条评论 ·
维护者通常 4 天内回复
-
难度 5/5 一周以上 新手友好度 30/100
WebAssembly/component-model#765 · 1 条评论 ·
维护者通常 4 天内回复
-
难度 4/5 3-5 天 新手友好度 45/100
WebAssembly/component-model#753 · 1 条评论 · 1 个 reaction ·
维护者通常 4 天内回复
-
难度 5/5 一周以上 新手友好度 25/100
WebAssembly/component-model#752 · 13 条评论 · 1 个 reaction ·
维护者通常 4 天内回复
查看 WebAssembly/component-model 的全部 Issue
相似的 Issue
-
难度 2/5 1-3 小时 新手友好度 73/100
维护者通常 1 天内回复
-
DAE2 crashes on call.without.effects with a non ref.func expression可能已有人在做 @stevenfontanella 今天认领。 未关闭
难度 2/5 1-3 小时 新手友好度 72/100
WebAssembly/binaryen#9404 ·
维护者通常 1 天内回复
-
area:compiler effort:S impact:med platform:windows type:bug
难度 2/5 1-3 小时 新手友好度 82/100
维护者通常 1 天内回复
-
area:Analysis enhancement
难度 1/5 1-3 小时 新手友好度 69/100
facebookresearch/atlas-lean#5118 ·
维护者通常 1 天内回复
-
C-bugfix
难度 2/5 1-3 小时 新手友好度 82/100
Quantinuum/hugr#3354 ·
维护者通常 1 天内回复