The exclusion of recursion in types seems to make it impossible to model tree structures in WIT, or ASTS, or even a simple data format like JSON. Am I missing something? How would I define JSON or SExpressions in WIT?
https://github.com/WebAssembly/component-model/issues/56
Thanks
Depending on your exact requirements, the 3 alternatives I'd suggest are:
I'm using MessagePack because that is supported by several possible guest languages, but bincode is probably the most efficient format (rust only)
I'm serializing a (possibly) recursive structure as JSON and sending a string
across the wit boundary and it's working great.
Last updated: Dec 23 2024 at 12:05 UTC