Hacktoberfest 2026:维护者为十月标记出来的 issue,仍然开放、适合新手。 浏览 Hacktoberfest issue

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

未关闭
#45 2 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看

还没有人认领这个 Issue。

评估

难度
5/5
预计耗时
一周以上
新手友好度
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

环境准备

  • 没有 Dockerfile 或 Docker Compose 文件
  • 没有 Pull Request 模板
  • 阅读贡献指南

从这里开始

  1. 先读完整个 Issue,再读项目的贡献指南。
  2. 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
  3. Fork 仓库,在一个分支上完成修改。
  4. 提交 Pull Request,并在描述里引用这个 Issue 编号。

bytecodealliance/wizer 的其他 Issue

查看 bytecodealliance/wizer 的全部 Issue

相似的 Issue

更多 Rust Issue

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。