Import attribute for controlling builtins compilation option
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
- 35/100
- Loại issue
- Tính năng
- Độ rõ ràng
- Khá rõ ràng
- Mức độ hoạt động
- Đình trệ
- Công nghệ
- javascript, wasm
- Lĩnh vực
- compilers
Hướng nghiên cứu
Start with the discussion in pull request #95 linked from the issue, focusing on the proposed wasmBuiltins import attribute and compilation-sharing behavior. Define the attribute's handling of all, none, and builtin lists, including sorting and canonicalization; done means the proposal specifies the exact name, accepted values, defaults, and when module records and binary compilations are shared.
Do mô hình lập chỉ mục viết ra từ nội dung của issue.
Mô tả
Follow-on from https://github.com/WebAssembly/esm-integration/pull/95#issuecomment-2651870948 to track support for a new import attribute to support builtins compilation options.
From that discussion:
Add an import attribute for the wasm builtin collections to enable: either 'all', 'none', or a list of specific ones to enable. The default if not specified would be 'all' (as opposed to the JS-API which defaults to 'none').
The exact name can be confirmed, but for now consider we had an attribute called wasmBuiltins:
import source mod1 from './mod.wasm' with { wasmBuiltins: 'none' };
import source mod2 from './mod.wasm' with { wasmBuiltins: 'js-string,another-builtin' };
Ideally we would define canonicalization of the import attribute string to ensure that we do not end up treating:
import source mod1 from './mod.wasm' with { wasmBuiltins: 'all' };
import source mod2 from './mod.wasm' with { wasmBuiltins: 'js-string' };
import source mod3 from './mod.wasm';
As three separate binary compilations, but that the compilation and module record is shared between all of the above.
One issue with canonicalization when it comes to supporting multiple builtins (say comma-separated - wasmBuiltins: 'js-string,another-builtin' is that this also implies some kind of sorting canonicalization.
I think these cases should be possible to address though.
- Ngôn ngữ chính
- WebAssembly
- Star
- 458
- Fork
- 40
- Merge trung bình
- 10 ngày 37 phút
- Pull request đã merge (30 ngày)
- 1
Chuẩn bị môi trường
- Không có Dockerfile hay tệp Docker Compose
- Không có mẫu pull request
- Đọc hướng dẫn đóng góp
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/esm-integration
-
Độ khó 5/5 Hơn một tuần Mức phù hợp với người mới 30/100
WebAssembly/esm-integration#122 ·
-
Supporting WebAssembly.JSTag importCó thể đã có người làm @guybedford đã nhận 190 ngày trước. Đang mở
Độ khó 5/5 Hơn một tuần Mức phù hợp với người mới 35/100
WebAssembly/esm-integration#120 ·
-
Độ khó 5/5 Hơn một tuần Mức phù hợp với người mới 35/100
WebAssembly/esm-integration#119 ·
-
String Constants BikeshedĐang mở
Độ khó 5/5 Hơn một tuần Mức phù hợp với người mới 25/100
WebAssembly/esm-integration#118 · 10 bình luận ·
-
Worker imports & memory sharingĐang mở
Độ khó 5/5 Hơn một tuần Mức phù hợp với người mới 25/100
WebAssembly/esm-integration#112 · 9 bình luận ·
Tất cả issue của WebAssembly/esm-integration
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