SteveSandersonMS / dotnet-wasi-sdk

Packages for building .NET projects as standalone WASI-compliant modules
519 stars 36 forks source link

DLL functionality with wasm-files #44

Open blankensteiner opened 2 years ago

blankensteiner commented 2 years ago

Hi

Is it part of the roadmap to be able to handle wasm-files as you can with dll-files today, in regards to running a .NET application and be able to:

  1. Load a wasm-file (written in another language)
  2. Use reflection to find something implementing an "interface" (or an "export")
  3. Create an instance of that "class" and call methods (or calling static functions)

I could see multiple use cases for that functionality. Creating a C# host that allows for externals to implement some specification and dynamically load the third-party modules/wasm-files.

If not possible using the .NET runtime, then with the application compiled as a wasm-application and dynamically loading and using wasm-files written in other languages.

Best regards db