WebAssembly 简介 - 陈思衡Wasm 实例 WebAssembly 简介 WASI 简介 WebAssembly System Interface (简称 WASI),它定义了一组 WASM 模块可以调用的系统调用接口。WASI 的目的是让 WASM 模块可以访问底层系统的功能,比如文件系统、网络等。这使得 WASM 可以作为一个更广泛的 运行时,不仅仅局限于浏览器环境。WASI 当前定义了一组 POSIX 兼容的系统调用 模块可以访问文件系 统。未来 WASI 还会加入更多系统接口,为 WASM 提供更广泛的系统访问能力。 WebAssembly 介绍 Photo / image / chart WASI 的本质就是一套 host 提供的 function。 与开发者自行提供的 host function 相比, WASI 在 Rust 被内置在 std 中。 WASI 实例 WASI 简介 WASM 的应用场景 的应用场景 WASM 使用场景和问题 由于 WASI ,WASM 不仅可以在浏览器中运行,其作为一种通用二进制格式,也适用于浏览器外的许多场景: 1. 物联网设备: WASM 体积小、加载快,很适合运行在物联网设备上。使用 WASM 可以让这些设备运行更复杂的逻 辑,实现设备间的互操作性。 2. 云计算: WASM 模块可以部署在云端运行,为用户提供服务。因为 WASM 是sandbox的,所以可以保证代码的安全0 码力 | 24 页 | 773.46 KB | 1 年前3
05-MoonBit 编程语言(WASM 技术)服务端应用展望以及对Kubernetes生态的影响Web 前端应用实际接受 • 有后端应用潜力,但更多具体疑问仍待解答 • 问题集中在扩展特性(features)、外部语言接口(FFI)、 操作系统界面(system interfaces 或 WASI)上 WASM 后端应用先驱 wasmCloud (CNCF-Sandbox) fermyon/spin WasmEdge (CNCF-Sandbox) • 多数特性已标准化 • 一些特性对后端应用 交换缓冲区和高级数据结构的方法各有不一 WASM 外部语言接口(FFI) • WASI (WebAssembly System Interface) • 用于允许 WASM 代码调用操作系统的能力 (stdout、socket这些) • 目前处在 0.2 预览版 • 功能缺口和争议都很大 WASM 系统接口(WASI) WASM 应用于后端的构想初步存在 但具体的挑战非常巨大 Kubernetes • 平衡代码尺寸和性能 • 按照 WASM 基础规范设计的 FFI 外部语言接口(支持对外 调用和外部回调) • 直接对接 WASM 扩展(例:wasm-gc target) • 直接对接 WASI 系统接口标准 MoonBit 作为 WASM 原生语言的作用 新语言对 WASM 后端技术栈的意义 • 封装,或者说“过顶”开发思路(OTT,over the top) • 有限使用 WASM0 码力 | 30 页 | 3.41 MB | 9 月前3
夏歌-使用Rust构建LLM应用SECTION TITLE SECTION TITLE 我们能不能直接用 Rust • 训练 • 推理 • AI 应用相关的工具 • WASI-NN spec • WasmEdge 已经支持 Pytorch 、 TensorFlow Lite • WASI-NN 2.0 比如 Langchain Rewrite it in Rust • 笨重 • 资源占用多 • 大部分时间是在等待0 码力 | 36 页 | 38.31 MB | 1 年前3
Kotlin 1.9.10 官方文档 中文版
Kotlin/Native Support for Xcode 15 in Kotlin/Native New and renamed targets in Kotlin/Wasm Support for the WASI API in the standard library for Kotlin/Wasm IDE support The Kotlin plugins that support 1.9.20-RC2 projects for Apple operating systems. Kotlin/Wasm New wasm-wasi target, and the renaming of the wasm target to wasm-js Support for the WASI API in standard library Kotlin Wasm is Experimental. It on it in YouTrack. New wasm-wasi target, and the renaming of the wasm target to wasm-js In this release, we're introducing a new target for Kotlin/Wasm – wasm-wasi . We're also renaming the wasm0 码力 | 3753 页 | 29.69 MB | 1 年前3
Kotlin 官方文档中文版 v1.9Kotlin/Native Support for Xcode 15 in Kotlin/Native New and renamed targets in Kotlin/Wasm Support for the WASI API in the standard library for Kotlin/Wasm IDE support The Kotlin plugins that support 1.9.20-RC2 operating systems. Kotlin 1.9.20-RC 93 Kotlin/Wasm New wasm-wasi target, and the renaming of the wasm target to wasm-js Support for the WASI API in standard library Kotlin Wasm is Experimental. It on it in YouTrack. New wasm-wasi target, and the renaming of the wasm target to wasm-js In this release, we're introducing a new target for Kotlin/Wasm – wasm-wasi . We're also renaming the wasm0 码力 | 2049 页 | 45.06 MB | 1 年前3
Apache APISIX 在金山办公的开发和落地实践. • C/C++? 没有 rust 的内存安全,既然要解决 lua 的人因问题就不要引入另一个。rust 和它们 是 ABI 兼容的,它们能做的能用的 rust 也可以。 • WASM/WASI? rust 能够轻松地构建 WASM target,Apache APISIX 支持使用 WASM 做 plugin, 但本身不能轻易地使用 WASM 做扩展。另外 WASM 不是免费的,在极端情况下性0 码力 | 27 页 | 4.88 MB | 1 年前3
openEuler 22.09 技术白皮书统噪声。数控分离的实现主要包括三个方面:隔离计算任务和噪声任务、降低资源竞争、兼容 Linux 生态。 FaaS 服务框架 WASM 镜像仓库 WASM Engine Wasm 函数管理框架 轻量级 Wasm 函数调度框架 WASI API 接口 x86 ARM64 DPU openEuler 函数请求监听 函数生命周期管理 函数镜像管理 WASM A WASM B WASM C WASM D Control Plane0 码力 | 13 页 | 1.39 MB | 1 年前3
共 7 条
- 1













