(no title)
abendstolz | 9 months ago
But I prefer the wasmtime webassembly component model approach these days.
Built a plugin system with that, which has one major upside in my book:
No stringly function invocation.
Instead of run_function("my-function-with-typo") I have a instantiated_plugin.my_function call, where I can be sure that if the plugin has been instantiated, it does have that function.
bobajeff|9 months ago
abendstolz|9 months ago
I manually compile a plugin and in my system I can "refresh" a plugin and even say "activate version 1.1 of the plugin" or "activate version 1.2" of the plugin etc.
But that's something I had to build myself and is not built into wasmtime itself.
zamalek|9 months ago
abendstolz|9 months ago
I assume you wouldn't ship the whole plugin runtime for each plugin that wants to host another plugin?!
90s_dev|9 months ago
abendstolz|9 months ago
If of course I put a wasm file in the plugin folder that doesn't adhere to that definition, that wasm file isn't considered a plugin.