Get the latest tech news

A Vision for WebAssembly Support in Swift


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...

Combined with the lack of "jump to address" and a limited set of control flow instructions that require explicit labels in the same function body, this makes a certain class of attacks impossible to execute in a correctly implemented spec-compliant WebAssembly runtime. No, it's not a typo, the primary set of patches has been merged to the upstream toolchain for at least a year at this point, which gave interested parties a good amount of time to iterate and improve upon it directly instead of relying on forks. If we had a way to just write "available if the LLVM target triple's OS is this, and the vendor is that, and the environment is this other thing", we'd be able to express much of what's being asked for here †, without having to wait for the compiler to be updated any time a new platform arises.

Get the Android app

Or read this on Hacker News

Read more on:

Photo of Vision

Vision

Photo of webassembly support

webassembly support

Related news:

News photo

Microsoft's latest Copilot updates include a mobile version of the multimodal Vision tool

News photo

Apple brings Apple Intelligence to the Vision Pro

News photo

Vision Pro Creator Taking Over Siri After Apple Intelligence Setbacks