Hacktoberfest 2026:メンテナが10月に向けて印を付けた、オープンで初心者向けの issue。 Hacktoberfest の issue を見る

JS glue code to lazily run wizer in browser after first load

オープン
#45 コメント 2 件 リアクション 0 件 担当者 0 名 GitHub で見る

まだ誰も着手していません。

評価

難易度
5/5
見積もり時間
1週間以上
初心者へのやさしさ
25/100
issue の種類
機能追加
明瞭さ
説明が足りない
活発さ
停滞
技術スタック
javascript, wasm

調査の方向性

この Issue ではリポジトリのファイルやテストが指定されていません。まず、JavaScript Wizer wrapper、web worker、IndexedDB cache に対して提案されているブラウザフローを確認し、それが既存の Wizer および WebAssembly インターフェースにどのように適合するかを判断します。最初の読み込みが引き続き機能し、その後の読み込みでは、提案されている帯域幅コストをかけずに遅延生成されたキャッシュ済みモジュールを使用できれば完了です。

索引モデルが issue の本文から書いたものです。

説明

There are concerns with the emscripten Godot project that the snapshot will increase bandwidth usage too much. (emscripten support is a separate issue)

For the subset of programs that:

  1. Wizer unreasonably increases bandwidth usage.
  2. Want fast page refreshes.

I believe the following would fix the bandwidth problem without undo start delay.

  1. Project Devs code their WASM's start function for wizer use.
  2. Project Devs use a small wizer JS wrapper to request the instance of the wasm module.
  3. Wrapper just passes through to any cached wasm module the following steps created.
  4. If there isn't a cache, instantiate the downloaded wasm.
  5. Run the deterministic start function.
  6. Send a snapshot of the instance's memory to a web worker.
  7. Run the remaining non-deterministic start function then return the instance like wizer wrapper didn't exist.
  8. Lazily in the webworker, download wizer compiler.
  9. Lazily use the snapshot to create a new stripped wasm module and save it into indexeddb.

If even step 6 is too much, then:

  1. Skip copying the snapshot in step 6 when loading the webpage for the first time.
  2. Lazily in the web worker create an entirely separate wasm module and start again from Step 4.
主要言語
Rust
スター
1.1k
フォーク
64
PR マージ指標
30日以内にマージされた PR はありません

環境構築

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

bytecodealliance/wizer のほかの issue

bytecodealliance/wizer の issue をすべて見る

似ている issue

Rust の issue をもっと見る

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。