A Vision for WebAssembly Support in Swift
Published on: 2025-05-12 00:58:18
As WebAssembly support has been developed by the Swift community and significantly improved over the years, I would like to put up a pitch for a vision describing WebAssembly support in Swift. Your feedback would be highly appreciated! Full vision text is included below, while the corresponding PR is also available on GitHub.
Introduction
WebAssembly (abbreviated Wasm) is a virtual machine instruction set focused on portability, security, and high performance. It is vendor-neutral, designed and developed by W3C. An implementation of a WebAssembly virtual machine is usually called a WebAssembly runtime.
One prominent spec-compliant implementation of a Wasm runtime in Swift is WasmKit. It is available as a Swift package, supports multiple host platforms, and has a simple API for interaction with guest Wasm modules.
An application compiled to a Wasm module can run on any platform that has a Wasm runtime available. Despite its origins in the browser, it is a general-purpose technology
... Read full article.