3 ms·
I got blocked writing high level wasm bindings with types other than int or float, is this still the case?
by iFire 1y ago
I got blocked writing high level wasm bindings with types other than int or float, is this still the case?
- marianoguerra 1y agowith the wasm-gc proposal you get access to structs and arrays: https://github.com/WebAssembly/gc/blob/main/proposals/gc/Overview.md https://github.com/WebAssembly/gc/blob/main/proposals/gc/Ove... with the component model's wit you get higher level types like enums, option, result and generics: https://component-model.bytecodealliance.org/design/wit.html https://component-model.bytecodealliance.org/design/wit.html
- singularity2001 1y agono you don't , these types are unfortunately opaque only internally usable.
- mamidon 1y agoIt's more accurate to say those do the boilerplate of memory access necessary for complex types for you. You're still basically limited to integers and floats. But when you think about it, isn't that basically true for native languages?