wasi-gfx 与 wasi:webgpu 的未来
The Future of wasi-gfx and wasi:webgpu

原始链接: https://wasi-gfx.dev/blog/posts/future-of-wasi-gfx/

为了平衡快速 UI 开发需求与 WASI 长期架构稳定性,Sean Isom 和 Mendy Berger 正在重构 WASI 图形生态系统。 该策略的核心在于将底层标准与更高层、不断演进的接口分离开来。**wasi:webgpu** 将保留在官方 WASI 命名空间内,因为它与稳定且符合行业标准的 WebGPU 规范保持一致。目前,该项目正朝着异步支持及完全符合 WebGPU 一致性测试套件的方向发展。 与此同时,**wasi:surface** 和 **wasi:frame-buffer** 等高层接口将从官方 WASI 命名空间中移出,进入一个新的、独立的 **wasi-gfx** 命名空间。这种转变允许更快的迭代和更高的灵活性,效仿了 wasmCloud 等项目所采用的基于生态系统的模型。因此,**wasi:graphics-context** 将被弃用,以支持更简洁的架构方案。 现有的工具(wasi-gfx-runtime 和 wasi-gfx-shim)将继续支持这两个命名空间。该项目还启用了新图标,并将社区中心迁移至 Renderlet Discord 服务器。这种分离确保了基础 WASI 标准和创新图形生态系统都能获得发展的空间。

```Hacker News新消息 | 过往 | 评论 | 提问 | 展示 | 招聘 | 提交登录wasi-gfx 和 wasi:webgpu 的未来 (wasi-gfx.dev)8 分,mendyberger 发布于 1 小时前 | 隐藏 | 过往 | 收藏 | 讨论帮助 指南 | 常见问题 | 列表 | API | 安全 | 法律 | 申请 YC | 联系 搜索:```
相关文章

原文

Over the past few years, we’ve been working to bring graphics to WebAssembly through wasi:webgpu, wasi:surface, wasi:frame-buffer, and wasi:graphics-context.

Through this process, it has become clear that the long-term stability goals of the core WASI subgroup and our needs for rapid iteration on UI interfaces are incompatible. WASI aims for decade-long architectural stability. In contrast, interfaces like wasi:surface still require significant evolution.

As the Wasm Component Model matures, we see a healthy shift toward projects building distinct ecosystems outside the official WASI namespace — such as the cloud-native wasmcloud:secrets, wasmcloud:messaging and wasmcloud:postgres interfaces developed by CNCF wasmCloud. Think of WASI as an operating system's standard library (handling low-level basics like time and filesystem), while specialized domains like graphics and database drivers belong in user-space libraries.

With WebGPU reaching stability as a W3C Candidate Recommendation, wasi:webgpu should continue to live in the wasi namespace as a low-level industry standard. The rest of wasi-gfx will be lifted out to its own namespace and governance to be built on top of this foundation as a complementary set of higher-level proposals that will continue to evolve.

Here is how we are splitting the path forward to give both ecosystems room to thrive.

The Plan for wasi:webgpu

Because wasi:webgpu is fundamentally mapped to the WebGPU web standard, its foundation is inherently stable. It will remain an official WASI specification.

  • Async Support: We are actively moving the specification to P3 to leverage native Wasm async capabilities.
  • Compliance: Work is underway to ensure we pass the official WebGPU Conformance Test Suite (CTS). We expect to share updates on this soon.

For context on this architectural split, you can read through the wasi-gfx GitHub discussion, where the push to separate core WebGPU from windowing surfaces began.

Deprecating wasi:graphics-context

Previously, wasi:graphics-context served as the connection point between WebGPU, frame-buffers, and surfaces. However, we have found a much cleaner design outlined in GitHub Issue #55. We are officially deprecating wasi:graphics-context since we can now achieve the same goals without it.

The Birth of the wasi-gfx Namespace

What happens to wasi:surface and wasi:frame-buffer? They aren't going anywhere — they are just getting a new home.

We are moving these interfaces out of the core WASI standard and into their own dedicated namespace: wasi-gfx (i.e., wasi-gfx:surface, wasi-gfx:frame-buffer). We chose this name to reflect our absolute commitment to building on top of the Wasm Component Model and the broader WebAssembly ecosystem.

This transition gives us incredible advantages:

  • Faster Iteration: We can version interfaces like a nimble library rather than a rigid standard.
  • Future Flexibility: This ecosystem structure will enable experimentation with other UI application interfaces, like audio or camera.

Continued Tooling Support

Our implementation tooling — including wasi-gfx-runtime and wasi-gfx-shim — will continue to fully support wasi:webgpu and the new wasi-gfx namespace side by side. Expect work on this to start landing over the next few weeks.

A New Logo

We're excited to unveil a brand-new logo for wasi-gfx! As we establish our own namespace and identity, it felt like the right time for a fresh visual mark to represent the project.

wasi-gfx logo

Thanks to Abe Massry for designing and illustrating the logo — we love how it turned out!

A Place to Gather

Recently, the Renderlet Discord server has organically become the de facto meeting place for a couple of passionate engineers working on this effort. We’re making it official: the Renderlet Discord is now the official wasi-gfx server. If you want to chat about Wasm graphics or help contribute, come join us!

联系我们 contact @ memedata.com