Stdlib and runtime tests for Wasm/WASI now available on Swift CI

This is super exciting, was just looking into using WebAssembly for a plugin system in a project I'm working on; the ability to write plugins in Swift really brings things full circle. Very curious about the scope for using WebAssembly in and around the Swift compiler/tooling ecosystem:

  1. Can the team share whether there's been movement on the GSoC project to build macros with WebAssembly? This sounds like the much-needed remedy for macro build times.

  2. Is there any chance we'll see the Swift compiler bootstrapped with WebAssembly in the future? Zig followed this approach to remove their entire C++ compiler implementation; would be great to see Swift do something similar (even if it's incremental) so that Swift code can be used in lower levels of the compiler.

1 Like