Is it possible at the moment to make a plugin syst...
# webassembly
d
Is it possible at the moment to make a plugin system for a Kotlin application utilizing wasm (considering wip/published code and not kotlin release)? The general idea is that the plugins will be written in Kotlin and exported as wit. And a Kotlin host will run it (not limited to one) and also supply it with all the necessary imports. Is the blocker to do so the missing support for wasip2? I've seen chasm in the past and it doesn't seem to have wasi support yet (waiting for Kotlin to support wasip2 if I'm not wrong). I've also seen the new brevity library but due to lack of documentation (which is understandable) I've not followed up on it. Can someone point me in the right direction (or the relevant issues that I should follow) to achieve my goal? Thanks.
d
I've also been wanting to do that for wrapping non-trusted tools and agents. I did not follow up yet but have been watching a bit about what's happening around. I have seen a post in #C0BJ0GTE2 or #CDFP59223 about something similar to that idea, but I can't seem to put my hand on it again. I am interested in that too anyway.
j
It isn't Wasm but Zipline does this. https://github.com/cashapp/zipline
❤️ 1
If you want to really use this you might need to fork it! Our friends at Cash App don't intend to continue using this thing indefinitely
s
there is also a wasm version: github.com/crowforkotlin/wasmline
❤️ 1