WebAssembly components are the future of plugins
The WebAssembly Component Model lets you write plugins in any language and run them sandboxed. No FFI, no shared memory bugs, just well-typed interfaces. Extism and Spin are already building plugin systems on this foundation.