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: Nov 22 2024 at 16:03 UTC