|
|
|
|
|
by flohofwoe
98 days ago
|
|
> "obviously we just need a hub-and-spoke architecture where there's a common intermediate representation for all these types" I'm perfectly happy with integers and floats as common interface types (native ABIs also only use integers and floats: pointers are integer-indices into memory, and struct offsets need to be implicitly known and compiled into the caller and callee). The WASM Component Model looks like a throwback to the 1990s when component object models where all the rage (COM, CORBA, and whatnot). |
|
Most people at least want strings too. And once you add strings, you need to make sure the format is correct (JS uses UTF-16, C uses NULL-termination, etc). So even if you don't allow a complex object model, you would still need N^2 glue systems just for strings.
Then you might as well add arrays too.
Before you know it, you end up with the component model.