C# and Wasm Interface Types: Hands Across the C
summary
Shows a working bridge where C# assemblies run under the .NET WASI preview and interoperate with Wasm Interface Types via C glue and the .NET embedding API. Uses wit-bindgen-generated C glue and wasi-sdk + clang to export a console WIT interface and import host services; a Rust host calls the exported function. Demonstrates a live example, measures ~30–40 ms cold startup mitigated by wiser snapshot warmstart, 20 MB module size, and ongoing stability/tooling gaps.
AI-written summary · about
chapters (5)
- 0:00Introduction to C# and WebAssembly
- 2:10Evolution of .NET and Wasm
- 8:38Building Wasm interop
- 27:46Challenges and future
- 31:11Conclusion
related talks
37mExploring C# Wasm Components
32mBringing WebAssembly outside the web with WASI
53mUsing WebAssembly to run, extend, and secure your .NET application
43mMeet Your Future - WebAssembly
48mWebAssembly Beyond the Browser
50mWeb Assembly
55mUsing WebAssembly to run, extend, and secure your .NET application
35mWASI to Go: Write Once, Go Anywhere
