Building an Extension API using Wasm

@Max_Desiatov I really enjoyed your talk on WebAssembly for Swift at SwiftLeeds!

We’re starting work on an Extension API for CodeEdit, an open-source code editor built in Swift. Your insights have confirmed that Wasm could really be a great fit.

This is a big effort, and @thecoolwinter and I will be collaborating closely with the larger community to shape a technical plan and move the project forward.

As this is an open source project, would anyone here be open to helping us move in the right direction as we get started? Our project is here if you’d like to take a look:

6 Likes

Are you looking to use WASMKit and WIT?

WASMkit is fairly easy to integrate but I haven’t tried the WIT codegen yet.

Do you already know what plugin API you want to offer? If so I think getting that into WIT is probably a useful step.

We're excited by the recent performance improvements to WASMKit and we're hoping to use that.

WIT makes sense for our use case I think. We don't have a specific API in mind yet, and working to design our plugin API is half of what we're looking for help on. We'd also ideally like to support multiple languages by providing a WASM API they can compile to which, correct me if I'm wrong, would be facilitated by WIT.