component-model
component-model copied to clipboard
Repository for design and specification of the Component Model
Based on discussions in [wasi-http/#8](https://github.com/WebAssembly/wasi-http/issues/8), we should consider a return-value optimization that avoids calling `realloc` by instead allowing the core wasm caller to supply a (buffer, length) `i32` pair as...
Per the explainer, `word`s can only contain the ASCII letters and numbers, and must start with a letter. Also per the explainer, tuples map to records whose field names are...
The [Canonical ABI says](https://github.com/WebAssembly/component-model/blob/main/design/mvp/CanonicalABI.md#loading) > Integer-to-boolean conversions treats 0 as false and all other bit-patterns as true Why does it work this way, instead of doing `trap_if(i >= 2)` similar...
No production rule or definition exists for the `resource-item` term.
Currently I believe the intention for validation of instantiating a component within a component is along the lines of "iterate over all the imports and make sure something is supplied...
This issue captures the motivation, summary and sketch of an idea for improving how snapshots work in the component model. ## Motivation There are a number of scenarios where we'd...
I'm proposing an addition to the current syntax to support default implementations for functions. Sometimes a function isn't required to be implemented and its return could be substituted for a...
Strings in the component model are represented as pointers with a length and are allocated into component memory via the cabi_realloc function provided by the component. When interfacing with APIs...
Not pressing by any means, more nice-to-have, but thought I'd post while I'm thinking about it. Just like one can define an inline tuple or result, it could be useful...
Came up in considering options for representing enums like: ``` enum tls-version { tls1, tls1-1, tls1-2, tls1-3 } ``` where it would be useful to be able to write an...