-
-
Notifications
You must be signed in to change notification settings - Fork 2
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Suggestion: WebAssembly Plugins #2
Comments
Thank you for sharing, James! WASM was on my radar though I have to admit I don't know a whole lot about it. |
@jameschensmith I have some rudimentary prompt that uses WASM plugins at its core but is written in Rust. It was my attempt at making Jokes aside, I wanted to chime in to call attention to plugins that would require to run native code. For example the battery plugin or the hostname plugin. Both rely on the interaction with the OS and aren't really pure by means of having some input file they process to get a corresponding output. This can be circumvented to some degree by using WASI and allowing plugins read-access to a directory or specific file. That way most of the language modules would work. Something to keep in mind is that the responsiveness of prompts is important. Since |
Perhaps this can be revisited, making use of Extism. |
I stumbled across this series of blog posts on Rust plugin architecture recently, and I thought I would bring it up here since it's relevant to the proof-of-concept. I personally thought the WebAssembly (WASM) method was an interesting approach. In fact, that's actually the approach taken by dprint.
Looking forward to a more modular starship prompt! 🚀
The text was updated successfully, but these errors were encountered: