Plugin system (HIR/MIR)

Would it be possible to ship plugins as HIR or MIR.

Then write a runtime which includes the HIR/MIR compiler and LLVM or Cranelift to do combine the plugins MIR and main code together and build and run it?

TL;DR: Can HIR/MIR replace WASM without the need to deal with ABI and FFI.

Probably not. There's a reason they are called an internal representation.

3 Likes

This topic was automatically closed 90 days after the last reply. We invite you to open a new topic if you have further questions or comments.