PoC: Improving macro build times with WebAssembly

This may be going even further off-topic but it feels like everyone is trying to find workarounds for not being able to access swift's built in SwiftSyntax. That's why I wrote Swift macros without requiring swift-syntax last year and why I tried to discuss Passing Syntax directly to the macro without swift-syntax a few days ago, and this project, and I assume many more POCs.

Alas, I'm not sure what that means for [Macros] Add support for wasm macros by kabiroberai · Pull Request #73031 · swiftlang/swift · GitHub as it seems the "official" position from Apple is that:

Maybe it's time to ship SwiftSyntax directly with swift as a binary library just like Foundation :man_shrugging:t2:

6 Likes