Should type imports be restricted to defined types and resources
Maintainer thường phản hồi trong vòng 4 ngày
Chưa có ai nhận issue này.
Đánh giá
- Độ khó
- 5/5
- Thời gian dự kiến
- Hơn một tuần
- Mức phù hợp với người mới
- 25/100
- Loại issue
- Tính năng
- Độ rõ ràng
- Cần làm rõ
- Mức độ hoạt động
- Sôi nổi
- Công nghệ
- wasm
- Lĩnh vực
- compilers
Hướng nghiên cứu
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.
Do mô hình lập chỉ mục viết ra từ nội dung của issue.
Mô tả
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.
- Ngôn ngữ chính
- WebAssembly
- Star
- 1.4k
- Fork
- 134
- Merge trung bình
- 3 ngày 19 giờ
- Pull request đã merge (30 ngày)
- 8
Chuẩn bị môi trường
Dự án này không cung cấp dev container, Dockerfile hay hướng dẫn đóng góp, nên bạn cần tự thiết lập môi trường: hãy bắt đầu từ README và xem hướng dẫn đóng góp lần đầu của chúng tôi để biết các bước chung.
Bắt đầu từ đâu
- Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
- Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
- Fork repository và làm thay đổi trên một nhánh.
- Mở pull request có tham chiếu số hiệu của issue.
Issue khác của WebAssembly/component-model
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 68/100
WebAssembly/component-model#609 · 2 bình luận · 1 reaction ·
Maintainer thường phản hồi trong vòng 4 ngày
-
`use` for `implements` interfaceĐang mở
Độ khó 5/5 Hơn một tuần Mức phù hợp với người mới 12/100
WebAssembly/component-model#768 · 1 bình luận ·
Maintainer thường phản hồi trong vòng 4 ngày
-
Độ khó 5/5 Hơn một tuần Mức phù hợp với người mới 30/100
WebAssembly/component-model#765 · 1 bình luận ·
Maintainer thường phản hồi trong vòng 4 ngày
-
Độ khó 4/5 3-5 ngày Mức phù hợp với người mới 45/100
WebAssembly/component-model#753 · 1 bình luận · 1 reaction ·
Maintainer thường phản hồi trong vòng 4 ngày
-
Độ khó 5/5 Hơn một tuần Mức phù hợp với người mới 25/100
WebAssembly/component-model#752 · 13 bình luận · 1 reaction ·
Maintainer thường phản hồi trong vòng 4 ngày
Tất cả issue của WebAssembly/component-model
Issue tương tự
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 73/100
Maintainer thường phản hồi trong vòng 1 ngày
-
DAE2 crashes on call.without.effects with a non ref.func expressionCó thể đã có người làm @stevenfontanella đã nhận hôm nay. Đang mở
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 72/100
WebAssembly/binaryen#9404 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
area:compiler effort:S impact:med platform:windows type:bug
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 82/100
Maintainer thường phản hồi trong vòng 1 ngày
-
area:Analysis enhancement
Độ khó 1/5 1-3 giờ Mức phù hợp với người mới 69/100
facebookresearch/atlas-lean#5118 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
C-bugfix
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 82/100
Quantinuum/hugr#3354 ·
Maintainer thường phản hồi trong vòng 1 ngày