Hacker News new | ask | show | jobs
by marianoguerra 413 days ago
with the wasm-gc proposal you get access to structs and arrays: 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

2 comments

It'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?

no you don't , these types are unfortunately opaque only internally usable.