-
Notifications
You must be signed in to change notification settings - Fork 259
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
Plans to support component model? #2200
Comments
We currently do not have sharable roadmaps in this regard. |
sorry the answer is definitely no until it is standardized in the w3c recommendation, which I don't think will happen in at least for the next 5 years or so. |
Thanks for your replies. In the absence of component model support in the foreseeable future, do you have any other approach in mind for making it easier to support complex parameter types? For Rust/Go its not so bad as we can malloc/free in the module do unsafe casts to memory but this isn't possible in all languages that have WASM support, thus making them pretty much unusable for use cases such as user defined functions running in a database (unless all params are int/float which is extremely restrictive) |
usually people provide a form of SDK and hide the serialization routines from the end users. Some approaches I have seen in the wild are based e.g. on protobuf (although generated code tends to be large) for instance see https://github.com/knqyf263/go-plugin or other serialization formats. If performance is not an issue I personally have used JSON because all languages have built-in support for it (especially on POCs) Also, you might want to checkout Extism, their Go runtime is based on wazero. Their solution is probably a bit more opinionated than just a library, but it might be a good fit depending on your workload; personally I like it https://extism.org/docs/concepts/host-sdk |
@purplefox - if I may add another suggestion here, we recently added support to Extism (a universal wasm plugin system) for rich types using an open schema (similar to OpenAPI) called XTP Schema. You can read about it here: https://extism.org/blog/announcing-xtp-bindgen as well as its official docs at https://docs.xtp.dylibso.com/docs/concepts/xtp-schema Using the For more information about it, how we support XTP, and the motivation behind it, you can also check out this recent post about our platform, however all XTP schema and code generators are free and open source: https://www.getxtp.com/blog/meet-xtp |
Hi All,
Sorry for using an issue to ask a question, but didn't know how else to do this.
I started using wazero recently as a way to run custom functions in the database we are building. My experience so far is very positive!
Do you have plans to support component model, so we can have a standard, non custom way to pass complex types (strings, byte arrays etc) to and from wasm modules? Any timeline for this?
The text was updated successfully, but these errors were encountered: