-
Notifications
You must be signed in to change notification settings - Fork 37
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
proposal to add an Extism runtime #78
Comments
Hello @nilslice, Thank you for opening the issue! Extism is a cool project (already knew about it 😄). Unfortunately, I believe that replacing our internal engine to use Extism won't fit with the wws goals.
The idea behind wws is to bring the benefits of WebAssembly to existing serverless projects. Extism supports many languages, although all of the source code must be compiled to wasm in advance. This is something we're trying to avoid so developers don't need to introduce any new toolchain in their current environments. For compiled languages, this is expected. However, for interpreted languages, developers are not used to compile and we want to avoid that step.
Apart from that, this approach gives wws the flexibility to support new languages "on-demand". You have a sneak peak about this on #63 🙂. For this reason, I would say that we don't plan to support different engines for now. I will ping you back in case we extend it in the future. Thank you for being open to collaborate. I will keep an eye on Extism! |
Hey @Angelmmiguel - thanks for the response :) I should clarify:
I didn't mean to imply that this would replace the engine, but rather add another runtime option. Just like you currently have options for Native and JavaScript, one could exist for Extism. But I understand if it doesn't fit with the bigger picture goals -- just figured it could be a nice way to jumpstart lots more language support for I'll take a look at #63. Keep up the good work! |
Thanks for the clarification @nilslice!
Oh I see! Since About Currently, those files are deprecated as the idea is that runtimes configure themselves via metadata. The end goal is to avoid having to release a new version if we add a new language and anyone can configure their own ones.
Likewise! I will keep in mind Extism, and I'll definitely contact you in case it fits here or in other project 😄 |
Extism supports a number of languages quite well, and has a low-level interface which could be adapted to the Reqeuest/Response pattern of wws.
Essentially, the wws HTTP server layer would:
Then any Extism plugin could work as a worker. The plugin would only need to export a
request
function for wws to call, reading the input Request, and setting the output as the Response.Since wws is in Rust, our Rust SDK would be the implementation path: https://extism.org/docs/integrate-into-your-codebase/rust-host-sdk/
And then any of our official PDKs (in 7 languages) could be used to write wws Workers:
https://extism.org/docs/concepts/pdk/
If there is interest, maybe we can collaborate on this. Thanks!
The text was updated successfully, but these errors were encountered: