Semver aware WASI module resolution when dealing with imports
まだ誰も着手していません。
評価
- 難易度
- 4/5
- 見積もり時間
- 3〜5日
- 初心者へのやさしさ
- 56/100
- issue の種類
- 機能追加
- 明瞭さ
- おおむね明確
- 活発さ
- 活発
- 技術スタック
- javascript, rust, wasm
調査の方向性
ComponentizeJS の WASI import 解決パスから開始し、wasi:http/[email protected] のような import に対する既存の直接一致処理を追跡します。完全一致、サポート対象の WASI 2.x 系列内でのアップグレード、互換性のない古いバージョンの拒否について、互換性のある semver の動作を定義します。指定された import がより新しい互換性のある world に対して解決され、jco transpile は対象外のままであれば完了です。
索引モデルが issue の本文から書いたものです。
説明
Right now when building components with ComponentizeJS, we deal with references WASI types via direct match only.
This is usually fine but forces certain versions (the ones supported by StarlingMonkey below) to be used. Ideally we should be able to do an exact match where possible and the fall back to a compatible semver track (usually allowing upgrades but not downgrades) similar to what wasmtime would do.
As WASI 2.x is unlikely to change going forward I think we can now do this pretty definitively here, with minimal changes required for StarlingMonkey as well.
Also note that while this issue is probably going to be unnecessary when the "new" ComponentizeJS lands, this issue is here for tracking purposes just to make sure this
A simple use case is being able to write wasi:http components against any version of 2.x and having that compile (and eventually jco transpile, but that's out of scope here!) properly. Essentially the following should never fail:
import { Fields } from "wasi:http/[email protected]";
(Even if the underlying world is 2.10/2.12, but this should fail if the underlying world is 2.4 probably)
Maybe it should be possible to disable this feature (i.e. supporting very specific imports), but IMO this would be a big DX improvement that is worth doing (maybe we emit some warnings or something if we're worried about it).
- 主要言語
- Rust
- スター
- 404
- フォーク
- 61
- 平均マージ
- 21時間 21分
- マージ済み PR(30日)
- 3
環境構築
このプロジェクトには開発コンテナ、Dockerfile、コントリビューションガイドがありません。まず README を読み、一般的な手順ははじめてのコントリビューションガイドを参照してください。
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
bytecodealliance/ComponentizeJS のほかの issue
-
難易度 4/5 3〜5日 初心者へのやさしさ 48/100
-
難易度 3/5 1〜2日 初心者へのやさしさ 52/100
-
難易度 4/5 3〜5日 初心者へのやさしさ 45/100
-
難易度 4/5 3〜5日 初心者へのやさしさ 48/100
bytecodealliance/ComponentizeJS#335 · コメント 3 件 ·
-
Reproducible buildsオープン
難易度 4/5 3〜5日 初心者へのやさしさ 45/100
bytecodealliance/ComponentizeJS#321 · リアクション 1 件 ·
bytecodealliance/ComponentizeJS の issue をすべて見る
似ている issue
-
難易度 2/5 1〜3時間 初心者へのやさしさ 78/100
メンテナーはふだん 1 日以内に返信
-
Test connection's password prompt says the password is never saved, also for a keychain profileオープンbug
難易度 2/5 1〜3時間 初心者へのやさしさ 76/100
メンテナーはふだん 1 日以内に返信
-
area: settings bug Haiku review: no-score ui
難易度 2/5 1〜3時間 初心者へのやさしさ 78/100
MMFoundation/WallpaperMachine#346 ·
メンテナーはふだん 1 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 78/100
rubys/roundhouse#2473 ·
-
bug mod: quantum info
難易度 2/5 1〜3時間 初心者へのやさしさ 78/100
Qiskit/qiskit#17699 · コメント 2 件 ·
メンテナーはふだん 1 日以内に返信