youtube image
From YouTube: C# and Wasm Interface Types: Hands Across the C - Ivan Towlson, Fermyon

Description

Don’t miss out! Join us at our upcoming event: KubeCon + CloudNativeCon Europe 2023 in Amsterdam, The Netherlands from April 17-21. Learn more at https://kubecon.io​. The conference features presentations from developers and end users of Kubernetes, Prometheus, Envoy, and all of the other CNCF-hosted projects.

C# and Wasm Interface Types: Hands Across the C - Ivan Towlson, Fermyon

Microsoft's .NET WASI preview provides a way to compile C# and F# applications to Wasm. But out of the box it doesn't provide a way to interoperate with Wasm interface types, either exporting interfaces from a component or importing implementations from a host or other Wasm modules. Yet interface types are becoming the standard for hosting and composing Wasm modules. So how can C# developers write components for this ecosystem? And how can platforms and plugin hosts make themselves accessible to C# developers? In this session, Ivan will dive deep into code to show how you can use C code and the .NET embedding API to bridge between a Wasm interface and .NET user code. The session covers both: * How to export a WIT interface from a .NET library, so it can function as a plugin or guest module * How a .NET library can access a WIT interface defined by a host or another Wasm module (written in any language)