Our great sponsors
-
InfluxDB
Power Real-Time Data Analytics at Scale. Get real-time insights from all types of time series data with InfluxDB. Ingest, query, and analyze billions of data points in real-time with unbounded cardinality.
It is depend on what you are trying to do. If the plugin don't need a direct access to the OS by themself WebAssembly might be a good choice. Currently I'm working on https://github.com/locenv/locenv but my project required a scripting, not the compiled code; and it also required the plugin to be able to direct access to the OS so I choose Lua as a scripting language and the plugin can be written in any languages that can output a shared library.
I came across this library lately which might be close to what you’re looking for: https://github.com/rhaiscript/rhai
The boilerplate sucks, but it works well when you don't need a ton of different functions. I use wasm as a scripting language for running isolated untrusted scripts in a game I'm developing, and it works really well https://github.com/JMS55/botnet.
The component model combines aspects of Interface types as well as Module Linking: https://github.com/WebAssembly/proposals/blob/main/inactive-proposals.md
Cap'n Proto seems really promising, although I haven't played a lot with it yet. I really like it so far though: https://capnproto.org/
Checkout https://github.com/fiberplane/fp-bindgen