alexcrichton labeled issue #4185:
This is intended to be a tracking issue for the implementation of the component model proposal of WebAssembly. I'm in the progress of implementing this with work in Wasmtime starting at https://github.com/bytecodealliance/wasmtime/pull/4005 and continuing in further PRs. I hope to leave checkbox items here to ensure I don't forget about them and to also track the progress of implementing the component model.
Items to be implemented
- [x] Text format parsing
- [x] Validation in
wasmparser
- [x] Basic infrastructure in the
component
submodule of thewasmtime
crate- [x] Basic instantiation with zero imports
- [ ] Extracting a function and calling it with a static signature
- [ ] Calling a function with a "dynamic" signature
- [ ] Importing host functions into a component
- [ ] Importing host instances (bundles of host functions) into a component
- [ ] Importing a wasm module into a component
- [ ] Exporting a module from a component
- [ ] Nested component compilation
- [ ] Nested component instantiation
- [ ] Outer component aliases
- [ ] Exporting a component from a component
- [ ] Component-to-component adapters (this is a huge work item implying an entire compiler for adapter trampolines)
- [ ] String support for utf16+latin1 (omitted from #4039)
Unsure how to implement so far
- Everything with
value
ranging from imports to exports to thestart
functionNot planned at this time
- Importing component-defined functions into a component without any extra copies to the host
- Importing component instances directly into other components
alexcrichton opened issue #4185:
This is intended to be a tracking issue for the implementation of the component model proposal of WebAssembly. I'm in the progress of implementing this with work in Wasmtime starting at https://github.com/bytecodealliance/wasmtime/pull/4005 and continuing in further PRs. I hope to leave checkbox items here to ensure I don't forget about them and to also track the progress of implementing the component model.
Items to be implemented
- [x] Text format parsing
- [x] Validation in
wasmparser
- [x] Basic infrastructure in the
component
submodule of thewasmtime
crate- [x] Basic instantiation with zero imports
- [ ] Extracting a function and calling it with a static signature
- [ ] Calling a function with a "dynamic" signature
- [ ] Importing host functions into a component
- [ ] Importing host instances (bundles of host functions) into a component
- [ ] Importing a wasm module into a component
- [ ] Exporting a module from a component
- [ ] Nested component compilation
- [ ] Nested component instantiation
- [ ] Outer component aliases
- [ ] Exporting a component from a component
- [ ] Component-to-component adapters (this is a huge work item implying an entire compiler for adapter trampolines)
- [ ] String support for utf16+latin1 (omitted from #4039)
Unsure how to implement so far
- Everything with
value
ranging from imports to exports to thestart
functionNot planned at this time
- Importing component-defined functions into a component without any extra copies to the host
- Importing component instances directly into other components
alexcrichton labeled issue #4185:
This is intended to be a tracking issue for the implementation of the component model proposal of WebAssembly. I'm in the progress of implementing this with work in Wasmtime starting at https://github.com/bytecodealliance/wasmtime/pull/4005 and continuing in further PRs. I hope to leave checkbox items here to ensure I don't forget about them and to also track the progress of implementing the component model.
Items to be implemented
- [x] Text format parsing
- [x] Validation in
wasmparser
- [x] Basic infrastructure in the
component
submodule of thewasmtime
crate- [x] Basic instantiation with zero imports
- [ ] Extracting a function and calling it with a static signature
- [ ] Calling a function with a "dynamic" signature
- [ ] Importing host functions into a component
- [ ] Importing host instances (bundles of host functions) into a component
- [ ] Importing a wasm module into a component
- [ ] Exporting a module from a component
- [ ] Nested component compilation
- [ ] Nested component instantiation
- [ ] Outer component aliases
- [ ] Exporting a component from a component
- [ ] Component-to-component adapters (this is a huge work item implying an entire compiler for adapter trampolines)
- [ ] String support for utf16+latin1 (omitted from #4039)
Unsure how to implement so far
- Everything with
value
ranging from imports to exports to thestart
functionNot planned at this time
- Importing component-defined functions into a component without any extra copies to the host
- Importing component instances directly into other components
alexcrichton edited issue #4185:
This is intended to be a tracking issue for the implementation of the component model proposal of WebAssembly. I'm in the progress of implementing this with work in Wasmtime starting at https://github.com/bytecodealliance/wasmtime/pull/4005 and continuing in further PRs. I hope to leave checkbox items here to ensure I don't forget about them and to also track the progress of implementing the component model.
Items to be implemented
- [x] Text format parsing
- [x] Validation in
wasmparser
- [x] Basic infrastructure in the
component
submodule of thewasmtime
crate- [x] Basic instantiation with zero imports
- [ ] Extracting a function and calling it with a static signature
- [ ] Calling a function with a "dynamic" signature
- [ ] Importing host functions into a component
- [ ] Importing host instances (bundles of host functions) into a component
- [ ] Importing a wasm module into a component
- [ ] Exporting a module from a component
- [ ] Nested component compilation
- [ ] Nested component instantiation
- [ ] Outer component aliases
- [ ] Exporting a component from a component
- [ ] Component-to-component adapters (this is a huge work item implying an entire compiler for adapter trampolines)
- [ ] String support for utf16+latin1 (omitted from #4039)
- [ ] Support for memory64 in adapters and such
Unsure how to implement so far
- Everything with
value
ranging from imports to exports to thestart
functionNot planned at this time
- Importing component-defined functions into a component without any extra copies to the host
- Importing component instances directly into other components
alexcrichton edited issue #4185:
This is intended to be a tracking issue for the implementation of the component model proposal of WebAssembly. I'm in the progress of implementing this with work in Wasmtime starting at https://github.com/bytecodealliance/wasmtime/pull/4005 and continuing in further PRs. I hope to leave checkbox items here to ensure I don't forget about them and to also track the progress of implementing the component model.
Items to be implemented
- [x] Text format parsing
- [x] Validation in
wasmparser
- [x] Basic infrastructure in the
component
submodule of thewasmtime
crate- [x] Basic instantiation with zero imports
- [ ] Extracting a function and calling it with a static signature
- [ ] Calling a function with a "dynamic" signature
- [ ] Importing host functions into a component
- [ ] Importing host instances (bundles of host functions) into a component
- [ ] Importing a wasm module into a component
- [ ] Exporting a module from a component
- [ ] Nested component compilation
- [ ] Nested component instantiation
- [ ] Outer component aliases
- [ ] Exporting a component from a component
- [ ] Component-to-component adapters (this is a huge work item implying an entire compiler for adapter trampolines)
- [ ] String support for utf16+latin1 (omitted from #4039)
- [ ] Support for memory64 in adapters and such
- [ ] Post-return functions
Unsure how to implement so far
- Everything with
value
ranging from imports to exports to thestart
functionOpen questions
- How to optimize passing
&[u8]
to WebAssembly to amemcpy
?- How to handle validation of
Value<T>
coming out of wasm?Not planned at this time
- Importing component-defined functions into a component without any extra copies to the host
- Importing component instances directly into other components
alexcrichton edited issue #4185:
This is intended to be a tracking issue for the implementation of the component model proposal of WebAssembly. I'm in the progress of implementing this with work in Wasmtime starting at https://github.com/bytecodealliance/wasmtime/pull/4005 and continuing in further PRs. I hope to leave checkbox items here to ensure I don't forget about them and to also track the progress of implementing the component model.
Items to be implemented
- [x] Text format parsing
- [x] Validation in
wasmparser
- [x] Basic infrastructure in the
component
submodule of thewasmtime
crate- [x] Basic instantiation with zero imports
- [ ] Extracting a function and calling it with a static signature
- [ ] Calling a function with a "dynamic" signature
- [ ] Importing host functions into a component
- [ ] Importing host instances (bundles of host functions) into a component
- [ ] Importing a wasm module into a component
- [ ] Exporting a module from a component
- [ ] Nested component compilation
- [ ] Nested component instantiation
- [ ] Outer component aliases
- [ ] Exporting a component from a component
- [ ] Component-to-component adapters (this is a huge work item implying an entire compiler for adapter trampolines)
- [ ] String support for utf16+latin1 (omitted from #4039)
- [ ] Support for memory64 in adapters and such
- [ ] Post-return functions
- [ ] Support for
record
types- [ ] Support for
variant
types- [ ] Support for
enum
types- [ ] Support for
union
types- [ ] Support for
flags
typesUnsure how to implement so far
- Everything with
value
ranging from imports to exports to thestart
functionOpen questions
- How to optimize passing
&[u8]
to WebAssembly to amemcpy
?- How to handle validation of
Value<T>
coming out of wasm?Not planned at this time
- Importing component-defined functions into a component without any extra copies to the host
- Importing component instances directly into other components
alexcrichton edited issue #4185:
This is intended to be a tracking issue for the implementation of the component model proposal of WebAssembly. I'm in the progress of implementing this with work in Wasmtime starting at https://github.com/bytecodealliance/wasmtime/pull/4005 and continuing in further PRs. I hope to leave checkbox items here to ensure I don't forget about them and to also track the progress of implementing the component model.
Items to be implemented
- [x] Text format parsing
- [x] Validation in
wasmparser
- [x] Basic infrastructure in the
component
submodule of thewasmtime
crate- [x] Basic instantiation with zero imports
- [ ] Extracting a function and calling it with a static signature
- [ ] Calling a function with a "dynamic" signature
- [ ] Importing host functions into a component
- [ ] Importing host instances (bundles of host functions) into a component
- [ ] Importing a wasm module into a component
- [ ] Exporting a module from a component
- [ ] Nested component compilation
- [ ] Nested component instantiation
- [ ] Outer component aliases
- [ ] Exporting a component from a component
- [ ] Component-to-component adapters (this is a huge work item implying an entire compiler for adapter trampolines)
- [ ] String support for utf16+latin1 (omitted from #4039)
- [ ] Support for memory64 in adapters and such
- [ ] Post-return functions
- [ ] Support for
record
types- [ ] Support for
variant
types- [ ] Support for
enum
types- [ ] Support for
union
types- [ ] Support for
flags
typesUnsure how to implement so far
- Everything with
value
ranging from imports to exports to thestart
functionOpen questions
- How to optimize passing
&[u8]
to WebAssembly to amemcpy
?- How to handle validation of
Value<T>
coming out of wasm?Not planned at this time
- Importing component-defined functions into a component without any extra copies to the host
- Importing component instances directly into other components
alexcrichton edited issue #4185:
This is intended to be a tracking issue for the implementation of the component model proposal of WebAssembly. I'm in the progress of implementing this with work in Wasmtime starting at https://github.com/bytecodealliance/wasmtime/pull/4005 and continuing in further PRs. I hope to leave checkbox items here to ensure I don't forget about them and to also track the progress of implementing the component model.
Items to be implemented
- [x] Text format parsing
- [x] Validation in
wasmparser
- [x] Basic infrastructure in the
component
submodule of thewasmtime
crate- [x] Basic instantiation with zero imports
- [x] Extracting a function and calling it with a static signature
- [ ] Calling a function with a "dynamic" signature
- [ ] Importing host functions into a component
- [ ] Importing host instances (bundles of host functions) into a component
- [ ] Importing a wasm module into a component
- [ ] Exporting a module from a component
- [ ] Nested component compilation
- [ ] Nested component instantiation
- [ ] Outer component aliases
- [ ] Exporting a component from a component
- [ ] Component-to-component adapters (this is a huge work item implying an entire compiler for adapter trampolines)
- [ ] String support for utf16+latin1 (omitted from #4039)
- [ ] Support for memory64 in adapters and such
- [ ] Post-return functions
- [ ] Support for
record
types- [ ] Support for
variant
types- [ ] Support for
enum
types- [ ] Support for
union
types- [ ] Support for
flags
typesUnsure how to implement so far
- Everything with
value
ranging from imports to exports to thestart
functionOpen questions
- How to optimize passing
&[u8]
to WebAssembly to amemcpy
?- How to handle validation of
Value<T>
coming out of wasm?Not planned at this time
- Importing component-defined functions into a component without any extra copies to the host
- Importing component instances directly into other components
alexcrichton edited issue #4185:
This is intended to be a tracking issue for the implementation of the component model proposal of WebAssembly. I'm in the progress of implementing this with work in Wasmtime starting at https://github.com/bytecodealliance/wasmtime/pull/4005 and continuing in further PRs. I hope to leave checkbox items here to ensure I don't forget about them and to also track the progress of implementing the component model.
Items to be implemented
- [x] Text format parsing
- [x] Validation in
wasmparser
- [x] Basic infrastructure in the
component
submodule of thewasmtime
crate- [x] Basic instantiation with zero imports
- [x] Extracting a function and calling it with a static signature
- [ ] Calling a function with a "dynamic" signature
- [ ] Importing host functions into a component
- [ ] Importing host instances (bundles of host functions) into a component
- [ ] Importing a wasm module into a component
- [ ] Exporting a module from a component
- [ ] Nested component compilation
- [ ] Nested component instantiation
- [ ] Outer component aliases
- [ ] Exporting a component from a component
- [ ] Component-to-component adapters (this is a huge work item implying an entire compiler for adapter trampolines)
- [ ] String support for utf16+latin1 (omitted from #4039)
- [ ] Support for memory64 in adapters and such
- [ ] Post-return functions
- [ ] Support for
record
types- [ ] Support for
variant
types- [ ] Support for
enum
types- [ ] Support for
union
types- [ ] Support for
flags
types- [ ] Confirm lowered-then-lifted interpretation of "always trap" is correct
Unsure how to implement so far
- Everything with
value
ranging from imports to exports to thestart
functionOpen questions
- How to optimize passing
&[u8]
to WebAssembly to amemcpy
?- How to handle validation of
Value<T>
coming out of wasm?Not planned at this time
- Importing component-defined functions into a component without any extra copies to the host
- Importing component instances directly into other components
alexcrichton edited issue #4185:
This is intended to be a tracking issue for the implementation of the component model proposal of WebAssembly. I'm in the progress of implementing this with work in Wasmtime starting at https://github.com/bytecodealliance/wasmtime/pull/4005 and continuing in further PRs. I hope to leave checkbox items here to ensure I don't forget about them and to also track the progress of implementing the component model.
Items to be implemented
- [x] Text format parsing
- [x] Validation in
wasmparser
- [x] Basic infrastructure in the
component
submodule of thewasmtime
crate- [x] Basic instantiation with zero imports
- [x] Extracting a function and calling it with a static signature
- [ ] Calling a function with a "dynamic" signature
- [ ] Importing host functions into a component
- [ ] Importing host instances (bundles of host functions) into a component
- [ ] Importing a wasm module into a component
- [ ] Exporting a module from a component
- [ ] Nested component compilation
- [ ] Nested component instantiation
- [ ] Outer component aliases
- [ ] Exporting a component from a component
- [ ] Component-to-component adapters (this is a huge work item implying an entire compiler for adapter trampolines)
- [ ] String support for utf16+latin1 (omitted from #4039)
- [ ] Support for memory64 in adapters and such
- [ ] Post-return functions
- [ ] Support for
record
types- [ ] Support for
variant
types- [ ] Support for
enum
types- [ ] Support for
union
types- [ ] Support for
flags
types- [ ] Confirm lowered-then-lifted interpretation of "always trap" is correct
- [ ] Validate alignment and enable
&[u64]
views and similarUnsure how to implement so far
- Everything with
value
ranging from imports to exports to thestart
functionOpen questions
- How to optimize passing
&[u8]
to WebAssembly to amemcpy
?- How to handle validation of
Value<T>
coming out of wasm?Not planned at this time
- Importing component-defined functions into a component without any extra copies to the host
- Importing component instances directly into other components
alexcrichton edited issue #4185:
This is intended to be a tracking issue for the implementation of the component model proposal of WebAssembly. I'm in the progress of implementing this with work in Wasmtime starting at https://github.com/bytecodealliance/wasmtime/pull/4005 and continuing in further PRs. I hope to leave checkbox items here to ensure I don't forget about them and to also track the progress of implementing the component model.
Items to be implemented
- [x] Text format parsing
- [x] Validation in
wasmparser
- [x] Basic infrastructure in the
component
submodule of thewasmtime
crate- [x] Basic instantiation with zero imports
- [x] Extracting a function and calling it with a static signature
- [ ] Calling a function with a "dynamic" signature
- [ ] Importing host functions into a component
- [ ] Importing host instances (bundles of host functions) into a component
- [ ] Importing a wasm module into a component
- [ ] Exporting a module from a component
- [ ] Nested component compilation
- [ ] Nested component instantiation
- [ ] Outer component aliases
- [ ] Exporting a component from a component
- [ ] Component-to-component adapters (this is a huge work item implying an entire compiler for adapter trampolines)
- [ ] String support for utf16+latin1 (omitted from #4039)
- [ ] Support for memory64 in adapters and such
- [ ] Post-return functions
- [ ] Support for
record
types- [ ] Support for
variant
types- [ ] Support for
enum
types- [ ] Support for
union
types- [ ] Support for
flags
types- [ ] Confirm lowered-then-lifted interpretation of "always trap" is correct
- [ ] Validate alignment and enable
&[u64]
views and similar- [ ] Double-check behavior of traps with respect to validating in-bounds pointers and intermediate writes of params/results when lifting/lowering
Unsure how to implement so far
- Everything with
value
ranging from imports to exports to thestart
functionOpen questions
- How to optimize passing
&[u8]
to WebAssembly to amemcpy
?- How to handle validation of
Value<T>
coming out of wasm?Not planned at this time
- Importing component-defined functions into a component without any extra copies to the host
- Importing component instances directly into other components
alexcrichton edited issue #4185:
This is intended to be a tracking issue for the implementation of the component model proposal of WebAssembly. I'm in the progress of implementing this with work in Wasmtime starting at https://github.com/bytecodealliance/wasmtime/pull/4005 and continuing in further PRs. I hope to leave checkbox items here to ensure I don't forget about them and to also track the progress of implementing the component model.
Items to be implemented
- [x] Text format parsing
- [x] Validation in
wasmparser
- [x] Basic infrastructure in the
component
submodule of thewasmtime
crate- [x] Basic instantiation with zero imports
- [x] Extracting a function and calling it with a static signature
- [ ] Importing host functions into a component
- [ ] Importing host instances (bundles of host functions) into a component
- [ ] Importing a wasm module into a component
- [ ] Exporting a module from a component
- [ ] Nested component compilation
- [ ] Nested component instantiation
- [ ] Outer component aliases
- [ ] Exporting a component from a component
- [ ] Component-to-component adapters (this is a huge work item implying an entire compiler for adapter trampolines)
- [ ] String support for utf16+latin1 (omitted from #4039)
- [ ] Support for memory64 in adapters and such
- [ ] Post-return functions
- [ ] Support for
record
types- [ ] Support for
variant
types- [ ] Support for
enum
types- [ ] Support for
union
types- [ ] Support for
flags
types- [ ] Confirm lowered-then-lifted interpretation of "always trap" is correct
- [ ] Validate alignment and enable
&[u64]
views and similar- [ ] Double-check behavior of traps with respect to validating in-bounds pointers and intermediate writes of params/results when lifting/lowering
Unsure how to implement so far
- Everything with
value
ranging from imports to exports to thestart
function- Calling a function with a dynamic signature
- Defining a host function with a dynamic signature
Open questions
- How to optimize passing
&[u8]
to WebAssembly to amemcpy
?- How to handle validation of
Value<T>
coming out of wasm?Not planned at this time
- Importing component-defined functions into a component without any extra copies to the host
- Importing component instances directly into other components
alexcrichton edited issue #4185:
This is intended to be a tracking issue for the implementation of the component model proposal of WebAssembly. I'm in the progress of implementing this with work in Wasmtime starting at https://github.com/bytecodealliance/wasmtime/pull/4005 and continuing in further PRs. I hope to leave checkbox items here to ensure I don't forget about them and to also track the progress of implementing the component model.
Items to be implemented
- [x] Text format parsing
- [x] Validation in
wasmparser
- [x] Basic infrastructure in the
component
submodule of thewasmtime
crate- [x] Basic instantiation with zero imports
- [x] Extracting a function and calling it with a static signature
- [ ] Importing host functions into a component
- [ ] Importing host instances (bundles of host functions) into a component
- [ ] Importing a wasm module into a component
- [ ] Exporting a module from a component
- [ ] Nested component compilation
- [ ] Nested component instantiation
- [ ] Outer component aliases
- [ ] Exporting a component from a component
- [ ] Component-to-component adapters (this is a huge work item implying an entire compiler for adapter trampolines)
- [ ] String support for utf16+latin1 (omitted from #4039)
- [ ] Post-return functions
- [ ] Support for
record
types- [ ] Support for
variant
types- [ ] Support for
enum
types- [ ] Support for
union
types- [ ] Support for
flags
types- [ ] Confirm lowered-then-lifted interpretation of "always trap" is correct
- [ ] Validate alignment and enable
&[u64]
views and similar- [ ] Double-check behavior of traps with respect to validating in-bounds pointers and intermediate writes of params/results when lifting/lowering
Items related to memory64 support
- Need to call
realloc
with a different signature- All reads/writes of pointers to linear memory need to have a 32/64 bit switch
- Reading and writing pointers to
ValRaw
needs to be audited- Size and alignment calculations all need to be duplicated or have a parameter for 64 bit
Unsure how to implement so far
- Everything with
value
ranging from imports to exports to thestart
function- Calling a function with a dynamic signature
- Defining a host function with a dynamic signature
Open questions
- How to optimize passing
&[u8]
to WebAssembly to amemcpy
?- How to handle validation of
Value<T>
coming out of wasm?Not planned at this time
- Importing component-defined functions into a component without any extra copies to the host
- Importing component instances directly into other components
alexcrichton edited issue #4185:
This is intended to be a tracking issue for the implementation of the component model proposal of WebAssembly. I'm in the progress of implementing this with work in Wasmtime starting at https://github.com/bytecodealliance/wasmtime/pull/4005 and continuing in further PRs. I hope to leave checkbox items here to ensure I don't forget about them and to also track the progress of implementing the component model.
Items to be implemented
- [x] Text format parsing
- [x] Validation in
wasmparser
- [x] Basic infrastructure in the
component
submodule of thewasmtime
crate- [x] Basic instantiation with zero imports
- [x] Extracting a function and calling it with a static signature
- [ ] Importing host functions into a component
- [ ] Importing host instances (bundles of host functions) into a component
- [ ] Importing a wasm module into a component
- [ ] Exporting a module from a component
- [ ] Nested component compilation
- [ ] Nested component instantiation
- [ ] Outer component aliases
- [ ] Exporting a component from a component
- [ ] Component-to-component adapters (this is a huge work item implying an entire compiler for adapter trampolines)
- [ ] String support for utf16+latin1 (omitted from #4039)
- [ ] Post-return functions
- [ ] Support for
record
types- [ ] Support for
variant
types- [ ] Support for
enum
types- [ ] Support for
union
types- [ ] Support for
flags
types- [ ] Confirm lowered-then-lifted interpretation of "always trap" is correct
- [ ] Validate alignment and enable
&[u64]
views and similar- [ ] Double-check behavior of traps with respect to validating in-bounds pointers and intermediate writes of params/results when lifting/lowering
Items related to memory64 support
- Need to call
realloc
with a different signature- All reads/writes of pointers to linear memory need to have a 32/64 bit switch
- Reading and writing pointers to
ValRaw
needs to be audited- Size and alignment calculations all need to be duplicated or have a parameter for 64 bit
Unsure how to implement so far
- Everything with
value
ranging from imports to exports to thestart
function- Calling a function with a dynamic signature
- Defining a host function with a dynamic signature
Open questions
- How to optimize passing
&[u8]
to WebAssembly to amemcpy
?- How to handle validation of
Value<T>
coming out of wasm?Not planned at this time
- Importing component-defined functions into a component without any extra copies to the host
- Importing component instances directly into other components
alexcrichton edited issue #4185:
This is intended to be a tracking issue for the implementation of the component model proposal of WebAssembly. I'm in the progress of implementing this with work in Wasmtime starting at https://github.com/bytecodealliance/wasmtime/pull/4005 and continuing in further PRs. I hope to leave checkbox items here to ensure I don't forget about them and to also track the progress of implementing the component model.
Items to be implemented
- [x] Text format parsing
- [x] Validation in
wasmparser
- [x] Basic infrastructure in the
component
submodule of thewasmtime
crate- [x] Basic instantiation with zero imports
- [x] Extracting a function and calling it with a static signature
- [ ] Importing host functions into a component
- [ ] Importing host instances (bundles of host functions) into a component
- [ ] Importing a wasm module into a component
- [ ] Exporting a module from a component
- [ ] Nested component compilation
- [ ] Nested component instantiation
- [ ] Outer component aliases
- [ ] Exporting a component from a component
- [ ] Component-to-component adapters (this is a huge work item implying an entire compiler for adapter trampolines)
- [ ] String support for utf16+latin1 (omitted from #4039)
- [ ] Post-return functions
- [ ] Support for
record
types- [ ] Support for
variant
types- [ ] Support for
enum
types- [ ] Support for
union
types- [ ] Support for
flags
types- [ ] Confirm lowered-then-lifted interpretation of "always trap" is correct
- [ ] Validate alignment and enable
&[u64]
views and similar- [ ] Double-check behavior of traps with respect to validating in-bounds pointers and intermediate writes of params/results when lifting/lowering
- [ ] Split
ComponentValue
into lifting and lowering traitsItems related to memory64 support
- Need to call
realloc
with a different signature- All reads/writes of pointers to linear memory need to have a 32/64 bit switch
- Reading and writing pointers to
ValRaw
needs to be audited- Size and alignment calculations all need to be duplicated or have a parameter for 64 bit
Unsure how to implement so far
- Everything with
value
ranging from imports to exports to thestart
function- Calling a function with a dynamic signature
- Defining a host function with a dynamic signature
Open questions
- How to optimize passing
&[u8]
to WebAssembly to amemcpy
?- How to handle validation of
Value<T>
coming out of wasm?Not planned at this time
- Importing component-defined functions into a component without any extra copies to the host
- Importing component instances directly into other components
alexcrichton edited issue #4185:
This is intended to be a tracking issue for the implementation of the component model proposal of WebAssembly. I'm in the progress of implementing this with work in Wasmtime starting at https://github.com/bytecodealliance/wasmtime/pull/4005 and continuing in further PRs. I hope to leave checkbox items here to ensure I don't forget about them and to also track the progress of implementing the component model.
Items to be implemented
- [x] Text format parsing
- [x] Validation in
wasmparser
- [x] Basic infrastructure in the
component
submodule of thewasmtime
crate- [x] Basic instantiation with zero imports
- [x] Extracting a function and calling it with a static signature
- [ ] Importing host functions into a component
- [ ] Importing host instances (bundles of host functions) into a component
- [ ] Importing a wasm module into a component
- [ ] Exporting a module from a component
- [ ] Nested component compilation
- [ ] Nested component instantiation
- [ ] Outer component aliases
- [ ] Exporting a component from a component
- [ ] Component-to-component adapters (this is a huge work item implying an entire compiler for adapter trampolines)
- [ ] String support for utf16+latin1 (omitted from #4039)
- [ ] Post-return functions
- [ ] Support for
record
types- [ ] Support for
variant
types- [ ] Support for
enum
types- [ ] Support for
union
types- [ ] Support for
flags
types- [ ] Confirm lowered-then-lifted interpretation of "always trap" is correct
- [ ] Validate alignment and enable
&[u64]
views and similar- [ ] Double-check behavior of traps with respect to validating in-bounds pointers and intermediate writes of params/results when lifting/lowering
- [ ] Split
ComponentValue
into lifting and lowering traits- [ ] Figure out what to do with a lifting a lowered function
- [ ] Figure out what to do with reexporting an imported function
- [ ] Figure out what to do with lowering a lifted function
Items related to memory64 support
- Need to call
realloc
with a different signature- All reads/writes of pointers to linear memory need to have a 32/64 bit switch
- Reading and writing pointers to
ValRaw
needs to be audited- Size and alignment calculations all need to be duplicated or have a parameter for 64 bit
Unsure how to implement so far
- Everything with
value
ranging from imports to exports to thestart
function- Calling a function with a dynamic signature
- Defining a host function with a dynamic signature
Open questions
- How to optimize passing
&[u8]
to WebAssembly to amemcpy
?- How to handle validation of
Value<T>
coming out of wasm?Not planned at this time
- Importing component-defined functions into a component without any extra copies to the host
- Importing component instances directly into other components
alexcrichton edited issue #4185:
This is intended to be a tracking issue for the implementation of the component model proposal of WebAssembly. I'm in the progress of implementing this with work in Wasmtime starting at https://github.com/bytecodealliance/wasmtime/pull/4005 and continuing in further PRs. I hope to leave checkbox items here to ensure I don't forget about them and to also track the progress of implementing the component model.
Items to be implemented
- [x] Text format parsing
- [x] Validation in
wasmparser
- [x] Basic infrastructure in the
component
submodule of thewasmtime
crate- [x] Basic instantiation with zero imports
- [x] Extracting a function and calling it with a static signature
- [ ] Importing host functions into a component
- [ ] Importing host instances (bundles of host functions) into a component
- [ ] Importing a wasm module into a component
- [ ] Exporting a module from a component
- [ ] Nested component compilation
- [ ] Nested component instantiation
- [ ] Outer component aliases
- [ ] Exporting a component from a component
- [ ] Component-to-component adapters (this is a huge work item implying an entire compiler for adapter trampolines)
- [ ] String support for utf16+latin1 (omitted from #4039)
- [ ] Post-return functions
- [ ] Support for
record
types- [ ] Support for
variant
types- [ ] Support for
enum
types- [ ] Support for
union
types- [ ] Support for
flags
types- [ ] Confirm lowered-then-lifted interpretation of "always trap" is correct
- [ ] Validate alignment and enable
&[u64]
views and similar- [ ] Double-check behavior of traps with respect to validating in-bounds pointers and intermediate writes of params/results when lifting/lowering
- [ ] Split
ComponentValue
into lifting and lowering traits- [ ] Figure out what to do with a lifting a lowered function
- [ ] Figure out what to do with reexporting an imported function
- [ ] Figure out what to do with lowering a lifted function
Items related to memory64 support
- Need to call
realloc
with a different signature- All reads/writes of pointers to linear memory need to have a 32/64 bit switch
- Reading and writing pointers to
ValRaw
needs to be audited- Size and alignment calculations all need to be duplicated or have a parameter for 64 bit
- Somehow should probably confirm that this doesn't vastly affect performance for 32-bit
Unsure how to implement so far
- Everything with
value
ranging from imports to exports to thestart
function- Calling a function with a dynamic signature
- Defining a host function with a dynamic signature
Open questions
- How to optimize passing
&[u8]
to WebAssembly to amemcpy
?- How to handle validation of
Value<T>
coming out of wasm?Not planned at this time
- Importing component-defined functions into a component without any extra copies to the host
- Importing component instances directly into other components
alexcrichton edited issue #4185:
This is intended to be a tracking issue for the implementation of the component model proposal of WebAssembly. I'm in the progress of implementing this with work in Wasmtime starting at https://github.com/bytecodealliance/wasmtime/pull/4005 and continuing in further PRs. I hope to leave checkbox items here to ensure I don't forget about them and to also track the progress of implementing the component model.
Items to be implemented
- [x] Text format parsing
- [x] Validation in
wasmparser
- [x] Basic infrastructure in the
component
submodule of thewasmtime
crate- [x] Basic instantiation with zero imports
- [x] Extracting a function and calling it with a static signature
- [ ] Importing host functions into a component
- [ ] Importing host instances (bundles of host functions) into a component
- [x] Importing a wasm module into a component
- [x] Exporting a module from a component
- [ ] Nested component compilation
- [ ] Nested component instantiation
- [ ] Outer component aliases
- [ ] Exporting a component from a component
- [ ] Component-to-component adapters (this is a huge work item implying an entire compiler for adapter trampolines)
- [ ] String support for utf16+latin1 (omitted from #4039)
- [ ] Post-return functions
- [ ] Support for
record
types- [ ] Support for
variant
types- [ ] Support for
enum
types- [ ] Support for
union
types- [ ] Support for
flags
types- [ ] Confirm lowered-then-lifted interpretation of "always trap" is correct
- [ ] Validate alignment and enable
&[u64]
views and similar- [ ] Double-check behavior of traps with respect to validating in-bounds pointers and intermediate writes of params/results when lifting/lowering
- [ ] Split
ComponentValue
into lifting and lowering traits- [ ] Figure out what to do with a lifting a lowered function
- [ ] Figure out what to do with reexporting an imported function
- [ ] Figure out what to do with lowering a lifted function
Items related to memory64 support
- Need to call
realloc
with a different signature- All reads/writes of pointers to linear memory need to have a 32/64 bit switch
- Reading and writing pointers to
ValRaw
needs to be audited- Size and alignment calculations all need to be duplicated or have a parameter for 64 bit
- Somehow should probably confirm that this doesn't vastly affect performance for 32-bit
Unsure how to implement so far
- Everything with
value
ranging from imports to exports to thestart
function- Calling a function with a dynamic signature
- Defining a host function with a dynamic signature
Open questions
- How to optimize passing
&[u8]
to WebAssembly to amemcpy
?- How to handle validation of
Value<T>
coming out of wasm?Not planned at this time
- Importing component-defined functions into a component without any extra copies to the host
- Importing component instances directly into other components
alexcrichton edited issue #4185:
This is intended to be a tracking issue for the implementation of the component model proposal of WebAssembly. I'm in the progress of implementing this with work in Wasmtime starting at https://github.com/bytecodealliance/wasmtime/pull/4005 and continuing in further PRs. I hope to leave checkbox items here to ensure I don't forget about them and to also track the progress of implementing the component model.
Items to be implemented
- [x] Text format parsing
- [x] Validation in
wasmparser
- [x] Basic infrastructure in the
component
submodule of thewasmtime
crate- [x] Basic instantiation with zero imports
- [x] Extracting a function and calling it with a static signature
- [ ] Importing host functions into a component
- [ ] Importing host instances (bundles of host functions) into a component
- [x] Importing a wasm module into a component
- [x] Exporting a module from a component
- [ ] Nested component compilation
- [ ] Nested component instantiation
- [ ] Outer component aliases
- [ ] Exporting a component from a component
- [ ] Component-to-component adapters (this is a huge work item implying an entire compiler for adapter trampolines)
- [ ] String support for utf16+latin1 (omitted from #4039)
- [ ] Post-return functions
- [ ] Support for
record
types- [ ] Support for
variant
types- [ ] Support for
enum
types- [ ] Support for
union
types- [ ] Support for
flags
types- [ ] Confirm lowered-then-lifted interpretation of "always trap" is correct
- [ ] Validate alignment and enable
&[u64]
views and similar- [ ] Double-check behavior of traps with respect to validating in-bounds pointers and intermediate writes of params/results when lifting/lowering
- [ ] Split
ComponentValue
into lifting and lowering traits- [ ] Figure out what to do with a lifting a lowered function
- [ ] Figure out what to do with reexporting an imported function
- [ ] Figure out what to do with lowering a lifted function
- [ ] Implement may_enter and may_leave flags
Items related to memory64 support
- Need to call
realloc
with a different signature- All reads/writes of pointers to linear memory need to have a 32/64 bit switch
- Reading and writing pointers to
ValRaw
needs to be audited- Size and alignment calculations all need to be duplicated or have a parameter for 64 bit
- Somehow should probably confirm that this doesn't vastly affect performance for 32-bit
Unsure how to implement so far
- Everything with
value
ranging from imports to exports to thestart
function- Calling a function with a dynamic signature
- Defining a host function with a dynamic signature
Open questions
- How to optimize passing
&[u8]
to WebAssembly to amemcpy
?- How to handle validation of
Value<T>
coming out of wasm?Not planned at this time
- Importing component-defined functions into a component without any extra copies to the host
- Importing component instances directly into other components
alexcrichton edited issue #4185:
This is intended to be a tracking issue for the implementation of the component model proposal of WebAssembly. I'm in the progress of implementing this with work in Wasmtime starting at https://github.com/bytecodealliance/wasmtime/pull/4005 and continuing in further PRs. I hope to leave checkbox items here to ensure I don't forget about them and to also track the progress of implementing the component model.
Items to be implemented
- [x] Text format parsing
- [x] Validation in
wasmparser
- [x] Basic infrastructure in the
component
submodule of thewasmtime
crate- [x] Basic instantiation with zero imports
- [x] Extracting a function and calling it with a static signature
- [ ] Importing host functions into a component
- [ ] Importing host instances (bundles of host functions) into a component
- [x] Importing a wasm module into a component
- [x] Exporting a module from a component
- [ ] Nested component compilation
- [ ] Nested component instantiation
- [ ] Outer component aliases
- [ ] Exporting a component from a component
- [ ] Component-to-component adapters (this is a huge work item implying an entire compiler for adapter trampolines)
- [ ] String support for utf16+latin1 (omitted from #4039)
- [ ] Post-return functions
- [ ] Support for
record
types- [ ] Support for
variant
types- [ ] Support for
enum
types- [ ] Support for
union
types- [ ] Support for
flags
types- [ ] Confirm lowered-then-lifted interpretation of "always trap" is correct
- [ ] Validate alignment and enable
&[u64]
views and similar- [ ] Double-check behavior of traps with respect to validating in-bounds pointers and intermediate writes of params/results when lifting/lowering
- [ ] Split
ComponentValue
into lifting and lowering traits- [ ] Figure out what to do with a lifting a lowered function
- [ ] Figure out what to do with reexporting an imported function
- [ ] Figure out what to do with lowering a lifted function
- [ ] Implement may_enter and may_leave flags
Items related to memory64 support
- Need to call
realloc
with a different signature- All reads/writes of pointers to linear memory need to have a 32/64 bit switch
- Reading and writing pointers to
ValRaw
needs to be audited- Size and alignment calculations all need to be duplicated or have a parameter for 64 bit
- Somehow should probably confirm that this doesn't vastly affect performance for 32-bit
Unsure how to implement so far
- Everything with
value
ranging from imports to exports to thestart
function- Calling a function with a dynamic signature
- Defining a host function with a dynamic signature
Open questions
- How to optimize passing
&[u8]
to WebAssembly to amemcpy
?How to handle validation ofValue<T>
coming out of wasm?Not planned at this time
- Importing component-defined functions into a component without any extra copies to the host
- Importing component instances directly into other components
alexcrichton edited issue #4185:
This is intended to be a tracking issue for the implementation of the component model proposal of WebAssembly. I'm in the progress of implementing this with work in Wasmtime starting at https://github.com/bytecodealliance/wasmtime/pull/4005 and continuing in further PRs. I hope to leave checkbox items here to ensure I don't forget about them and to also track the progress of implementing the component model.
Items to be implemented
- [x] Text format parsing
- [x] Validation in
wasmparser
- [x] Basic infrastructure in the
component
submodule of thewasmtime
crate- [x] Basic instantiation with zero imports
- [x] Extracting a function and calling it with a static signature
- [ ] Importing host functions into a component
- [ ] Importing host instances (bundles of host functions) into a component
- [x] Importing a wasm module into a component
- [x] Exporting a module from a component
- [ ] Nested component compilation
- [ ] Nested component instantiation
- [ ] Outer component aliases
- [ ] Exporting a component from a component
- [ ] Component-to-component adapters (this is a huge work item implying an entire compiler for adapter trampolines)
- [ ] String support for utf16+latin1 (omitted from #4039)
- [ ] Post-return functions
- [ ] Support for
record
types- [ ] Support for
variant
types- [ ] Support for
enum
types- [ ] Support for
union
types- [ ] Support for
flags
types- [ ] Confirm lowered-then-lifted interpretation of "always trap" is correct
- [ ] Validate alignment and enable
&[u64]
views and similar- [ ] Double-check behavior of traps with respect to validating in-bounds pointers and intermediate writes of params/results when lifting/lowering
- [ ] Split
ComponentValue
into lifting and lowering traits- [ ] Figure out what to do with a lifting a lowered function
- [ ] Figure out what to do with reexporting an imported function
- [ ] Figure out what to do with lowering a lifted function
- [ ] Implement may_enter and may_leave flags
Items related to memory64 support
- Need to call
realloc
with a different signature- All reads/writes of pointers to linear memory need to have a 32/64 bit switch
- Reading and writing pointers to
ValRaw
needs to be audited- Size and alignment calculations all need to be duplicated or have a parameter for 64 bit
- Somehow should probably confirm that this doesn't vastly affect performance for 32-bit
Unsure how to implement so far
- Everything with
value
ranging from imports to exports to thestart
function- Calling a function with a dynamic signature
- Defining a host function with a dynamic signature
Open questions
- How to optimize passing
&[u8]
to WebAssembly to amemcpy
?How to handle validation ofValue<T>
coming out of wasm?Not planned at this time
- Importing component-defined functions into a component without any extra copies to the host
- Importing component instances directly into other components
alexcrichton edited issue #4185:
This is intended to be a tracking issue for the implementation of the component model proposal of WebAssembly. I'm in the progress of implementing this with work in Wasmtime starting at https://github.com/bytecodealliance/wasmtime/pull/4005 and continuing in further PRs. I hope to leave checkbox items here to ensure I don't forget about them and to also track the progress of implementing the component model.
Items to be implemented
- [x] Text format parsing
- [x] Validation in
wasmparser
- [x] Basic infrastructure in the
component
submodule of thewasmtime
crate- [x] Basic instantiation with zero imports
- [x] Extracting a function and calling it with a static signature
- [x] Importing host functions into a component
- [ ] Importing host instances (bundles of host functions) into a component
- [x] Importing a wasm module into a component
- [x] Exporting a module from a component
- [ ] Nested component compilation
- [ ] Nested component instantiation
- [ ] Outer component aliases
- [ ] Exporting a component from a component
- [ ] Component-to-component adapters (this is a huge work item implying an entire compiler for adapter trampolines)
- [ ] String support for utf16+latin1 (omitted from #4039)
- [ ] Post-return functions
- [ ] Support for
record
types- [ ] Support for
variant
types- [ ] Support for
enum
types- [ ] Support for
union
types- [ ] Support for
flags
types- [ ] Confirm lowered-then-lifted interpretation of "always trap" is correct
- [ ] Validate alignment and enable
&[u64]
views and similar- [ ] Double-check behavior of traps with respect to validating in-bounds pointers and intermediate writes of params/results when lifting/lowering
- [ ] Split
ComponentValue
into lifting and lowering traits- [ ] Figure out what to do with a lifting a lowered function
- [ ] Figure out what to do with reexporting an imported function
- [ ] Figure out what to do with lowering a lifted function
- [ ] Implement may_enter and may_leave flags
Items related to memory64 support
- Need to call
realloc
with a different signature- All reads/writes of pointers to linear memory need to have a 32/64 bit switch
- Reading and writing pointers to
ValRaw
needs to be audited- Size and alignment calculations all need to be duplicated or have a parameter for 64 bit
- Somehow should probably confirm that this doesn't vastly affect performance for 32-bit
Unsure how to implement so far
- Everything with
value
ranging from imports to exports to thestart
function- Calling a function with a dynamic signature
- Defining a host function with a dynamic signature
Open questions
- How to optimize passing
&[u8]
to WebAssembly to amemcpy
?How to handle validation ofValue<T>
coming out of wasm?Not planned at this time
- Importing component-defined functions into a component without any extra copies to the host
- Importing component instances directly into other components
alexcrichton edited issue #4185:
This is intended to be a tracking issue for the implementation of the component model proposal of WebAssembly. I'm in the progress of implementing this with work in Wasmtime starting at https://github.com/bytecodealliance/wasmtime/pull/4005 and continuing in further PRs. I hope to leave checkbox items here to ensure I don't forget about them and to also track the progress of implementing the component model.
Items to be implemented
- [x] Text format parsing
- [x] Validation in
wasmparser
- [x] Basic infrastructure in the
component
submodule of thewasmtime
crate- [x] Basic instantiation with zero imports
- [x] Extracting a function and calling it with a static signature
- [x] Importing host functions into a component
- [x] Importing host instances (bundles of host functions) into a component
- [x] Importing a wasm module into a component
- [x] Exporting a module from a component
- [ ] Nested component compilation
- [ ] Nested component instantiation
- [ ] Outer component aliases
- [ ] Exporting a component from a component
- [ ] Component-to-component adapters (this is a huge work item implying an entire compiler for adapter trampolines)
- [ ] String support for utf16+latin1 (omitted from #4039)
- [ ] Post-return functions
- [ ] Support for
record
types- [ ] Support for
variant
types- [ ] Support for
enum
types- [ ] Support for
union
types- [ ] Support for
flags
types- [ ] Confirm lowered-then-lifted interpretation of "always trap" is correct
- [ ] Validate alignment and enable
&[u64]
views and similar- [ ] Double-check behavior of traps with respect to validating in-bounds pointers and intermediate writes of params/results when lifting/lowering
- [ ] Split
ComponentValue
into lifting and lowering traits- [ ] Figure out what to do with a lifting a lowered function
- [ ] Figure out what to do with reexporting an imported function
- [ ] Figure out what to do with lowering a lifted function
- [ ] Implement may_enter and may_leave flags
Items related to memory64 support
- Need to call
realloc
with a different signature- All reads/writes of pointers to linear memory need to have a 32/64 bit switch
- Reading and writing pointers to
ValRaw
needs to be audited- Size and alignment calculations all need to be duplicated or have a parameter for 64 bit
- Somehow should probably confirm that this doesn't vastly affect performance for 32-bit
Unsure how to implement so far
- Everything with
value
ranging from imports to exports to thestart
function- Calling a function with a dynamic signature
- Defining a host function with a dynamic signature
Open questions
- How to optimize passing
&[u8]
to WebAssembly to amemcpy
?How to handle validation ofValue<T>
coming out of wasm?Not planned at this time
- Importing component-defined functions into a component without any extra copies to the host
- Importing component instances directly into other components
alexcrichton edited issue #4185:
This is intended to be a tracking issue for the implementation of the component model proposal of WebAssembly. I'm in the progress of implementing this with work in Wasmtime starting at https://github.com/bytecodealliance/wasmtime/pull/4005 and continuing in further PRs. I hope to leave checkbox items here to ensure I don't forget about them and to also track the progress of implementing the component model.
Items to be implemented
- [x] Text format parsing
- [x] Validation in
wasmparser
- [x] Basic infrastructure in the
component
submodule of thewasmtime
crate- [x] Basic instantiation with zero imports
- [x] Extracting a function and calling it with a static signature
- [x] Importing host functions into a component
- [x] Importing host instances (bundles of host functions) into a component
- [x] Importing a wasm module into a component
- [x] Exporting a module from a component
- [ ] Nested component compilation
- [ ] Nested component instantiation
- [ ] Outer component aliases
- [ ] Exporting a component from a component
- [ ] Component-to-component adapters (this is a huge work item implying an entire compiler for adapter trampolines)
- [ ] String support for utf16+latin1 (omitted from #4039)
- [ ] Post-return functions
- [ ] Support for
record
types- [ ] Support for
variant
types- [ ] Support for
enum
types- [ ] Support for
union
types- [ ] Support for
flags
types- [ ] Confirm lowered-then-lifted interpretation of "always trap" is correct
- [ ] Validate alignment and enable
&[u64]
views and similar- [ ] Double-check behavior of traps with respect to validating in-bounds pointers and intermediate writes of params/results when lifting/lowering
- [ ] Split
ComponentValue
into lifting and lowering traits- [ ] Figure out what to do with a lifting a lowered function
- [ ] Figure out what to do with reexporting an imported function
- [ ] Figure out what to do with lowering a lifted function
- [ ] Implement may_enter and may_leave flags
Items related to memory64 support
- Need to call
realloc
with a different signature- All reads/writes of pointers to linear memory need to have a 32/64 bit switch
- Reading and writing pointers to
ValRaw
needs to be audited- Size and alignment calculations all need to be duplicated or have a parameter for 64 bit
- Somehow should probably confirm that this doesn't vastly affect performance for 32-bit
Unsure how to implement so far
- Everything with
value
ranging from imports to exports to thestart
function- Calling a function with a dynamic signature
- Defining a host function with a dynamic signature
Open questions
- How to optimize passing
&[u8]
to WebAssembly to amemcpy
?How to handle validation ofValue<T>
coming out of wasm?Not planned at this time
- Importing component-defined functions into a component without any extra copies to the host
- Importing component instances directly into other components
alexcrichton edited issue #4185:
This is intended to be a tracking issue for the implementation of the component model proposal of WebAssembly. I'm in the progress of implementing this with work in Wasmtime starting at https://github.com/bytecodealliance/wasmtime/pull/4005 and continuing in further PRs. I hope to leave checkbox items here to ensure I don't forget about them and to also track the progress of implementing the component model.
Items to be implemented
- [x] Text format parsing
- [x] Validation in
wasmparser
- [x] Basic infrastructure in the
component
submodule of thewasmtime
crate- [x] Basic instantiation with zero imports
- [x] Extracting a function and calling it with a static signature
- [x] Importing host functions into a component
- [x] Importing host instances (bundles of host functions) into a component
- [x] Importing a wasm module into a component
- [x] Exporting a module from a component
- [ ] Nested component compilation
- [ ] Nested component instantiation
- [ ] Outer component aliases
- [ ] Exporting a component from a component
- [ ] Component-to-component adapters (this is a huge work item implying an entire compiler for adapter trampolines)
- [ ] String support for utf16+latin1 (omitted from #4039)
- [ ] Post-return functions
- [ ] Support for
record
types- [ ] Support for
variant
types- [ ] Support for
enum
types- [ ] Support for
union
types- [ ] Support for
flags
types- [ ] Confirm lowered-then-lifted interpretation of "always trap" is correct
- [ ] Validate alignment and enable
&[u64]
views and similar- [ ] Double-check behavior of traps with respect to validating in-bounds pointers and intermediate writes of params/results when lifting/lowering
- [ ] Split
ComponentValue
into lifting and lowering traits- [ ] Figure out what to do with a lifting a lowered function
- [ ] Figure out what to do with reexporting an imported function
- [ ] Figure out what to do with lowering a lifted function
- [ ] Implement may_enter and may_leave flags
Items related to memory64 support
- Need to call
realloc
with a different signature- All reads/writes of pointers to linear memory need to have a 32/64 bit switch
- Reading and writing pointers to
ValRaw
needs to be audited- Size and alignment calculations all need to be duplicated or have a parameter for 64 bit
- Somehow should probably confirm that this doesn't vastly affect performance for 32-bit
Unsure how to implement so far
- Everything with
value
ranging from imports to exports to thestart
function- Calling a function with a dynamic signature
- Defining a host function with a dynamic signature
Open questions
- How to optimize passing
&[u8]
to WebAssembly to amemcpy
?How to handle validation ofValue<T>
coming out of wasm?Not planned at this time
- Importing component-defined functions into a component without any extra copies to the host
- Importing component instances directly into other components
alexcrichton edited issue #4185:
This is intended to be a tracking issue for the implementation of the component model proposal of WebAssembly. I'm in the progress of implementing this with work in Wasmtime starting at https://github.com/bytecodealliance/wasmtime/pull/4005 and continuing in further PRs. I hope to leave checkbox items here to ensure I don't forget about them and to also track the progress of implementing the component model.
Items to be implemented
- [x] Text format parsing
- [x] Validation in
wasmparser
- [x] Basic infrastructure in the
component
submodule of thewasmtime
crate- [x] Basic instantiation with zero imports
- [x] Extracting a function and calling it with a static signature
- [x] Importing host functions into a component
- [x] Importing host instances (bundles of host functions) into a component
- [x] Importing a wasm module into a component
- [x] Exporting a module from a component
- [ ] Nested component compilation
- [ ] Nested component instantiation
- [ ] Outer component aliases
- [ ] Exporting a component from a component
- [ ] Component-to-component adapters (this is a huge work item implying an entire compiler for adapter trampolines)
- [ ] String support for utf16+latin1 (omitted from #4039)
- [ ] Post-return functions
- [ ] Support for
record
types- [ ] Support for
variant
types- [ ] Support for
enum
types- [ ] Support for
union
types- [ ] Support for
flags
types- [ ] Confirm lowered-then-lifted interpretation of "always trap" is correct
- [ ] Validate alignment and enable
&[u64]
views and similar- [ ] Double-check behavior of traps with respect to validating in-bounds pointers and intermediate writes of params/results when lifting/lowering
- [ ] Split
ComponentValue
into lifting and lowering traits- [ ] Figure out what to do with a lifting a lowered function
- [ ] Figure out what to do with reexporting an imported function
- [ ] Figure out what to do with lowering a lifted function
- [x] Implement may_enter and may_leave flags
Items related to memory64 support
- Need to call
realloc
with a different signature- All reads/writes of pointers to linear memory need to have a 32/64 bit switch
- Reading and writing pointers to
ValRaw
needs to be audited- Size and alignment calculations all need to be duplicated or have a parameter for 64 bit
- Somehow should probably confirm that this doesn't vastly affect performance for 32-bit
Unsure how to implement so far
- Everything with
value
ranging from imports to exports to thestart
function- Calling a function with a dynamic signature
- Defining a host function with a dynamic signature
Open questions
- How to optimize passing
&[u8]
to WebAssembly to amemcpy
?How to handle validation ofValue<T>
coming out of wasm?Not planned at this time
- Importing component-defined functions into a component without any extra copies to the host
- Importing component instances directly into other components
alexcrichton edited issue #4185:
This is intended to be a tracking issue for the implementation of the component model proposal of WebAssembly. I'm in the progress of implementing this with work in Wasmtime starting at https://github.com/bytecodealliance/wasmtime/pull/4005 and continuing in further PRs. I hope to leave checkbox items here to ensure I don't forget about them and to also track the progress of implementing the component model.
Items to be implemented
- [x] Text format parsing
- [x] Validation in
wasmparser
- [x] Basic infrastructure in the
component
submodule of thewasmtime
crate- [x] Basic instantiation with zero imports
- [x] Extracting a function and calling it with a static signature
- [x] Importing host functions into a component
- [x] Importing host instances (bundles of host functions) into a component
- [x] Importing a wasm module into a component
- [x] Exporting a module from a component
- [ ] Nested component compilation
- [ ] Nested component instantiation
- [ ] Outer component aliases
- [ ] Exporting a component from a component
- [ ] Component-to-component adapters (this is a huge work item implying an entire compiler for adapter trampolines)
- [ ] String support for utf16+latin1 (omitted from #4039)
- [ ] Post-return functions
- [ ] Support for
record
types- [ ] Support for
variant
types- [ ] Support for
enum
types- [ ] Support for
union
types- [ ] Support for
flags
types- [ ] Confirm lowered-then-lifted interpretation of "always trap" is correct
- [ ] Validate alignment and enable
&[u64]
views and similar- [ ] Double-check behavior of traps with respect to validating in-bounds pointers and intermediate writes of params/results when lifting/lowering
- [ ] Split
ComponentValue
into lifting and lowering traits- [ ] Figure out what to do with a lifting a lowered function
- [ ] Figure out what to do with reexporting an imported function
- [ ] Figure out what to do with lowering a lifted function
- [x] Implement may_enter and may_leave flags
Items related to memory64 support
- Need to call
realloc
with a different signature- All reads/writes of pointers to linear memory need to have a 32/64 bit switch
- Reading and writing pointers to
ValRaw
needs to be audited- Size and alignment calculations all need to be duplicated or have a parameter for 64 bit
- Somehow should probably confirm that this doesn't vastly affect performance for 32-bit
Unsure how to implement so far
- Everything with
value
ranging from imports to exports to thestart
function- Calling a function with a dynamic signature
- Defining a host function with a dynamic signature
Open questions
- How to optimize passing
&[u8]
to WebAssembly to amemcpy
?How to handle validation ofValue<T>
coming out of wasm?Not planned at this time
- Importing component-defined functions into a component without any extra copies to the host
- Importing component instances directly into other components
alexcrichton edited issue #4185:
This is intended to be a tracking issue for the implementation of the component model proposal of WebAssembly. I'm in the progress of implementing this with work in Wasmtime starting at https://github.com/bytecodealliance/wasmtime/pull/4005 and continuing in further PRs. I hope to leave checkbox items here to ensure I don't forget about them and to also track the progress of implementing the component model.
Items to be implemented
- [x] Text format parsing
- [x] Validation in
wasmparser
- [x] Basic infrastructure in the
component
submodule of thewasmtime
crate- [x] Basic instantiation with zero imports
- [x] Extracting a function and calling it with a static signature
- [x] Importing host functions into a component
- [x] Importing host instances (bundles of host functions) into a component
- [x] Importing a wasm module into a component
- [x] Exporting a module from a component
- [ ] Nested component compilation
- [ ] Nested component instantiation
- [ ] Outer component aliases
- [ ] Exporting a component from a component
- [ ] Component-to-component adapters (this is a huge work item implying an entire compiler for adapter trampolines)
- [ ] String support for utf16+latin1 (omitted from #4039)
- [ ] Post-return functions
- [ ] Support for
record
types- [ ] Support for
variant
types- [ ] Support for
enum
types- [ ] Support for
union
types- [ ] Support for
flags
types- [ ] Confirm lowered-then-lifted interpretation of "always trap" is correct
- [ ] Validate alignment and enable
&[u64]
views and similar- [ ] Double-check behavior of traps with respect to validating in-bounds pointers and intermediate writes of params/results when lifting/lowering
- [x] Split
ComponentValue
into lifting and lowering traits- [ ] Figure out what to do with a lifting a lowered function
- [ ] Figure out what to do with reexporting an imported function
- [ ] Figure out what to do with lowering a lifted function
- [x] Implement may_enter and may_leave flags
Items related to memory64 support
- Need to call
realloc
with a different signature- All reads/writes of pointers to linear memory need to have a 32/64 bit switch
- Reading and writing pointers to
ValRaw
needs to be audited- Size and alignment calculations all need to be duplicated or have a parameter for 64 bit
- Somehow should probably confirm that this doesn't vastly affect performance for 32-bit
Unsure how to implement so far
- Everything with
value
ranging from imports to exports to thestart
function- Calling a function with a dynamic signature
- Defining a host function with a dynamic signature
Open questions
- How to optimize passing
&[u8]
to WebAssembly to amemcpy
?How to handle validation ofValue<T>
coming out of wasm?Not planned at this time
- Importing component-defined functions into a component without any extra copies to the host
- Importing component instances directly into other components
alexcrichton edited issue #4185:
This is intended to be a tracking issue for the implementation of the component model proposal of WebAssembly. I'm in the progress of implementing this with work in Wasmtime starting at https://github.com/bytecodealliance/wasmtime/pull/4005 and continuing in further PRs. I hope to leave checkbox items here to ensure I don't forget about them and to also track the progress of implementing the component model.
Items to be implemented
- [x] Text format parsing
- [x] Validation in
wasmparser
- [x] Basic infrastructure in the
component
submodule of thewasmtime
crate- [x] Basic instantiation with zero imports
- [x] Extracting a function and calling it with a static signature
- [x] Importing host functions into a component
- [x] Importing host instances (bundles of host functions) into a component
- [x] Importing a wasm module into a component
- [x] Exporting a module from a component
- [ ] Nested component compilation
- [ ] Nested component instantiation
- [ ] Outer component aliases
- [ ] Exporting a component from a component
- [ ] Component-to-component adapters (this is a huge work item implying an entire compiler for adapter trampolines)
- [ ] String support for utf16+latin1 (omitted from #4039)
- [ ] Post-return functions
- [ ] Support for
record
types- [ ] Support for
variant
types- [ ] Support for
enum
types- [ ] Support for
union
types- [ ] Support for
flags
types- [ ] Confirm lowered-then-lifted interpretation of "always trap" is correct
- [ ] Validate alignment and enable
&[u64]
views and similar- [ ] Double-check behavior of traps with respect to validating in-bounds pointers and intermediate writes of params/results when lifting/lowering
- [x] Split
ComponentValue
into lifting and lowering traits- [ ] Figure out what to do with a lifting a lowered function
- [ ] Figure out what to do with reexporting an imported function
- [ ] Figure out what to do with lowering a lifted function
- [x] Implement may_enter and may_leave flags
Items related to memory64 support
- Need to call
realloc
with a different signature- All reads/writes of pointers to linear memory need to have a 32/64 bit switch
- Reading and writing pointers to
ValRaw
needs to be audited- Size and alignment calculations all need to be duplicated or have a parameter for 64 bit
- Somehow should probably confirm that this doesn't vastly affect performance for 32-bit
Unsure how to implement so far
- Everything with
value
ranging from imports to exports to thestart
function- Calling a function with a dynamic signature
- Defining a host function with a dynamic signature
Open questions
- How to optimize passing
&[u8]
to WebAssembly to amemcpy
?How to handle validation ofValue<T>
coming out of wasm?Not planned at this time
- Importing component-defined functions into a component without any extra copies to the host
- Importing component instances directly into other components
- Importing a component or exporting a component at the root level
alexcrichton edited issue #4185:
This is intended to be a tracking issue for the implementation of the component model proposal of WebAssembly. I'm in the progress of implementing this with work in Wasmtime starting at https://github.com/bytecodealliance/wasmtime/pull/4005 and continuing in further PRs. I hope to leave checkbox items here to ensure I don't forget about them and to also track the progress of implementing the component model.
Items to be implemented
- [x] Text format parsing
- [x] Validation in
wasmparser
- [x] Basic infrastructure in the
component
submodule of thewasmtime
crate- [x] Basic instantiation with zero imports
- [x] Extracting a function and calling it with a static signature
- [x] Importing host functions into a component
- [x] Importing host instances (bundles of host functions) into a component
- [x] Importing a wasm module into a component
- [x] Exporting a module from a component
- [ ] Nested component compilation
- [ ] Nested component instantiation
- [ ] Outer component aliases
- [ ] Exporting a component from a component
- [ ] Component-to-component adapters (this is a huge work item implying an entire compiler for adapter trampolines)
- [ ] String support for utf16+latin1 (omitted from #4039)
- [ ] Post-return functions
- [ ] Support for
record
types- [ ] Support for
variant
types- [ ] Support for
enum
types- [ ] Support for
union
types- [ ] Support for
flags
types- [ ] Confirm lowered-then-lifted interpretation of "always trap" is correct
- [ ] Validate alignment and enable
&[u64]
views and similar- [ ] Double-check behavior of traps with respect to validating in-bounds pointers and intermediate writes of params/results when lifting/lowering
- [x] Split
ComponentValue
into lifting and lowering traits- [ ] Figure out what to do with a lifting a lowered function
- [ ] Figure out what to do with reexporting an imported function
- [ ] Figure out what to do with lowering a lifted function
- [x] Implement may_enter and may_leave flags
- [ ] Exporting a component instance from the root of a component
Items related to memory64 support
- Need to call
realloc
with a different signature- All reads/writes of pointers to linear memory need to have a 32/64 bit switch
- Reading and writing pointers to
ValRaw
needs to be audited- Size and alignment calculations all need to be duplicated or have a parameter for 64 bit
- Somehow should probably confirm that this doesn't vastly affect performance for 32-bit
Unsure how to implement so far
- Everything with
value
ranging from imports to exports to thestart
function- Calling a function with a dynamic signature
- Defining a host function with a dynamic signature
- Type imports
Open questions
- How to optimize passing
&[u8]
to WebAssembly to amemcpy
?How to handle validation ofValue<T>
coming out of wasm?Not planned at this time
- Importing component-defined functions into a component without any extra copies to the host
- Importing component instances directly into other components
- Importing a component or exporting a component at the root level
alexcrichton edited issue #4185:
This is intended to be a tracking issue for the implementation of the component model proposal of WebAssembly. I'm in the progress of implementing this with work in Wasmtime starting at https://github.com/bytecodealliance/wasmtime/pull/4005 and continuing in further PRs. I hope to leave checkbox items here to ensure I don't forget about them and to also track the progress of implementing the component model.
Items to be implemented
- [x] Text format parsing
- [x] Validation in
wasmparser
- [x] Basic infrastructure in the
component
submodule of thewasmtime
crate- [x] Basic instantiation with zero imports
- [x] Extracting a function and calling it with a static signature
- [x] Importing host functions into a component
- [x] Importing host instances (bundles of host functions) into a component
- [x] Importing a wasm module into a component
- [x] Exporting a module from a component
- [x] Nested component compilation
- [x] Nested component instantiation
- [x] Outer component aliases
- [x] Exporting a component from a component
- [ ] Component-to-component adapters (this is a huge work item implying an entire compiler for adapter trampolines)
- [ ] String support for utf16+latin1 (omitted from #4039)
- [ ] Post-return functions
- [ ] Support for
record
types- [ ] Support for
variant
types- [ ] Support for
enum
types- [ ] Support for
union
types- [ ] Support for
flags
types- [ ] Confirm lowered-then-lifted interpretation of "always trap" is correct
- [ ] Validate alignment and enable
&[u64]
views and similar- [ ] Double-check behavior of traps with respect to validating in-bounds pointers and intermediate writes of params/results when lifting/lowering
- [x] Split
ComponentValue
into lifting and lowering traits- [ ] Figure out what to do with a lifting a lowered function
- [ ] Figure out what to do with reexporting an imported function
- [ ] Figure out what to do with lowering a lifted function
- [x] Implement may_enter and may_leave flags
- [ ] Exporting a component instance from the root of a component
Items related to memory64 support
- Need to call
realloc
with a different signature- All reads/writes of pointers to linear memory need to have a 32/64 bit switch
- Reading and writing pointers to
ValRaw
needs to be audited- Size and alignment calculations all need to be duplicated or have a parameter for 64 bit
- Somehow should probably confirm that this doesn't vastly affect performance for 32-bit
Unsure how to implement so far
- Everything with
value
ranging from imports to exports to thestart
function- Calling a function with a dynamic signature
- Defining a host function with a dynamic signature
- Type imports
Open questions
- How to optimize passing
&[u8]
to WebAssembly to amemcpy
?How to handle validation ofValue<T>
coming out of wasm?Not planned at this time
- Importing component-defined functions into a component without any extra copies to the host
- Importing component instances directly into other components
- Importing a component or exporting a component at the root level
alexcrichton edited issue #4185:
This is intended to be a tracking issue for the implementation of the component model proposal of WebAssembly. I'm in the progress of implementing this with work in Wasmtime starting at https://github.com/bytecodealliance/wasmtime/pull/4005 and continuing in further PRs. I hope to leave checkbox items here to ensure I don't forget about them and to also track the progress of implementing the component model.
Items to be implemented
- [x] Text format parsing
- [x] Validation in
wasmparser
- [x] Basic infrastructure in the
component
submodule of thewasmtime
crate- [x] Basic instantiation with zero imports
- [x] Extracting a function and calling it with a static signature
- [x] Importing host functions into a component
- [x] Importing host instances (bundles of host functions) into a component
- [x] Importing a wasm module into a component
- [x] Exporting a module from a component
- [x] Nested component compilation
- [x] Nested component instantiation
- [x] Outer component aliases
- [ ] Exporting a component from a component
- [ ] Component-to-component adapters (this is a huge work item implying an entire compiler for adapter trampolines)
- [ ] String support for utf16+latin1 (omitted from #4039)
- [ ] Post-return functions
- [ ] Support for
record
types- [ ] Support for
variant
types- [ ] Support for
enum
types- [ ] Support for
union
types- [ ] Support for
flags
types- [ ] Confirm lowered-then-lifted interpretation of "always trap" is correct
- [ ] Validate alignment and enable
&[u64]
views and similar- [ ] Double-check behavior of traps with respect to validating in-bounds pointers and intermediate writes of params/results when lifting/lowering
- [x] Split
ComponentValue
into lifting and lowering traits- [ ] Figure out what to do with a lifting a lowered function
- [ ] Figure out what to do with reexporting an imported function
- [ ] Figure out what to do with lowering a lifted function
- [x] Implement may_enter and may_leave flags
- [ ] Exporting a component instance from the root of a component
Items related to memory64 support
- Need to call
realloc
with a different signature- All reads/writes of pointers to linear memory need to have a 32/64 bit switch
- Reading and writing pointers to
ValRaw
needs to be audited- Size and alignment calculations all need to be duplicated or have a parameter for 64 bit
- Somehow should probably confirm that this doesn't vastly affect performance for 32-bit
Unsure how to implement so far
- Everything with
value
ranging from imports to exports to thestart
function- Calling a function with a dynamic signature
- Defining a host function with a dynamic signature
- Type imports
Open questions
- How to optimize passing
&[u8]
to WebAssembly to amemcpy
?How to handle validation ofValue<T>
coming out of wasm?Not planned at this time
- Importing component-defined functions into a component without any extra copies to the host
- Importing component instances directly into other components
- Importing a component or exporting a component at the root level
alexcrichton edited issue #4185:
This is intended to be a tracking issue for the implementation of the component model proposal of WebAssembly. I'm in the progress of implementing this with work in Wasmtime starting at https://github.com/bytecodealliance/wasmtime/pull/4005 and continuing in further PRs. I hope to leave checkbox items here to ensure I don't forget about them and to also track the progress of implementing the component model.
Items to be implemented
- [x] Text format parsing
- [x] Validation in
wasmparser
- [x] Basic infrastructure in the
component
submodule of thewasmtime
crate- [x] Basic instantiation with zero imports
- [x] Extracting a function and calling it with a static signature
- [x] Importing host functions into a component
- [x] Importing host instances (bundles of host functions) into a component
- [x] Importing a wasm module into a component
- [x] Exporting a module from a component
- [x] Nested component compilation
- [x] Nested component instantiation
- [ ] Outer component aliases
- [ ] Exporting a component from a component
- [ ] Component-to-component adapters (this is a huge work item implying an entire compiler for adapter trampolines)
- [ ] String support for utf16+latin1 (omitted from #4039)
- [ ] Post-return functions
- [ ] Support for
record
types- [ ] Support for
variant
types- [ ] Support for
enum
types- [ ] Support for
union
types- [ ] Support for
flags
types- [ ] Confirm lowered-then-lifted interpretation of "always trap" is correct
- [ ] Validate alignment and enable
&[u64]
views and similar- [ ] Double-check behavior of traps with respect to validating in-bounds pointers and intermediate writes of params/results when lifting/lowering
- [x] Split
ComponentValue
into lifting and lowering traits- [ ] Figure out what to do with a lifting a lowered function
- [ ] Figure out what to do with reexporting an imported function
- [ ] Figure out what to do with lowering a lifted function
- [x] Implement may_enter and may_leave flags
- [ ] Exporting a component instance from the root of a component
Items related to memory64 support
- Need to call
realloc
with a different signature- All reads/writes of pointers to linear memory need to have a 32/64 bit switch
- Reading and writing pointers to
ValRaw
needs to be audited- Size and alignment calculations all need to be duplicated or have a parameter for 64 bit
- Somehow should probably confirm that this doesn't vastly affect performance for 32-bit
Unsure how to implement so far
- Everything with
value
ranging from imports to exports to thestart
function- Calling a function with a dynamic signature
- Defining a host function with a dynamic signature
- Type imports
Open questions
- How to optimize passing
&[u8]
to WebAssembly to amemcpy
?How to handle validation ofValue<T>
coming out of wasm?Not planned at this time
- Importing component-defined functions into a component without any extra copies to the host
- Importing component instances directly into other components
- Importing a component or exporting a component at the root level
alexcrichton edited issue #4185:
This is intended to be a tracking issue for the implementation of the component model proposal of WebAssembly. I'm in the progress of implementing this with work in Wasmtime starting at https://github.com/bytecodealliance/wasmtime/pull/4005 and continuing in further PRs. I hope to leave checkbox items here to ensure I don't forget about them and to also track the progress of implementing the component model.
Items to be implemented
- [x] Text format parsing
- [x] Validation in
wasmparser
- [x] Basic infrastructure in the
component
submodule of thewasmtime
crate- [x] Basic instantiation with zero imports
- [x] Extracting a function and calling it with a static signature
- [x] Importing host functions into a component
- [x] Importing host instances (bundles of host functions) into a component
- [x] Importing a wasm module into a component
- [x] Exporting a module from a component
- [x] Nested component compilation
- [ ] Nested component instantiation
- [ ] Outer component aliases
- [ ] Exporting a component from a component
- [ ] Component-to-component adapters (this is a huge work item implying an entire compiler for adapter trampolines)
- [ ] String support for utf16+latin1 (omitted from #4039)
- [ ] Post-return functions
- [ ] Support for
record
types- [ ] Support for
variant
types- [ ] Support for
enum
types- [ ] Support for
union
types- [ ] Support for
flags
types- [ ] Confirm lowered-then-lifted interpretation of "always trap" is correct
- [ ] Validate alignment and enable
&[u64]
views and similar- [ ] Double-check behavior of traps with respect to validating in-bounds pointers and intermediate writes of params/results when lifting/lowering
- [x] Split
ComponentValue
into lifting and lowering traits- [ ] Figure out what to do with a lifting a lowered function
- [ ] Figure out what to do with reexporting an imported function
- [ ] Figure out what to do with lowering a lifted function
- [x] Implement may_enter and may_leave flags
- [ ] Exporting a component instance from the root of a component
Items related to memory64 support
- Need to call
realloc
with a different signature- All reads/writes of pointers to linear memory need to have a 32/64 bit switch
- Reading and writing pointers to
ValRaw
needs to be audited- Size and alignment calculations all need to be duplicated or have a parameter for 64 bit
- Somehow should probably confirm that this doesn't vastly affect performance for 32-bit
Unsure how to implement so far
- Everything with
value
ranging from imports to exports to thestart
function- Calling a function with a dynamic signature
- Defining a host function with a dynamic signature
- Type imports
Open questions
- How to optimize passing
&[u8]
to WebAssembly to amemcpy
?How to handle validation ofValue<T>
coming out of wasm?Not planned at this time
- Importing component-defined functions into a component without any extra copies to the host
- Importing component instances directly into other components
- Importing a component or exporting a component at the root level
alexcrichton edited issue #4185:
This is intended to be a tracking issue for the implementation of the component model proposal of WebAssembly. I'm in the progress of implementing this with work in Wasmtime starting at https://github.com/bytecodealliance/wasmtime/pull/4005 and continuing in further PRs. I hope to leave checkbox items here to ensure I don't forget about them and to also track the progress of implementing the component model.
Items to be implemented
- [x] Text format parsing
- [x] Validation in
wasmparser
- [x] Basic infrastructure in the
component
submodule of thewasmtime
crate- [x] Basic instantiation with zero imports
- [x] Extracting a function and calling it with a static signature
- [x] Importing host functions into a component
- [x] Importing host instances (bundles of host functions) into a component
- [x] Importing a wasm module into a component
- [x] Exporting a module from a component
- [ ] Nested component compilation
- [ ] Nested component instantiation
- [ ] Outer component aliases
- [ ] Exporting a component from a component
- [ ] Component-to-component adapters (this is a huge work item implying an entire compiler for adapter trampolines)
- [ ] String support for utf16+latin1 (omitted from #4039)
- [ ] Post-return functions
- [ ] Support for
record
types- [ ] Support for
variant
types- [ ] Support for
enum
types- [ ] Support for
union
types- [ ] Support for
flags
types- [ ] Confirm lowered-then-lifted interpretation of "always trap" is correct
- [ ] Validate alignment and enable
&[u64]
views and similar- [ ] Double-check behavior of traps with respect to validating in-bounds pointers and intermediate writes of params/results when lifting/lowering
- [x] Split
ComponentValue
into lifting and lowering traits- [ ] Figure out what to do with a lifting a lowered function
- [ ] Figure out what to do with reexporting an imported function
- [ ] Figure out what to do with lowering a lifted function
- [x] Implement may_enter and may_leave flags
- [ ] Exporting a component instance from the root of a component
Items related to memory64 support
- Need to call
realloc
with a different signature- All reads/writes of pointers to linear memory need to have a 32/64 bit switch
- Reading and writing pointers to
ValRaw
needs to be audited- Size and alignment calculations all need to be duplicated or have a parameter for 64 bit
- Somehow should probably confirm that this doesn't vastly affect performance for 32-bit
Unsure how to implement so far
- Everything with
value
ranging from imports to exports to thestart
function- Calling a function with a dynamic signature
- Defining a host function with a dynamic signature
- Type imports
Open questions
- How to optimize passing
&[u8]
to WebAssembly to amemcpy
?How to handle validation ofValue<T>
coming out of wasm?Not planned at this time
- Importing component-defined functions into a component without any extra copies to the host
- Importing component instances directly into other components
- Importing a component or exporting a component at the root level
alexcrichton edited issue #4185:
This is intended to be a tracking issue for the implementation of the component model proposal of WebAssembly. I'm in the progress of implementing this with work in Wasmtime starting at https://github.com/bytecodealliance/wasmtime/pull/4005 and continuing in further PRs. I hope to leave checkbox items here to ensure I don't forget about them and to also track the progress of implementing the component model.
Items to be implemented
- [x] Text format parsing
- [x] Validation in
wasmparser
- [x] Basic infrastructure in the
component
submodule of thewasmtime
crate- [x] Basic instantiation with zero imports
- [x] Extracting a function and calling it with a static signature
- [x] Importing host functions into a component
- [x] Importing host instances (bundles of host functions) into a component
- [x] Importing a wasm module into a component
- [x] Exporting a module from a component
- [ ] Nested component compilation
- [ ] Nested component instantiation
- [ ] Outer component aliases
- [x] Exporting a component from a component
- [ ] Component-to-component adapters (this is a huge work item implying an entire compiler for adapter trampolines)
- [ ] String support for utf16+latin1 (omitted from #4039)
- [ ] Post-return functions
- [ ] Support for
record
types- [ ] Support for
variant
types- [ ] Support for
enum
types- [ ] Support for
union
types- [ ] Support for
flags
types- [ ] Confirm lowered-then-lifted interpretation of "always trap" is correct
- [ ] Validate alignment and enable
&[u64]
views and similar- [ ] Double-check behavior of traps with respect to validating in-bounds pointers and intermediate writes of params/results when lifting/lowering
- [x] Split
ComponentValue
into lifting and lowering traits- [ ] Figure out what to do with a lifting a lowered function
- [ ] Figure out what to do with reexporting an imported function
- [ ] Figure out what to do with lowering a lifted function
- [x] Implement may_enter and may_leave flags
- [ ] Exporting a component instance from the root of a component
Items related to memory64 support
- Need to call
realloc
with a different signature- All reads/writes of pointers to linear memory need to have a 32/64 bit switch
- Reading and writing pointers to
ValRaw
needs to be audited- Size and alignment calculations all need to be duplicated or have a parameter for 64 bit
- Somehow should probably confirm that this doesn't vastly affect performance for 32-bit
Unsure how to implement so far
- Everything with
value
ranging from imports to exports to thestart
function- Calling a function with a dynamic signature
- Defining a host function with a dynamic signature
- Type imports
Open questions
- How to optimize passing
&[u8]
to WebAssembly to amemcpy
?How to handle validation ofValue<T>
coming out of wasm?Not planned at this time
- Importing component-defined functions into a component without any extra copies to the host
- Importing component instances directly into other components
- Importing a component or exporting a component at the root level
alexcrichton edited issue #4185:
This is intended to be a tracking issue for the implementation of the component model proposal of WebAssembly. I'm in the progress of implementing this with work in Wasmtime starting at https://github.com/bytecodealliance/wasmtime/pull/4005 and continuing in further PRs. I hope to leave checkbox items here to ensure I don't forget about them and to also track the progress of implementing the component model.
Items to be implemented
- [x] Text format parsing
- [x] Validation in
wasmparser
- [x] Basic infrastructure in the
component
submodule of thewasmtime
crate- [x] Basic instantiation with zero imports
- [x] Extracting a function and calling it with a static signature
- [x] Importing host functions into a component
- [x] Importing host instances (bundles of host functions) into a component
- [x] Importing a wasm module into a component
- [x] Exporting a module from a component
- [ ] Nested component compilation
- [ ] Nested component instantiation
- [x] Outer component aliases
- [x] Exporting a component from a component
- [ ] Component-to-component adapters (this is a huge work item implying an entire compiler for adapter trampolines)
- [ ] String support for utf16+latin1 (omitted from #4039)
- [ ] Post-return functions
- [ ] Support for
record
types- [ ] Support for
variant
types- [ ] Support for
enum
types- [ ] Support for
union
types- [ ] Support for
flags
types- [ ] Confirm lowered-then-lifted interpretation of "always trap" is correct
- [ ] Validate alignment and enable
&[u64]
views and similar- [ ] Double-check behavior of traps with respect to validating in-bounds pointers and intermediate writes of params/results when lifting/lowering
- [x] Split
ComponentValue
into lifting and lowering traits- [ ] Figure out what to do with a lifting a lowered function
- [ ] Figure out what to do with reexporting an imported function
- [ ] Figure out what to do with lowering a lifted function
- [x] Implement may_enter and may_leave flags
- [ ] Exporting a component instance from the root of a component
Items related to memory64 support
- Need to call
realloc
with a different signature- All reads/writes of pointers to linear memory need to have a 32/64 bit switch
- Reading and writing pointers to
ValRaw
needs to be audited- Size and alignment calculations all need to be duplicated or have a parameter for 64 bit
- Somehow should probably confirm that this doesn't vastly affect performance for 32-bit
Unsure how to implement so far
- Everything with
value
ranging from imports to exports to thestart
function- Calling a function with a dynamic signature
- Defining a host function with a dynamic signature
- Type imports
Open questions
- How to optimize passing
&[u8]
to WebAssembly to amemcpy
?How to handle validation ofValue<T>
coming out of wasm?Not planned at this time
- Importing component-defined functions into a component without any extra copies to the host
- Importing component instances directly into other components
- Importing a component or exporting a component at the root level
alexcrichton edited issue #4185:
This is intended to be a tracking issue for the implementation of the component model proposal of WebAssembly. I'm in the progress of implementing this with work in Wasmtime starting at https://github.com/bytecodealliance/wasmtime/pull/4005 and continuing in further PRs. I hope to leave checkbox items here to ensure I don't forget about them and to also track the progress of implementing the component model.
Items to be implemented
- [x] Text format parsing
- [x] Validation in
wasmparser
- [x] Basic infrastructure in the
component
submodule of thewasmtime
crate- [x] Basic instantiation with zero imports
- [x] Extracting a function and calling it with a static signature
- [x] Importing host functions into a component
- [x] Importing host instances (bundles of host functions) into a component
- [x] Importing a wasm module into a component
- [x] Exporting a module from a component
- [ ] Nested component compilation
- [x] Nested component instantiation
- [x] Outer component aliases
- [x] Exporting a component from a component
- [ ] Component-to-component adapters (this is a huge work item implying an entire compiler for adapter trampolines)
- [ ] String support for utf16+latin1 (omitted from #4039)
- [ ] Post-return functions
- [ ] Support for
record
types- [ ] Support for
variant
types- [ ] Support for
enum
types- [ ] Support for
union
types- [ ] Support for
flags
types- [ ] Confirm lowered-then-lifted interpretation of "always trap" is correct
- [ ] Validate alignment and enable
&[u64]
views and similar- [ ] Double-check behavior of traps with respect to validating in-bounds pointers and intermediate writes of params/results when lifting/lowering
- [x] Split
ComponentValue
into lifting and lowering traits- [ ] Figure out what to do with a lifting a lowered function
- [ ] Figure out what to do with reexporting an imported function
- [ ] Figure out what to do with lowering a lifted function
- [x] Implement may_enter and may_leave flags
- [ ] Exporting a component instance from the root of a component
Items related to memory64 support
- Need to call
realloc
with a different signature- All reads/writes of pointers to linear memory need to have a 32/64 bit switch
- Reading and writing pointers to
ValRaw
needs to be audited- Size and alignment calculations all need to be duplicated or have a parameter for 64 bit
- Somehow should probably confirm that this doesn't vastly affect performance for 32-bit
Unsure how to implement so far
- Everything with
value
ranging from imports to exports to thestart
function- Calling a function with a dynamic signature
- Defining a host function with a dynamic signature
- Type imports
Open questions
- How to optimize passing
&[u8]
to WebAssembly to amemcpy
?How to handle validation ofValue<T>
coming out of wasm?Not planned at this time
- Importing component-defined functions into a component without any extra copies to the host
- Importing component instances directly into other components
- Importing a component or exporting a component at the root level
alexcrichton edited issue #4185:
This is intended to be a tracking issue for the implementation of the component model proposal of WebAssembly. I'm in the progress of implementing this with work in Wasmtime starting at https://github.com/bytecodealliance/wasmtime/pull/4005 and continuing in further PRs. I hope to leave checkbox items here to ensure I don't forget about them and to also track the progress of implementing the component model.
Items to be implemented
- [x] Text format parsing
- [x] Validation in
wasmparser
- [x] Basic infrastructure in the
component
submodule of thewasmtime
crate- [x] Basic instantiation with zero imports
- [x] Extracting a function and calling it with a static signature
- [x] Importing host functions into a component
- [x] Importing host instances (bundles of host functions) into a component
- [x] Importing a wasm module into a component
- [x] Exporting a module from a component
- [x] Nested component compilation
- [x] Nested component instantiation
- [x] Outer component aliases
- [x] Exporting a component from a component
- [ ] Component-to-component adapters (this is a huge work item implying an entire compiler for adapter trampolines)
- [ ] String support for utf16+latin1 (omitted from #4039)
- [ ] Post-return functions
- [ ] Support for
record
types- [ ] Support for
variant
types- [ ] Support for
enum
types- [ ] Support for
union
types- [ ] Support for
flags
types- [ ] Confirm lowered-then-lifted interpretation of "always trap" is correct
- [ ] Validate alignment and enable
&[u64]
views and similar- [ ] Double-check behavior of traps with respect to validating in-bounds pointers and intermediate writes of params/results when lifting/lowering
- [x] Split
ComponentValue
into lifting and lowering traits- [ ] Figure out what to do with a lifting a lowered function
- [ ] Figure out what to do with reexporting an imported function
- [ ] Figure out what to do with lowering a lifted function
- [x] Implement may_enter and may_leave flags
- [ ] Exporting a component instance from the root of a component
Items related to memory64 support
- Need to call
realloc
with a different signature- All reads/writes of pointers to linear memory need to have a 32/64 bit switch
- Reading and writing pointers to
ValRaw
needs to be audited- Size and alignment calculations all need to be duplicated or have a parameter for 64 bit
- Somehow should probably confirm that this doesn't vastly affect performance for 32-bit
Unsure how to implement so far
- Everything with
value
ranging from imports to exports to thestart
function- Calling a function with a dynamic signature
- Defining a host function with a dynamic signature
- Type imports
Open questions
- How to optimize passing
&[u8]
to WebAssembly to amemcpy
?How to handle validation ofValue<T>
coming out of wasm?Not planned at this time
- Importing component-defined functions into a component without any extra copies to the host
- Importing component instances directly into other components
- Importing a component or exporting a component at the root level
alexcrichton edited issue #4185:
This is intended to be a tracking issue for the implementation of the component model proposal of WebAssembly. I'm in the progress of implementing this with work in Wasmtime starting at https://github.com/bytecodealliance/wasmtime/pull/4005 and continuing in further PRs. I hope to leave checkbox items here to ensure I don't forget about them and to also track the progress of implementing the component model.
Items to be implemented
- [x] Text format parsing
- [x] Validation in
wasmparser
- [x] Basic infrastructure in the
component
submodule of thewasmtime
crate- [x] Basic instantiation with zero imports
- [x] Extracting a function and calling it with a static signature
- [x] Importing host functions into a component
- [x] Importing host instances (bundles of host functions) into a component
- [x] Importing a wasm module into a component
- [x] Exporting a module from a component
- [x] Nested component compilation
- [x] Nested component instantiation
- [x] Outer component aliases
- [x] Exporting a component from a component
- [ ] Component-to-component adapters (this is a huge work item implying an entire compiler for adapter trampolines)
- [ ] String support for utf16+latin1 (omitted from #4039)
- [ ] Post-return functions
- [ ] Support for
record
types- [ ] Support for
variant
types- [ ] Support for
enum
types- [ ] Support for
union
types- [ ] Support for
flags
types- [ ] Confirm lowered-then-lifted interpretation of "always trap" is correct
- [ ] Validate alignment and enable
&[u64]
views and similar- [ ] Double-check behavior of traps with respect to validating in-bounds pointers and intermediate writes of params/results when lifting/lowering
- [x] Split
ComponentValue
into lifting and lowering traits- [ ] Figure out what to do with a lifting a lowered function
- [ ] Figure out what to do with reexporting an imported function
- [ ] Figure out what to do with lowering a lifted function
- [x] Implement may_enter and may_leave flags
- [ ] Exporting a component instance from the root of a component
Items related to memory64 support
- Need to call
realloc
with a different signature- All reads/writes of pointers to linear memory need to have a 32/64 bit switch
- Reading and writing pointers to
ValRaw
needs to be audited- Size and alignment calculations all need to be duplicated or have a parameter for 64 bit
- Somehow should probably confirm that this doesn't vastly affect performance for 32-bit
Unsure how to implement so far
- Everything with
value
ranging from imports to exports to thestart
function- Calling a function with a dynamic signature
- Defining a host function with a dynamic signature
- Type imports
- Unsure how to rationalize performance concerns with validating indirect values like lists from wasm coming to the host.
Open questions
- How to optimize passing
&[u8]
to WebAssembly to amemcpy
?How to handle validation ofValue<T>
coming out of wasm?Not planned at this time
- Importing component-defined functions into a component without any extra copies to the host
- Importing component instances directly into other components
- Importing a component or exporting a component at the root level
alexcrichton edited issue #4185:
This is intended to be a tracking issue for the implementation of the component model proposal of WebAssembly. I'm in the progress of implementing this with work in Wasmtime starting at https://github.com/bytecodealliance/wasmtime/pull/4005 and continuing in further PRs. I hope to leave checkbox items here to ensure I don't forget about them and to also track the progress of implementing the component model.
Items to be implemented
- [x] Text format parsing
- [x] Validation in
wasmparser
- [x] Basic infrastructure in the
component
submodule of thewasmtime
crate- [x] Basic instantiation with zero imports
- [x] Extracting a function and calling it with a static signature
- [x] Importing host functions into a component
- [x] Importing host instances (bundles of host functions) into a component
- [x] Importing a wasm module into a component
- [x] Exporting a module from a component
- [x] Nested component compilation
- [x] Nested component instantiation
- [x] Outer component aliases
- [x] Exporting a component from a component
- [ ] Component-to-component adapters (this is a huge work item implying an entire compiler for adapter trampolines)
- [ ] String support for utf16+latin1 (omitted from #4039)
- [ ] Post-return functions
- [ ] Support for
record
types- [ ] Support for
variant
types- [ ] Support for
enum
types- [ ] Support for
union
types- [ ] Support for
flags
types- [ ] Confirm lowered-then-lifted interpretation of "always trap" is correct
- [ ] Validate alignment and enable
&[u64]
views and similar- [ ] Double-check behavior of traps with respect to validating in-bounds pointers and intermediate writes of params/results when lifting/lowering
- [x] Split
ComponentValue
into lifting and lowering traits- [ ] Figure out what to do with a lifting a lowered function
- [ ] Figure out what to do with reexporting an imported function
- [ ] Figure out what to do with lowering a lifted function
- [x] Implement may_enter and may_leave flags
- [ ] Exporting a component instance from the root of a component
Items related to memory64 support
- Need to call
realloc
with a different signature- All reads/writes of pointers to linear memory need to have a 32/64 bit switch
- Reading and writing pointers to
ValRaw
needs to be audited- Size and alignment calculations all need to be duplicated or have a parameter for 64 bit
- Somehow should probably confirm that this doesn't vastly affect performance for 32-bit
Unsure how to implement so far
- Everything with
value
ranging from imports to exports to thestart
function- Calling a function with a dynamic signature
- Defining a host function with a dynamic signature
- Type imports
- Unsure how to rationalize performance concerns with validating indirect values like lists from wasm coming to the host when balanced with spec-desired behavior of validating everything.
Open questions
- How to optimize passing
&[u8]
to WebAssembly to amemcpy
?How to handle validation ofValue<T>
coming out of wasm?Not planned at this time
- Importing component-defined functions into a component without any extra copies to the host
- Importing component instances directly into other components
- Importing a component or exporting a component at the root level
alexcrichton edited issue #4185:
This is intended to be a tracking issue for the implementation of the component model proposal of WebAssembly. I'm in the progress of implementing this with work in Wasmtime starting at https://github.com/bytecodealliance/wasmtime/pull/4005 and continuing in further PRs. I hope to leave checkbox items here to ensure I don't forget about them and to also track the progress of implementing the component model.
Items to be implemented
- [x] Text format parsing
- [x] Validation in
wasmparser
- [x] Basic infrastructure in the
component
submodule of thewasmtime
crate- [x] Basic instantiation with zero imports
- [x] Extracting a function and calling it with a static signature
- [x] Importing host functions into a component
- [x] Importing host instances (bundles of host functions) into a component
- [x] Importing a wasm module into a component
- [x] Exporting a module from a component
- [x] Nested component compilation
- [x] Nested component instantiation
- [x] Outer component aliases
- [x] Exporting a component from a component
- [ ] Component-to-component adapters (this is a huge work item implying an entire compiler for adapter trampolines)
- [ ] String support for utf16+latin1 (omitted from #4039)
- [ ] Post-return functions
- [ ] Support for
record
types- [ ] Support for
variant
types- [ ] Support for
enum
types- [ ] Support for
union
types- [ ] Support for
flags
types- [ ] Confirm lowered-then-lifted interpretation of "always trap" is correct
- [ ] Validate alignment and enable
&[u64]
views and similar- [ ] Double-check behavior of traps with respect to validating in-bounds pointers and intermediate writes of params/results when lifting/lowering
- [x] Split
ComponentValue
into lifting and lowering traits- [ ] Figure out what to do with a lifting a lowered function
- [ ] Figure out what to do with reexporting an imported function
- [ ] Figure out what to do with lowering a lifted function
- [x] Implement may_enter and may_leave flags
- [ ] Exporting a component instance from the root of a component
Items related to memory64 support
- Need to call
realloc
with a different signature- All reads/writes of pointers to linear memory need to have a 32/64 bit switch
- Reading and writing pointers to
ValRaw
needs to be audited- Size and alignment calculations all need to be duplicated or have a parameter for 64 bit
- Somehow should probably confirm that this doesn't vastly affect performance for 32-bit
Unsure how to implement so far
- Everything with
value
ranging from imports to exports to thestart
function- Calling a function with a dynamic signature
- Defining a host function with a dynamic signature
- Type imports
- Unsure how to rationalize performance concerns with validating indirect values like lists from wasm coming to the host when balanced with spec-desired behavior of validating everything.
Open questions
- How to optimize passing
&[u8]
to WebAssembly to amemcpy
?How to handle validation ofValue<T>
coming out of wasm?Not planned at this time
- Importing component-defined functions into a component without any extra copies to the host
- Importing component instances directly into other components
- Importing a component or exporting a component at the root level
alexcrichton edited issue #4185:
This is intended to be a tracking issue for the implementation of the component model proposal of WebAssembly. I'm in the progress of implementing this with work in Wasmtime starting at https://github.com/bytecodealliance/wasmtime/pull/4005 and continuing in further PRs. I hope to leave checkbox items here to ensure I don't forget about them and to also track the progress of implementing the component model.
Items to be implemented
- [x] Text format parsing
- [x] Validation in
wasmparser
- [x] Basic infrastructure in the
component
submodule of thewasmtime
crate- [x] Basic instantiation with zero imports
- [x] Extracting a function and calling it with a static signature
- [x] Importing host functions into a component
- [x] Importing host instances (bundles of host functions) into a component
- [x] Importing a wasm module into a component
- [x] Exporting a module from a component
- [x] Nested component compilation
- [x] Nested component instantiation
- [x] Outer component aliases
- [x] Exporting a component from a component
- [ ] Component-to-component adapters (this is a huge work item implying an entire compiler for adapter trampolines)
- [ ] String support for utf16+latin1 (omitted from #4039)
- [ ] Post-return functions
- [ ] Support for
record
types- [ ] Support for
variant
types- [ ] Support for
enum
types- [ ] Support for
union
types- [ ] Support for
flags
types- [x] Confirm lowered-then-lifted interpretation of "always trap" is correct
- [ ] Validate alignment and enable
&[u64]
views and similar- [ ] Double-check behavior of traps with respect to validating in-bounds pointers and intermediate writes of params/results when lifting/lowering
- [x] Split
ComponentValue
into lifting and lowering traits- [ ] Figure out what to do with a lifting a lowered function
- [ ] Figure out what to do with reexporting an imported function
- [ ] Figure out what to do with lowering a lifted function
- [x] Implement may_enter and may_leave flags
- [ ] Exporting a component instance from the root of a component
Items related to memory64 support
- Need to call
realloc
with a different signature- All reads/writes of pointers to linear memory need to have a 32/64 bit switch
- Reading and writing pointers to
ValRaw
needs to be audited- Size and alignment calculations all need to be duplicated or have a parameter for 64 bit
- Somehow should probably confirm that this doesn't vastly affect performance for 32-bit
Unsure how to implement so far
- Everything with
value
ranging from imports to exports to thestart
function- Calling a function with a dynamic signature
- Defining a host function with a dynamic signature
- Type imports
- Unsure how to rationalize performance concerns with validating indirect values like lists from wasm coming to the host when balanced with spec-desired behavior of validating everything.
Open questions
- How to optimize passing
&[u8]
to WebAssembly to amemcpy
?How to handle validation ofValue<T>
coming out of wasm?Not planned at this time
- Importing component-defined functions into a component without any extra copies to the host
- Importing component instances directly into other components
- Importing a component or exporting a component at the root level
alexcrichton edited issue #4185:
This is intended to be a tracking issue for the implementation of the component model proposal of WebAssembly. I'm in the progress of implementing this with work in Wasmtime starting at https://github.com/bytecodealliance/wasmtime/pull/4005 and continuing in further PRs. I hope to leave checkbox items here to ensure I don't forget about them and to also track the progress of implementing the component model.
Items to be implemented
- [x] Text format parsing
- [x] Validation in
wasmparser
- [x] Basic infrastructure in the
component
submodule of thewasmtime
crate- [x] Basic instantiation with zero imports
- [x] Extracting a function and calling it with a static signature
- [x] Importing host functions into a component
- [x] Importing host instances (bundles of host functions) into a component
- [x] Importing a wasm module into a component
- [x] Exporting a module from a component
- [x] Nested component compilation
- [x] Nested component instantiation
- [x] Outer component aliases
- [x] Exporting a component from a component
- [ ] Component-to-component adapters (this is a huge work item implying an entire compiler for adapter trampolines)
- [ ] Post-return functions
- [ ] String support for utf16+latin1 (omitted from #4039)
- [ ] Support for
record
types- [ ] Support for
variant
types- [ ] Support for
enum
types- [ ] Support for
union
types- [ ] Support for
flags
types- [x] Confirm lowered-then-lifted interpretation of "always trap" is correct
- [ ] Validate alignment and enable
&[u64]
views and similar- [ ] Double-check behavior of traps with respect to validating in-bounds pointers and intermediate writes of params/results when lifting/lowering
- [x] Split
ComponentValue
into lifting and lowering traits- [ ] Figure out what to do with a lifting a lowered function
- [ ] Figure out what to do with reexporting an imported function
- [ ] Figure out what to do with lowering a lifted function
- [x] Implement may_enter and may_leave flags
- [ ] Exporting a component instance from the root of a component
Items related to memory64 support
- Need to call
realloc
with a different signature- All reads/writes of pointers to linear memory need to have a 32/64 bit switch
- Reading and writing pointers to
ValRaw
needs to be audited- Size and alignment calculations all need to be duplicated or have a parameter for 64 bit
- Somehow should probably confirm that this doesn't vastly affect performance for 32-bit
Unsure how to implement so far
- Everything with
value
ranging from imports to exports to thestart
function- Calling a function with a dynamic signature
- Defining a host function with a dynamic signature
- Type imports
- Unsure how to rationalize performance concerns with validating indirect values like lists from wasm coming to the host when balanced with spec-desired behavior of validating everything.
Open questions
- How to optimize passing
&[u8]
to WebAssembly to amemcpy
?How to handle validation ofValue<T>
coming out of wasm?Not planned at this time
- Importing component-defined functions into a component without any extra copies to the host
- Importing component instances directly into other components
- Importing a component or exporting a component at the root level
alexcrichton edited issue #4185:
This is intended to be a tracking issue for the implementation of the component model proposal of WebAssembly. I'm in the progress of implementing this with work in Wasmtime starting at https://github.com/bytecodealliance/wasmtime/pull/4005 and continuing in further PRs. I hope to leave checkbox items here to ensure I don't forget about them and to also track the progress of implementing the component model.
Items to be implemented
- [x] Text format parsing
- [x] Validation in
wasmparser
- [x] Basic infrastructure in the
component
submodule of thewasmtime
crate- [x] Basic instantiation with zero imports
- [x] Extracting a function and calling it with a static signature
- [x] Importing host functions into a component
- [x] Importing host instances (bundles of host functions) into a component
- [x] Importing a wasm module into a component
- [x] Exporting a module from a component
- [x] Nested component compilation
- [x] Nested component instantiation
- [x] Outer component aliases
- [x] Exporting a component from a component
- [ ] Component-to-component adapters (this is a huge work item implying an entire compiler for adapter trampolines)
- [ ] Post-return functions
- [ ] Validate alignment and enable
&[u64]
views and similar- [ ] String support for utf16+latin1 (omitted from #4039)
- [ ] Support for
record
types- [ ] Support for
variant
types- [ ] Support for
enum
types- [ ] Support for
union
types- [ ] Support for
flags
types- [x] Confirm lowered-then-lifted interpretation of "always trap" is correct
- [ ] Double-check behavior of traps with respect to validating in-bounds pointers and intermediate writes of params/results when lifting/lowering
- [x] Split
ComponentValue
into lifting and lowering traits- [ ] Figure out what to do with a lifting a lowered function
- [ ] Figure out what to do with reexporting an imported function
- [ ] Figure out what to do with lowering a lifted function
- [x] Implement may_enter and may_leave flags
- [ ] Exporting a component instance from the root of a component
Items related to memory64 support
- Need to call
realloc
with a different signature- All reads/writes of pointers to linear memory need to have a 32/64 bit switch
- Reading and writing pointers to
ValRaw
needs to be audited- Size and alignment calculations all need to be duplicated or have a parameter for 64 bit
- Somehow should probably confirm that this doesn't vastly affect performance for 32-bit
Unsure how to implement so far
- Everything with
value
ranging from imports to exports to thestart
function- Calling a function with a dynamic signature
- Defining a host function with a dynamic signature
- Type imports
- Unsure how to rationalize performance concerns with validating indirect values like lists from wasm coming to the host when balanced with spec-desired behavior of validating everything.
Open questions
- How to optimize passing
&[u8]
to WebAssembly to amemcpy
?How to handle validation ofValue<T>
coming out of wasm?Not planned at this time
- Importing component-defined functions into a component without any extra copies to the host
- Importing component instances directly into other components
- Importing a component or exporting a component at the root level
alexcrichton edited issue #4185:
This is intended to be a tracking issue for the implementation of the component model proposal of WebAssembly. I'm in the progress of implementing this with work in Wasmtime starting at https://github.com/bytecodealliance/wasmtime/pull/4005 and continuing in further PRs. I hope to leave checkbox items here to ensure I don't forget about them and to also track the progress of implementing the component model.
Items to be implemented
- [x] Text format parsing
- [x] Validation in
wasmparser
- [x] Basic infrastructure in the
component
submodule of thewasmtime
crate- [x] Basic instantiation with zero imports
- [x] Extracting a function and calling it with a static signature
- [x] Importing host functions into a component
- [x] Importing host instances (bundles of host functions) into a component
- [x] Importing a wasm module into a component
- [x] Exporting a module from a component
- [x] Nested component compilation
- [x] Nested component instantiation
- [x] Outer component aliases
- [x] Exporting a component from a component
- [ ] Component-to-component adapters (this is a huge work item implying an entire compiler for adapter trampolines)
- [ ] Post-return functions
- [ ] Figure out what to do with a lifting a lowered function
- [ ] Validate alignment and enable
&[u64]
views and similar- [ ] String support for utf16+latin1 (omitted from #4039)
- [ ] Support for
record
types- [ ] Support for
variant
types- [ ] Support for
enum
types- [ ] Support for
union
types- [ ] Support for
flags
types- [x] Confirm lowered-then-lifted interpretation of "always trap" is correct
- [ ] Double-check behavior of traps with respect to validating in-bounds pointers and intermediate writes of params/results when lifting/lowering
- [x] Split
ComponentValue
into lifting and lowering traits- [ ] Figure out what to do with reexporting an imported function
- [ ] Figure out what to do with lowering a lifted function
- [x] Implement may_enter and may_leave flags
- [ ] Exporting a component instance from the root of a component
Items related to memory64 support
- Need to call
realloc
with a different signature- All reads/writes of pointers to linear memory need to have a 32/64 bit switch
- Reading and writing pointers to
ValRaw
needs to be audited- Size and alignment calculations all need to be duplicated or have a parameter for 64 bit
- Somehow should probably confirm that this doesn't vastly affect performance for 32-bit
Unsure how to implement so far
- Everything with
value
ranging from imports to exports to thestart
function- Calling a function with a dynamic signature
- Defining a host function with a dynamic signature
- Type imports
- Unsure how to rationalize performance concerns with validating indirect values like lists from wasm coming to the host when balanced with spec-desired behavior of validating everything.
Open questions
- How to optimize passing
&[u8]
to WebAssembly to amemcpy
?How to handle validation ofValue<T>
coming out of wasm?Not planned at this time
- Importing component-defined functions into a component without any extra copies to the host
- Importing component instances directly into other components
- Importing a component or exporting a component at the root level
alexcrichton edited issue #4185:
This is intended to be a tracking issue for the implementation of the component model proposal of WebAssembly. I'm in the progress of implementing this with work in Wasmtime starting at https://github.com/bytecodealliance/wasmtime/pull/4005 and continuing in further PRs. I hope to leave checkbox items here to ensure I don't forget about them and to also track the progress of implementing the component model.
Items to be implemented
- [x] Text format parsing
- [x] Validation in
wasmparser
- [x] Basic infrastructure in the
component
submodule of thewasmtime
crate- [x] Basic instantiation with zero imports
- [x] Extracting a function and calling it with a static signature
- [x] Importing host functions into a component
- [x] Importing host instances (bundles of host functions) into a component
- [x] Importing a wasm module into a component
- [x] Exporting a module from a component
- [x] Nested component compilation
- [x] Nested component instantiation
- [x] Outer component aliases
- [x] Exporting a component from a component
- [ ] Component-to-component adapters (this is a huge work item implying an entire compiler for adapter trampolines)
- [ ] Post-return functions
- [ ] Figure out what to do with a lifting a lowered function
- [ ] Figure out what to do with lowering a lifted function
- [ ] Validate alignment and enable
&[u64]
views and similar- [ ] String support for utf16+latin1 (omitted from #4039)
- [ ] Support for
record
types- [ ] Support for
variant
types- [ ] Support for
enum
types- [ ] Support for
union
types- [ ] Support for
flags
types- [x] Confirm lowered-then-lifted interpretation of "always trap" is correct
- [ ] Double-check behavior of traps with respect to validating in-bounds pointers and intermediate writes of params/results when lifting/lowering
- [x] Split
ComponentValue
into lifting and lowering traits- [ ] Figure out what to do with reexporting an imported function
- [x] Implement may_enter and may_leave flags
- [ ] Exporting a component instance from the root of a component
Items related to memory64 support
- Need to call
realloc
with a different signature- All reads/writes of pointers to linear memory need to have a 32/64 bit switch
- Reading and writing pointers to
ValRaw
needs to be audited- Size and alignment calculations all need to be duplicated or have a parameter for 64 bit
- Somehow should probably confirm that this doesn't vastly affect performance for 32-bit
Unsure how to implement so far
- Everything with
value
ranging from imports to exports to thestart
function- Calling a function with a dynamic signature
- Defining a host function with a dynamic signature
- Type imports
- Unsure how to rationalize performance concerns with validating indirect values like lists from wasm coming to the host when balanced with spec-desired behavior of validating everything.
Open questions
- How to optimize passing
&[u8]
to WebAssembly to amemcpy
?How to handle validation ofValue<T>
coming out of wasm?Not planned at this time
- Importing component-defined functions into a component without any extra copies to the host
- Importing component instances directly into other components
- Importing a component or exporting a component at the root level
alexcrichton edited issue #4185:
This is intended to be a tracking issue for the implementation of the component model proposal of WebAssembly. I'm in the progress of implementing this with work in Wasmtime starting at https://github.com/bytecodealliance/wasmtime/pull/4005 and continuing in further PRs. I hope to leave checkbox items here to ensure I don't forget about them and to also track the progress of implementing the component model.
Items to be implemented
- [x] Text format parsing
- [x] Validation in
wasmparser
- [x] Basic infrastructure in the
component
submodule of thewasmtime
crate- [x] Basic instantiation with zero imports
- [x] Extracting a function and calling it with a static signature
- [x] Importing host functions into a component
- [x] Importing host instances (bundles of host functions) into a component
- [x] Importing a wasm module into a component
- [x] Exporting a module from a component
- [x] Nested component compilation
- [x] Nested component instantiation
- [x] Outer component aliases
- [x] Exporting a component from a component
- [ ] Component-to-component adapters (this is a huge work item implying an entire compiler for adapter trampolines)
- [ ] Post-return functions
- [ ] Figure out what to do with a lifting a lowered function
- [ ] Figure out what to do with lowering a lifted function
- [ ] Figure out what to do with reexporting an imported function
- [ ] Validate alignment and enable
&[u64]
views and similar- [ ] String support for utf16+latin1 (omitted from #4039)
- [ ] Support for
record
types- [ ] Support for
variant
types- [ ] Support for
enum
types- [ ] Support for
union
types- [ ] Support for
flags
types- [x] Confirm lowered-then-lifted interpretation of "always trap" is correct
- [ ] Double-check behavior of traps with respect to validating in-bounds pointers and intermediate writes of params/results when lifting/lowering
- [x] Split
ComponentValue
into lifting and lowering traits- [x] Implement may_enter and may_leave flags
- [ ] Exporting a component instance from the root of a component
Items related to memory64 support
- Need to call
realloc
with a different signature- All reads/writes of pointers to linear memory need to have a 32/64 bit switch
- Reading and writing pointers to
ValRaw
needs to be audited- Size and alignment calculations all need to be duplicated or have a parameter for 64 bit
- Somehow should probably confirm that this doesn't vastly affect performance for 32-bit
Unsure how to implement so far
- Everything with
value
ranging from imports to exports to thestart
function- Calling a function with a dynamic signature
- Defining a host function with a dynamic signature
- Type imports
- Unsure how to rationalize performance concerns with validating indirect values like lists from wasm coming to the host when balanced with spec-desired behavior of validating everything.
Open questions
- How to optimize passing
&[u8]
to WebAssembly to amemcpy
?How to handle validation ofValue<T>
coming out of wasm?Not planned at this time
- Importing component-defined functions into a component without any extra copies to the host
- Importing component instances directly into other components
- Importing a component or exporting a component at the root level
alexcrichton edited issue #4185:
This is intended to be a tracking issue for the implementation of the component model proposal of WebAssembly. I'm in the progress of implementing this with work in Wasmtime starting at https://github.com/bytecodealliance/wasmtime/pull/4005 and continuing in further PRs. I hope to leave checkbox items here to ensure I don't forget about them and to also track the progress of implementing the component model.
Items to be implemented
- [x] Text format parsing
- [x] Validation in
wasmparser
- [x] Basic infrastructure in the
component
submodule of thewasmtime
crate- [x] Basic instantiation with zero imports
- [x] Extracting a function and calling it with a static signature
- [x] Importing host functions into a component
- [x] Importing host instances (bundles of host functions) into a component
- [x] Importing a wasm module into a component
- [x] Exporting a module from a component
- [x] Nested component compilation
- [x] Nested component instantiation
- [x] Outer component aliases
- [x] Exporting a component from a component
- [x] Confirm lowered-then-lifted interpretation of "always trap" is correct
- [ ] Component-to-component adapters (this is a huge work item implying an entire compiler for adapter trampolines)
- [ ] Post-return functions
- [ ] Figure out what to do with a lifting a lowered function
- [ ] Figure out what to do with lowering a lifted function
- [ ] Figure out what to do with reexporting an imported function
- [ ] Validate alignment and enable
&[u64]
views and similar- [ ] String support for utf16+latin1 (omitted from #4039)
- [ ] Support for
record
types- [ ] Support for
variant
types- [ ] Support for
enum
types- [ ] Support for
union
types- [ ] Support for
flags
types- [ ] Double-check behavior of traps with respect to validating in-bounds pointers and intermediate writes of params/results when lifting/lowering
- [x] Split
ComponentValue
into lifting and lowering traits- [x] Implement may_enter and may_leave flags
- [ ] Exporting a component instance from the root of a component
Items related to memory64 support
- Need to call
realloc
with a different signature- All reads/writes of pointers to linear memory need to have a 32/64 bit switch
- Reading and writing pointers to
ValRaw
needs to be audited- Size and alignment calculations all need to be duplicated or have a parameter for 64 bit
- Somehow should probably confirm that this doesn't vastly affect performance for 32-bit
Unsure how to implement so far
- Everything with
value
ranging from imports to exports to thestart
function- Calling a function with a dynamic signature
- Defining a host function with a dynamic signature
- Type imports
- Unsure how to rationalize performance concerns with validating indirect values like lists from wasm coming to the host when balanced with spec-desired behavior of validating everything.
Open questions
- How to optimize passing
&[u8]
to WebAssembly to amemcpy
?How to handle validation ofValue<T>
coming out of wasm?Not planned at this time
- Importing component-defined functions into a component without any extra copies to the host
- Importing component instances directly into other components
- Importing a component or exporting a component at the root level
alexcrichton edited issue #4185:
This is intended to be a tracking issue for the implementation of the component model proposal of WebAssembly. I'm in the progress of implementing this with work in Wasmtime starting at https://github.com/bytecodealliance/wasmtime/pull/4005 and continuing in further PRs. I hope to leave checkbox items here to ensure I don't forget about them and to also track the progress of implementing the component model.
Items to be implemented
- [x] Text format parsing
- [x] Validation in
wasmparser
- [x] Basic infrastructure in the
component
submodule of thewasmtime
crate- [x] Basic instantiation with zero imports
- [x] Extracting a function and calling it with a static signature
- [x] Importing host functions into a component
- [x] Importing host instances (bundles of host functions) into a component
- [x] Importing a wasm module into a component
- [x] Exporting a module from a component
- [x] Nested component compilation
- [x] Nested component instantiation
- [x] Outer component aliases
- [x] Exporting a component from a component
- [x] Confirm lowered-then-lifted interpretation of "always trap" is correct
- [ ] Post-return functions
- [ ] Figure out what to do with a lifting a lowered function
- [ ] Figure out what to do with lowering a lifted function
- [ ] Figure out what to do with reexporting an imported function
- [ ] Validate alignment and enable
&[u64]
views and similar- [ ] String support for utf16+latin1 (omitted from #4039)
- [ ] Component-to-component adapters (this is a huge work item implying an entire compiler for adapter trampolines)
- [ ] Support for
record
types- [ ] Support for
variant
types- [ ] Support for
enum
types- [ ] Support for
union
types- [ ] Support for
flags
types- [ ] Double-check behavior of traps with respect to validating in-bounds pointers and intermediate writes of params/results when lifting/lowering
- [x] Split
ComponentValue
into lifting and lowering traits- [x] Implement may_enter and may_leave flags
- [ ] Exporting a component instance from the root of a component
Items related to memory64 support
- Need to call
realloc
with a different signature- All reads/writes of pointers to linear memory need to have a 32/64 bit switch
- Reading and writing pointers to
ValRaw
needs to be audited- Size and alignment calculations all need to be duplicated or have a parameter for 64 bit
- Somehow should probably confirm that this doesn't vastly affect performance for 32-bit
Unsure how to implement so far
- Everything with
value
ranging from imports to exports to thestart
function- Calling a function with a dynamic signature
- Defining a host function with a dynamic signature
- Type imports
- Unsure how to rationalize performance concerns with validating indirect values like lists from wasm coming to the host when balanced with spec-desired behavior of validating everything.
Open questions
- How to optimize passing
&[u8]
to WebAssembly to amemcpy
?How to handle validation ofValue<T>
coming out of wasm?Not planned at this time
- Importing component-defined functions into a component without any extra copies to the host
- Importing component instances directly into other components
- Importing a component or exporting a component at the root level
alexcrichton edited issue #4185:
This is intended to be a tracking issue for the implementation of the component model proposal of WebAssembly. I'm in the progress of implementing this with work in Wasmtime starting at https://github.com/bytecodealliance/wasmtime/pull/4005 and continuing in further PRs. I hope to leave checkbox items here to ensure I don't forget about them and to also track the progress of implementing the component model.
Items to be implemented
- [x] Text format parsing
- [x] Validation in
wasmparser
- [x] Basic infrastructure in the
component
submodule of thewasmtime
crate- [x] Basic instantiation with zero imports
- [x] Extracting a function and calling it with a static signature
- [x] Importing host functions into a component
- [x] Importing host instances (bundles of host functions) into a component
- [x] Importing a wasm module into a component
- [x] Exporting a module from a component
- [x] Nested component compilation
- [x] Nested component instantiation
- [x] Outer component aliases
- [x] Exporting a component from a component
- [x] Confirm lowered-then-lifted interpretation of "always trap" is correct
- [x] Split
ComponentValue
into lifting and lowering traits- [ ] Post-return functions
- [ ] Figure out what to do with a lifting a lowered function
- [ ] Figure out what to do with lowering a lifted function
- [ ] Figure out what to do with reexporting an imported function
- [ ] Validate alignment and enable
&[u64]
views and similar- [ ] String support for utf16+latin1 (omitted from #4039)
- [ ] Component-to-component adapters (this is a huge work item implying an entire compiler for adapter trampolines)
- [ ] Support for
record
types- [ ] Support for
variant
types- [ ] Support for
enum
types- [ ] Support for
union
types- [ ] Support for
flags
types- [ ] Double-check behavior of traps with respect to validating in-bounds pointers and intermediate writes of params/results when lifting/lowering
- [x] Implement may_enter and may_leave flags
- [ ] Exporting a component instance from the root of a component
Items related to memory64 support
- Need to call
realloc
with a different signature- All reads/writes of pointers to linear memory need to have a 32/64 bit switch
- Reading and writing pointers to
ValRaw
needs to be audited- Size and alignment calculations all need to be duplicated or have a parameter for 64 bit
- Somehow should probably confirm that this doesn't vastly affect performance for 32-bit
Unsure how to implement so far
- Everything with
value
ranging from imports to exports to thestart
function- Calling a function with a dynamic signature
- Defining a host function with a dynamic signature
- Type imports
- Unsure how to rationalize performance concerns with validating indirect values like lists from wasm coming to the host when balanced with spec-desired behavior of validating everything.
Open questions
- How to optimize passing
&[u8]
to WebAssembly to amemcpy
?How to handle validation ofValue<T>
coming out of wasm?Not planned at this time
- Importing component-defined functions into a component without any extra copies to the host
- Importing component instances directly into other components
- Importing a component or exporting a component at the root level
alexcrichton edited issue #4185:
This is intended to be a tracking issue for the implementation of the component model proposal of WebAssembly. I'm in the progress of implementing this with work in Wasmtime starting at https://github.com/bytecodealliance/wasmtime/pull/4005 and continuing in further PRs. I hope to leave checkbox items here to ensure I don't forget about them and to also track the progress of implementing the component model.
Items to be implemented
- [x] Text format parsing
- [x] Validation in
wasmparser
- [x] Basic infrastructure in the
component
submodule of thewasmtime
crate- [x] Basic instantiation with zero imports
- [x] Extracting a function and calling it with a static signature
- [x] Importing host functions into a component
- [x] Importing host instances (bundles of host functions) into a component
- [x] Importing a wasm module into a component
- [x] Exporting a module from a component
- [x] Nested component compilation
- [x] Nested component instantiation
- [x] Outer component aliases
- [x] Exporting a component from a component
- [x] Confirm lowered-then-lifted interpretation of "always trap" is correct
- [x] Split
ComponentValue
into lifting and lowering traits- [x] Implement may_enter and may_leave flags
- [ ] Post-return functions
- [ ] Figure out what to do with a lifting a lowered function
- [ ] Figure out what to do with lowering a lifted function
- [ ] Figure out what to do with reexporting an imported function
- [ ] Validate alignment and enable
&[u64]
views and similar- [ ] String support for utf16+latin1 (omitted from #4039)
- [ ] Component-to-component adapters (this is a huge work item implying an entire compiler for adapter trampolines)
- [ ] Support for
record
types- [ ] Support for
variant
types- [ ] Support for
enum
types- [ ] Support for
union
types- [ ] Support for
flags
types- [ ] Double-check behavior of traps with respect to validating in-bounds pointers and intermediate writes of params/results when lifting/lowering
- [ ] Exporting a component instance from the root of a component
Items related to memory64 support
- Need to call
realloc
with a different signature- All reads/writes of pointers to linear memory need to have a 32/64 bit switch
- Reading and writing pointers to
ValRaw
needs to be audited- Size and alignment calculations all need to be duplicated or have a parameter for 64 bit
- Somehow should probably confirm that this doesn't vastly affect performance for 32-bit
Unsure how to implement so far
- Everything with
value
ranging from imports to exports to thestart
function- Calling a function with a dynamic signature
- Defining a host function with a dynamic signature
- Type imports
- Unsure how to rationalize performance concerns with validating indirect values like lists from wasm coming to the host when balanced with spec-desired behavior of validating everything.
Open questions
- How to optimize passing
&[u8]
to WebAssembly to amemcpy
?How to handle validation ofValue<T>
coming out of wasm?Not planned at this time
- Importing component-defined functions into a component without any extra copies to the host
- Importing component instances directly into other components
- Importing a component or exporting a component at the root level
alexcrichton edited issue #4185:
This is intended to be a tracking issue for the implementation of the component model proposal of WebAssembly. I'm in the progress of implementing this with work in Wasmtime starting at https://github.com/bytecodealliance/wasmtime/pull/4005 and continuing in further PRs. I hope to leave checkbox items here to ensure I don't forget about them and to also track the progress of implementing the component model.
Items to be implemented
- [x] Text format parsing
- [x] Validation in
wasmparser
- [x] Basic infrastructure in the
component
submodule of thewasmtime
crate- [x] Basic instantiation with zero imports
- [x] Extracting a function and calling it with a static signature
- [x] Importing host functions into a component
- [x] Importing host instances (bundles of host functions) into a component
- [x] Importing a wasm module into a component
- [x] Exporting a module from a component
- [x] Nested component compilation
- [x] Nested component instantiation
- [x] Outer component aliases
- [x] Exporting a component from a component
- [x] Confirm lowered-then-lifted interpretation of "always trap" is correct
- [x] Split
ComponentValue
into lifting and lowering traits- [x] Implement may_enter and may_leave flags
- [ ] Post-return functions
- [ ] Figure out what to do with a lifting a lowered function
- [ ] Figure out what to do with lowering a lifted function
- [ ] Figure out what to do with reexporting an imported function
- [ ] Validate alignment and enable
&[u64]
views and similar- [ ] String support for utf16+latin1 (omitted from #4039)
- [ ] Exporting a component instance from the root of a component
- [ ] Component-to-component adapters (this is a huge work item implying an entire compiler for adapter trampolines)
- [ ] Support for
record
types- [ ] Support for
variant
types- [ ] Support for
enum
types- [ ] Support for
union
types- [ ] Support for
flags
types- [ ] Double-check behavior of traps with respect to validating in-bounds pointers and intermediate writes of params/results when lifting/lowering
Items related to memory64 support
- Need to call
realloc
with a different signature- All reads/writes of pointers to linear memory need to have a 32/64 bit switch
- Reading and writing pointers to
ValRaw
needs to be audited- Size and alignment calculations all need to be duplicated or have a parameter for 64 bit
- Somehow should probably confirm that this doesn't vastly affect performance for 32-bit
Unsure how to implement so far
- Everything with
value
ranging from imports to exports to thestart
function- Calling a function with a dynamic signature
- Defining a host function with a dynamic signature
- Type imports
- Unsure how to rationalize performance concerns with validating indirect values like lists from wasm coming to the host when balanced with spec-desired behavior of validating everything.
Open questions
- How to optimize passing
&[u8]
to WebAssembly to amemcpy
?How to handle validation ofValue<T>
coming out of wasm?Not planned at this time
- Importing component-defined functions into a component without any extra copies to the host
- Importing component instances directly into other components
- Importing a component or exporting a component at the root level
alexcrichton edited issue #4185:
This is intended to be a tracking issue for the implementation of the component model proposal of WebAssembly. I'm in the progress of implementing this with work in Wasmtime starting at https://github.com/bytecodealliance/wasmtime/pull/4005 and continuing in further PRs. I hope to leave checkbox items here to ensure I don't forget about them and to also track the progress of implementing the component model.
Items to be implemented
- [x] Text format parsing
- [x] Validation in
wasmparser
- [x] Basic infrastructure in the
component
submodule of thewasmtime
crate- [x] Basic instantiation with zero imports
- [x] Extracting a function and calling it with a static signature
- [x] Importing host functions into a component
- [x] Importing host instances (bundles of host functions) into a component
- [x] Importing a wasm module into a component
- [x] Exporting a module from a component
- [x] Nested component compilation
- [x] Nested component instantiation
- [x] Outer component aliases
- [x] Exporting a component from a component
- [x] Confirm lowered-then-lifted interpretation of "always trap" is correct
- [x] Split
ComponentValue
into lifting and lowering traits- [x] Implement may_enter and may_leave flags
- [ ] Post-return functions
- [ ] Figure out what to do with a lifting a lowered function
- [ ] Figure out what to do with lowering a lifted function
- [ ] Figure out what to do with reexporting an imported function
- [ ] Validate alignment and enable
&[u64]
views and similar- [ ] String support for utf16+latin1 (omitted from #4039)
- [ ] Exporting a component instance from the root of a component
- [ ] Double-check behavior of traps with respect to validating in-bounds pointers and intermediate writes of params/results when lifting/lowering
- [ ] Component-to-component adapters (this is a huge work item implying an entire compiler for adapter trampolines)
- [ ] Support for
record
types- [ ] Support for
variant
types- [ ] Support for
enum
types- [ ] Support for
union
types- [ ] Support for
flags
typesItems related to memory64 support
- Need to call
realloc
with a different signature- All reads/writes of pointers to linear memory need to have a 32/64 bit switch
- Reading and writing pointers to
ValRaw
needs to be audited- Size and alignment calculations all need to be duplicated or have a parameter for 64 bit
- Somehow should probably confirm that this doesn't vastly affect performance for 32-bit
Unsure how to implement so far
- Everything with
value
ranging from imports to exports to thestart
function- Calling a function with a dynamic signature
- Defining a host function with a dynamic signature
- Type imports
- Unsure how to rationalize performance concerns with validating indirect values like lists from wasm coming to the host when balanced with spec-desired behavior of validating everything.
Open questions
- How to optimize passing
&[u8]
to WebAssembly to amemcpy
?How to handle validation ofValue<T>
coming out of wasm?Not planned at this time
- Importing component-defined functions into a component without any extra copies to the host
- Importing component instances directly into other components
- Importing a component or exporting a component at the root level
alexcrichton edited issue #4185:
This is intended to be a tracking issue for the implementation of the component model proposal of WebAssembly. I'm in the progress of implementing this with work in Wasmtime starting at https://github.com/bytecodealliance/wasmtime/pull/4005 and continuing in further PRs. I hope to leave checkbox items here to ensure I don't forget about them and to also track the progress of implementing the component model.
Items to be implemented
- [x] Text format parsing
- [x] Validation in
wasmparser
- [x] Basic infrastructure in the
component
submodule of thewasmtime
crate- [x] Basic instantiation with zero imports
- [x] Extracting a function and calling it with a static signature
- [x] Importing host functions into a component
- [x] Importing host instances (bundles of host functions) into a component
- [x] Importing a wasm module into a component
- [x] Exporting a module from a component
- [x] Nested component compilation
- [x] Nested component instantiation
- [x] Outer component aliases
- [x] Exporting a component from a component
- [x] Confirm lowered-then-lifted interpretation of "always trap" is correct
- [x] Split
ComponentValue
into lifting and lowering traits- [x] Implement may_enter and may_leave flags
- [ ] Post-return functions
- [ ] Figure out what to do with a lifting a lowered function
- [ ] Figure out what to do with lowering a lifted function
- [ ] Figure out what to do with reexporting an imported function
- [ ] Validate alignment and enable
&[u64]
views and similar- [ ] String support for utf16+latin1 (omitted from #4039)
- [ ] Exporting a component instance from the root of a component
- [ ] Double-check behavior of traps with respect to validating in-bounds pointers and intermediate writes of params/results when lifting/lowering
- [ ] Support for
record
types- [ ] Support for
variant
types- [ ] Support for
enum
types- [ ] Support for
union
types- [ ] Support for
flags
types- [ ] Component-to-component adapters (this is a huge work item implying an entire compiler for adapter trampolines)
Items related to memory64 support
- Need to call
realloc
with a different signature- All reads/writes of pointers to linear memory need to have a 32/64 bit switch
- Reading and writing pointers to
ValRaw
needs to be audited- Size and alignment calculations all need to be duplicated or have a parameter for 64 bit
- Somehow should probably confirm that this doesn't vastly affect performance for 32-bit
Unsure how to implement so far
- Everything with
value
ranging from imports to exports to thestart
function- Calling a function with a dynamic signature
- Defining a host function with a dynamic signature
- Type imports
- Unsure how to rationalize performance concerns with validating indirect values like lists from wasm coming to the host when balanced with spec-desired behavior of validating everything.
Open questions
- How to optimize passing
&[u8]
to WebAssembly to amemcpy
?How to handle validation ofValue<T>
coming out of wasm?Not planned at this time
- Importing component-defined functions into a component without any extra copies to the host
- Importing component instances directly into other components
- Importing a component or exporting a component at the root level
alexcrichton edited issue #4185:
This is intended to be a tracking issue for the implementation of the component model proposal of WebAssembly. I'm in the progress of implementing this with work in Wasmtime starting at https://github.com/bytecodealliance/wasmtime/pull/4005 and continuing in further PRs. I hope to leave checkbox items here to ensure I don't forget about them and to also track the progress of implementing the component model.
Items to be implemented
- [x] Text format parsing
- [x] Validation in
wasmparser
- [x] Basic infrastructure in the
component
submodule of thewasmtime
crate- [x] Basic instantiation with zero imports
- [x] Extracting a function and calling it with a static signature
- [x] Importing host functions into a component
- [x] Importing host instances (bundles of host functions) into a component
- [x] Importing a wasm module into a component
- [x] Exporting a module from a component
- [x] Nested component compilation
- [x] Nested component instantiation
- [x] Outer component aliases
- [x] Exporting a component from a component
- [x] Confirm lowered-then-lifted interpretation of "always trap" is correct
- [x] Split
ComponentValue
into lifting and lowering traits- [x] Implement may_enter and may_leave flags
- [ ] Post-return functions
- [ ] Figure out what to do with a lifting a lowered function
- [ ] Figure out what to do with lowering a lifted function
- [ ] Figure out what to do with reexporting an imported function
- [ ] Validate alignment and enable
&[u64]
views and similar- [ ] String support for utf16+latin1 (omitted from #4039)
- [ ] Exporting a component instance from the root of a component
- [ ] Double-check behavior of traps with respect to validating in-bounds pointers and intermediate writes of params/results when lifting/lowering
- [ ] Implement a "lock" for instances for when a trap happens (https://github.com/WebAssembly/component-model/issues/55)
- [ ] Support for
record
types- [ ] Support for
variant
types- [ ] Support for
enum
types- [ ] Support for
union
types- [ ] Support for
flags
types- [ ] Component-to-component adapters (this is a huge work item implying an entire compiler for adapter trampolines)
Items related to memory64 support
- Need to call
realloc
with a different signature- All reads/writes of pointers to linear memory need to have a 32/64 bit switch
- Reading and writing pointers to
ValRaw
needs to be audited- Size and alignment calculations all need to be duplicated or have a parameter for 64 bit
- Somehow should probably confirm that this doesn't vastly affect performance for 32-bit
Unsure how to implement so far
- Everything with
value
ranging from imports to exports to thestart
function- Calling a function with a dynamic signature
- Defining a host function with a dynamic signature
- Type imports
- Unsure how to rationalize performance concerns with validating indirect values like lists from wasm coming to the host when balanced with spec-desired behavior of validating everything.
Open questions
- How to optimize passing
&[u8]
to WebAssembly to amemcpy
?How to handle validation ofValue<T>
coming out of wasm?Not planned at this time
- Importing component-defined functions into a component without any extra copies to the host
- Importing component instances directly into other components
- Importing a component or exporting a component at the root level
fitzgen edited issue #4185:
This is intended to be a tracking issue for the implementation of the component model proposal of WebAssembly. I'm in the progress of implementing this with work in Wasmtime starting at https://github.com/bytecodealliance/wasmtime/pull/4005 and continuing in further PRs. I hope to leave checkbox items here to ensure I don't forget about them and to also track the progress of implementing the component model.
Items to be implemented
- [x] Text format parsing
- [x] Validation in
wasmparser
- [x] Basic infrastructure in the
component
submodule of thewasmtime
crate- [x] Basic instantiation with zero imports
- [x] Extracting a function and calling it with a static signature
- [x] Importing host functions into a component
- [x] Importing host instances (bundles of host functions) into a component
- [x] Importing a wasm module into a component
- [x] Exporting a module from a component
- [x] Nested component compilation
- [x] Nested component instantiation
- [x] Outer component aliases
- [x] Exporting a component from a component
- [x] Confirm lowered-then-lifted interpretation of "always trap" is correct
- [x] Split
ComponentValue
into lifting and lowering traits- [x] Implement may_enter and may_leave flags
- [ ] Post-return functions
- [ ] Figure out what to do with a lifting a lowered function
- [ ] Figure out what to do with lowering a lifted function
- [ ] Figure out what to do with reexporting an imported function
- [ ] Validate alignment and enable
&[u64]
views and similar- [ ] String support for utf16+latin1 (omitted from #4039)
- [ ] Exporting a component instance from the root of a component
- [ ] Double-check behavior of traps with respect to validating in-bounds pointers and intermediate writes of params/results when lifting/lowering
- [ ] Implement a "lock" for instances for when a trap happens (https://github.com/WebAssembly/component-model/issues/55)
- [ ] Support for
record
types- [ ] Support for
variant
types- [ ] Support for
enum
types- [ ] Support for
union
types- [ ] Support for
flags
types- [ ] Component-to-component adapters (this is a huge work item implying an entire compiler for adapter trampolines)
- [ ] Fuzz interface functions: https://github.com/bytecodealliance/wasmtime/issues/4307
Items related to memory64 support
- Need to call
realloc
with a different signature- All reads/writes of pointers to linear memory need to have a 32/64 bit switch
- Reading and writing pointers to
ValRaw
needs to be audited- Size and alignment calculations all need to be duplicated or have a parameter for 64 bit
- Somehow should probably confirm that this doesn't vastly affect performance for 32-bit
Unsure how to implement so far
- Everything with
value
ranging from imports to exports to thestart
function- Calling a function with a dynamic signature
- Defining a host function with a dynamic signature
- Type imports
- Unsure how to rationalize performance concerns with validating indirect values like lists from wasm coming to the host when balanced with spec-desired behavior of validating everything.
Open questions
- How to optimize passing
&[u8]
to WebAssembly to amemcpy
?How to handle validation ofValue<T>
coming out of wasm?Not planned at this time
- Importing component-defined functions into a component without any extra copies to the host
- Importing component instances directly into other components
- Importing a component or exporting a component at the root level
alexcrichton edited issue #4185:
This is intended to be a tracking issue for the implementation of the component model proposal of WebAssembly. I'm in the progress of implementing this with work in Wasmtime starting at https://github.com/bytecodealliance/wasmtime/pull/4005 and continuing in further PRs. I hope to leave checkbox items here to ensure I don't forget about them and to also track the progress of implementing the component model.
Items to be implemented
- [x] Text format parsing
- [x] Validation in
wasmparser
- [x] Basic infrastructure in the
component
submodule of thewasmtime
crate- [x] Basic instantiation with zero imports
- [x] Extracting a function and calling it with a static signature
- [x] Importing host functions into a component
- [x] Importing host instances (bundles of host functions) into a component
- [x] Importing a wasm module into a component
- [x] Exporting a module from a component
- [x] Nested component compilation
- [x] Nested component instantiation
- [x] Outer component aliases
- [x] Exporting a component from a component
- [x] Confirm lowered-then-lifted interpretation of "always trap" is correct
- [x] Split
ComponentValue
into lifting and lowering traits- [x] Implement may_enter and may_leave flags
- [x] Post-return functions
- [ ] Figure out what to do with a lifting a lowered function
- [ ] Figure out what to do with lowering a lifted function
- [ ] Figure out what to do with reexporting an imported function
- [ ] Validate alignment and enable
&[u64]
views and similar- [ ] String support for utf16+latin1 (omitted from #4039)
- [ ] Exporting a component instance from the root of a component
- [ ] Double-check behavior of traps with respect to validating in-bounds pointers and intermediate writes of params/results when lifting/lowering
- [ ] Implement a "lock" for instances for when a trap happens (https://github.com/WebAssembly/component-model/issues/55)
- [ ] Support for
record
types- [ ] Support for
variant
types- [ ] Support for
enum
types- [ ] Support for
union
types- [ ] Support for
flags
types- [ ] Component-to-component adapters (this is a huge work item implying an entire compiler for adapter trampolines)
- [ ] Fuzz interface functions: https://github.com/bytecodealliance/wasmtime/issues/4307
Items related to memory64 support
- Need to call
realloc
with a different signature- All reads/writes of pointers to linear memory need to have a 32/64 bit switch
- Reading and writing pointers to
ValRaw
needs to be audited- Size and alignment calculations all need to be duplicated or have a parameter for 64 bit
- Somehow should probably confirm that this doesn't vastly affect performance for 32-bit
Unsure how to implement so far
- Everything with
value
ranging from imports to exports to thestart
function- Calling a function with a dynamic signature
- Defining a host function with a dynamic signature
- Type imports
- Unsure how to rationalize performance concerns with validating indirect values like lists from wasm coming to the host when balanced with spec-desired behavior of validating everything.
Open questions
- How to optimize passing
&[u8]
to WebAssembly to amemcpy
?How to handle validation ofValue<T>
coming out of wasm?Not planned at this time
- Importing component-defined functions into a component without any extra copies to the host
- Importing component instances directly into other components
- Importing a component or exporting a component at the root level
alexcrichton edited issue #4185:
This is intended to be a tracking issue for the implementation of the component model proposal of WebAssembly. I'm in the progress of implementing this with work in Wasmtime starting at https://github.com/bytecodealliance/wasmtime/pull/4005 and continuing in further PRs. I hope to leave checkbox items here to ensure I don't forget about them and to also track the progress of implementing the component model.
Items to be implemented
- [x] Text format parsing
- [x] Validation in
wasmparser
- [x] Basic infrastructure in the
component
submodule of thewasmtime
crate- [x] Basic instantiation with zero imports
- [x] Extracting a function and calling it with a static signature
- [x] Importing host functions into a component
- [x] Importing host instances (bundles of host functions) into a component
- [x] Importing a wasm module into a component
- [x] Exporting a module from a component
- [x] Nested component compilation
- [x] Nested component instantiation
- [x] Outer component aliases
- [x] Exporting a component from a component
- [x] Confirm lowered-then-lifted interpretation of "always trap" is correct
- [x] Split
ComponentValue
into lifting and lowering traits- [x] Implement may_enter and may_leave flags
- [x] Post-return functions
- [ ] Figure out what to do with a lifting a lowered function
- [ ] Figure out what to do with lowering a lifted function
- [ ] Figure out what to do with reexporting an imported function
- [ ] Validate alignment and enable
&[u64]
views and similar- [ ] Exporting a component instance from the root of a component
- [ ] Double-check behavior of traps with respect to validating in-bounds pointers and intermediate writes of params/results when lifting/lowering
- [ ] Implement a "lock" for instances for when a trap happens (https://github.com/WebAssembly/component-model/issues/55)
- [ ] Component-to-component adapters (this is a huge work item implying an entire compiler for adapter trampolines)
- [ ] Fuzz interface functions: https://github.com/bytecodealliance/wasmtime/issues/4307
Separate work items
I'm starting to separate off work items from this issue to separate tracking issues with more detail. These will all need completion to finish the component model work but these issues are suitable to be picked up by anyone in theory.
- [ ] Support for
record
,variant
,enum
,union
,flags
- [ ] Fuzzing for round-tripping component values
- [ ] String support for utf16+latin1 (omitted from #4039)
Items related to memory64 support
- Need to call
realloc
with a different signature- All reads/writes of pointers to linear memory need to have a 32/64 bit switch
- Reading and writing pointers to
ValRaw
needs to be audited- Size and alignment calculations all need to be duplicated or have a parameter for 64 bit
- Somehow should probably confirm that this doesn't vastly affect performance for 32-bit
Unsure how to implement so far
- Everything with
value
ranging from imports to exports to thestart
function- Calling a function with a dynamic signature
- Defining a host function with a dynamic signature
- Type imports
- Unsure how to rationalize performance concerns with validating indirect values like lists from wasm coming to the host when balanced with spec-desired behavior of validating everything.
Open questions
- How to optimize passing
&[u8]
to WebAssembly to amemcpy
?How to handle validation ofValue<T>
coming out of wasm?Not planned at this time
- Importing component-defined functions into a component without any extra copies to the host
- Importing component instances directly into other components
- Importing a component or exporting a component at the root level
alexcrichton edited issue #4185:
This is intended to be a tracking issue for the implementation of the component model proposal of WebAssembly. I'm in the progress of implementing this with work in Wasmtime starting at https://github.com/bytecodealliance/wasmtime/pull/4005 and continuing in further PRs. I hope to leave checkbox items here to ensure I don't forget about them and to also track the progress of implementing the component model.
Items to be implemented
- [x] Text format parsing
- [x] Validation in
wasmparser
- [x] Basic infrastructure in the
component
submodule of thewasmtime
crate- [x] Basic instantiation with zero imports
- [x] Extracting a function and calling it with a static signature
- [x] Importing host functions into a component
- [x] Importing host instances (bundles of host functions) into a component
- [x] Importing a wasm module into a component
- [x] Exporting a module from a component
- [x] Nested component compilation
- [x] Nested component instantiation
- [x] Outer component aliases
- [x] Exporting a component from a component
- [x] Confirm lowered-then-lifted interpretation of "always trap" is correct
- [x] Split
ComponentValue
into lifting and lowering traits- [x] Implement may_enter and may_leave flags
- [x] Post-return functions
- [ ] Figure out what to do with a lifting a lowered function
- [ ] Figure out what to do with lowering a lifted function
- [ ] Figure out what to do with reexporting an imported function
- [ ] Validate alignment and enable
&[u64]
views and similar- [ ] Exporting a component instance from the root of a component
- [ ] Double-check behavior of traps with respect to validating in-bounds pointers and intermediate writes of params/results when lifting/lowering
- [ ] Implement a "lock" for instances for when a trap happens (https://github.com/WebAssembly/component-model/issues/55)
- [ ] Component-to-component adapters (this is a huge work item implying an entire compiler for adapter trampolines)
Separate work items
I'm starting to separate off work items from this issue to separate tracking issues with more detail. These will all need completion to finish the component model work but these issues are suitable to be picked up by anyone in theory.
- [ ] Support for
record
,variant
,enum
,union
,flags
- [ ] Fuzzing for round-tripping component values
- [ ] String support for utf16+latin1 (omitted from #4039)
- [ ] Calling a function with a dynamic signature
Items related to memory64 support
- Need to call
realloc
with a different signature- All reads/writes of pointers to linear memory need to have a 32/64 bit switch
- Reading and writing pointers to
ValRaw
needs to be audited- Size and alignment calculations all need to be duplicated or have a parameter for 64 bit
- Somehow should probably confirm that this doesn't vastly affect performance for 32-bit
Unsure how to implement so far
- Everything with
value
ranging from imports to exports to thestart
function- Type imports
- Unsure how to rationalize performance concerns with validating indirect values like lists from wasm coming to the host when balanced with spec-desired behavior of validating everything.
Open questions
- How to optimize passing
&[u8]
to WebAssembly to amemcpy
?How to handle validation ofValue<T>
coming out of wasm?Not planned at this time
- Importing component-defined functions into a component without any extra copies to the host
- Importing component instances directly into other components
- Importing a component or exporting a component at the root level
alexcrichton edited issue #4185:
This is intended to be a tracking issue for the implementation of the component model proposal of WebAssembly. I'm in the progress of implementing this with work in Wasmtime starting at https://github.com/bytecodealliance/wasmtime/pull/4005 and continuing in further PRs. I hope to leave checkbox items here to ensure I don't forget about them and to also track the progress of implementing the component model.
Items to be implemented
- [x] Text format parsing
- [x] Validation in
wasmparser
- [x] Basic infrastructure in the
component
submodule of thewasmtime
crate- [x] Basic instantiation with zero imports
- [x] Extracting a function and calling it with a static signature
- [x] Importing host functions into a component
- [x] Importing host instances (bundles of host functions) into a component
- [x] Importing a wasm module into a component
- [x] Exporting a module from a component
- [x] Nested component compilation
- [x] Nested component instantiation
- [x] Outer component aliases
- [x] Exporting a component from a component
- [x] Confirm lowered-then-lifted interpretation of "always trap" is correct
- [x] Split
ComponentValue
into lifting and lowering traits- [x] Implement may_enter and may_leave flags
- [x] Post-return functions
- [ ] Figure out what to do with a lifting a lowered function
- [ ] Figure out what to do with lowering a lifted function
- [ ] Figure out what to do with reexporting an imported function
- [ ] Validate alignment and enable
&[u64]
views and similar- [ ] Exporting a component instance from the root of a component
- [ ] Double-check behavior of traps with respect to validating in-bounds pointers and intermediate writes of params/results when lifting/lowering
- [ ] Implement a "lock" for instances for when a trap happens (https://github.com/WebAssembly/component-model/issues/55)
- [ ] Component-to-component adapters (this is a huge work item implying an entire compiler for adapter trampolines)
Separate work items
I'm starting to separate off work items from this issue to separate tracking issues with more detail. These will all need completion to finish the component model work but these issues are suitable to be picked up by anyone in theory.
- [ ] Support for
record
,variant
,enum
,union
,flags
- [ ] Fuzzing for round-tripping component values
- [ ] String support for utf16+latin1 (omitted from #4039)
- [ ] Calling a function with a dynamic signature
- [ ] Implement components with 64-bit memories
Unsure how to implement so far
- Everything with
value
ranging from imports to exports to thestart
function- Type imports
- Unsure how to rationalize performance concerns with validating indirect values like lists from wasm coming to the host when balanced with spec-desired behavior of validating everything.
Open questions
- How to optimize passing
&[u8]
to WebAssembly to amemcpy
?How to handle validation ofValue<T>
coming out of wasm?Not planned at this time
- Importing component-defined functions into a component without any extra copies to the host
- Importing component instances directly into other components
- Importing a component or exporting a component at the root level
alexcrichton edited issue #4185:
This is intended to be a tracking issue for the implementation of the component model proposal of WebAssembly. I'm in the progress of implementing this with work in Wasmtime starting at https://github.com/bytecodealliance/wasmtime/pull/4005 and continuing in further PRs. I hope to leave checkbox items here to ensure I don't forget about them and to also track the progress of implementing the component model.
Items to be implemented
- [x] Text format parsing
- [x] Validation in
wasmparser
- [x] Basic infrastructure in the
component
submodule of thewasmtime
crate- [x] Basic instantiation with zero imports
- [x] Extracting a function and calling it with a static signature
- [x] Importing host functions into a component
- [x] Importing host instances (bundles of host functions) into a component
- [x] Importing a wasm module into a component
- [x] Exporting a module from a component
- [x] Nested component compilation
- [x] Nested component instantiation
- [x] Outer component aliases
- [x] Exporting a component from a component
- [x] Confirm lowered-then-lifted interpretation of "always trap" is correct
- [x] Split
ComponentValue
into lifting and lowering traits- [x] Implement may_enter and may_leave flags
- [x] Post-return functions
- [ ] Figure out what to do with a lifting a lowered function
- [x] Figure out what to do with lowering a lifted function
- [ ] Figure out what to do with reexporting an imported function
- [ ] Validate alignment and enable
&[u64]
views and similar- [ ] Exporting a component instance from the root of a component
- [ ] Double-check behavior of traps with respect to validating in-bounds pointers and intermediate writes of params/results when lifting/lowering
- [ ] Implement a "lock" for instances for when a trap happens (https://github.com/WebAssembly/component-model/issues/55)
- [ ] Component-to-component adapters (this is a huge work item implying an entire compiler for adapter trampolines)
Separate work items
I'm starting to separate off work items from this issue to separate tracking issues with more detail. These will all need completion to finish the component model work but these issues are suitable to be picked up by anyone in theory.
- [ ] Support for
record
,variant
,enum
,union
,flags
- [ ] Fuzzing for round-tripping component values
- [ ] String support for utf16+latin1 (omitted from #4039)
- [ ] Calling a function with a dynamic signature
Items related to memory64 support
- Need to call
realloc
with a different signature- All reads/writes of pointers to linear memory need to have a 32/64 bit switch
- Reading and writing pointers to
ValRaw
needs to be audited- Size and alignment calculations all need to be duplicated or have a parameter for 64 bit
- Somehow should probably confirm that this doesn't vastly affect performance for 32-bit
Unsure how to implement so far
- Everything with
value
ranging from imports to exports to thestart
function- Type imports
- Unsure how to rationalize performance concerns with validating indirect values like lists from wasm coming to the host when balanced with spec-desired behavior of validating everything.
Open questions
- How to optimize passing
&[u8]
to WebAssembly to amemcpy
?How to handle validation ofValue<T>
coming out of wasm?Not planned at this time
- Importing component-defined functions into a component without any extra copies to the host
- Importing component instances directly into other components
- Importing a component or exporting a component at the root level
alexcrichton edited issue #4185:
This is intended to be a tracking issue for the implementation of the component model proposal of WebAssembly. I'm in the progress of implementing this with work in Wasmtime starting at https://github.com/bytecodealliance/wasmtime/pull/4005 and continuing in further PRs. I hope to leave checkbox items here to ensure I don't forget about them and to also track the progress of implementing the component model.
Items to be implemented
- [x] Text format parsing
- [x] Validation in
wasmparser
- [x] Basic infrastructure in the
component
submodule of thewasmtime
crate- [x] Basic instantiation with zero imports
- [x] Extracting a function and calling it with a static signature
- [x] Importing host functions into a component
- [x] Importing host instances (bundles of host functions) into a component
- [x] Importing a wasm module into a component
- [x] Exporting a module from a component
- [x] Nested component compilation
- [x] Nested component instantiation
- [x] Outer component aliases
- [x] Exporting a component from a component
- [x] Confirm lowered-then-lifted interpretation of "always trap" is correct
- [x] Split
ComponentValue
into lifting and lowering traits- [x] Implement may_enter and may_leave flags
- [x] Post-return functions
- [ ] Figure out what to do with a lifting a lowered function
- [x] Figure out what to do with lowering a lifted function
- [ ] Figure out what to do with reexporting an imported function
- [ ] Validate alignment and enable
&[u64]
views and similar- [ ] Exporting a component instance from the root of a component
- [ ] Double-check behavior of traps with respect to validating in-bounds pointers and intermediate writes of params/results when lifting/lowering
- [ ] Implement a "lock" for instances for when a trap happens (https://github.com/WebAssembly/component-model/issues/55)
- [ ] Component-to-component adapters (this is a huge work item implying an entire compiler for adapter trampolines)
Separate work items
I'm starting to separate off work items from this issue to separate tracking issues with more detail. These will all need completion to finish the component model work but these issues are suitable to be picked up by anyone in theory.
- [ ] Support for
record
,variant
,enum
,union
,flags
- [ ] Fuzzing for round-tripping component values
- [ ] String support for utf16+latin1 (omitted from #4039)
- [ ] Calling a function with a dynamic signature
Items related to memory64 support
- Need to call
realloc
with a different signature- All reads/writes of pointers to linear memory need to have a 32/64 bit switch
- Reading and writing pointers to
ValRaw
needs to be audited- Size and alignment calculations all need to be duplicated or have a parameter for 64 bit
- Somehow should probably confirm that this doesn't vastly affect performance for 32-bit
Unsure how to implement so far
- Everything with
value
ranging from imports to exports to thestart
function- Type imports
- Unsure how to rationalize performance concerns with validating indirect values like lists from wasm coming to the host when balanced with spec-desired behavior of validating everything.
Open questions
- How to optimize passing
&[u8]
to WebAssembly to amemcpy
?How to handle validation ofValue<T>
coming out of wasm?Not planned at this time
- Importing component-defined functions into a component without any extra copies to the host
- Importing component instances directly into other components
- Importing a component or exporting a component at the root level
alexcrichton edited issue #4185:
This is intended to be a tracking issue for the implementation of the component model proposal of WebAssembly. I'm in the progress of implementing this with work in Wasmtime starting at https://github.com/bytecodealliance/wasmtime/pull/4005 and continuing in further PRs. I hope to leave checkbox items here to ensure I don't forget about them and to also track the progress of implementing the component model.
Items to be implemented
- [x] Text format parsing
- [x] Validation in
wasmparser
- [x] Basic infrastructure in the
component
submodule of thewasmtime
crate- [x] Basic instantiation with zero imports
- [x] Extracting a function and calling it with a static signature
- [x] Importing host functions into a component
- [x] Importing host instances (bundles of host functions) into a component
- [x] Importing a wasm module into a component
- [x] Exporting a module from a component
- [x] Nested component compilation
- [x] Nested component instantiation
- [x] Outer component aliases
- [x] Exporting a component from a component
- [x] Confirm lowered-then-lifted interpretation of "always trap" is correct
- [x] Split
ComponentValue
into lifting and lowering traits- [x] Implement may_enter and may_leave flags
- [x] Post-return functions
- [ ] Figure out what to do with a lifting a lowered function
- [ ] Figure out what to do with lowering a lifted function
- [ ] Figure out what to do with reexporting an imported function
- [ ] Validate alignment and enable
&[u64]
views and similar- [ ] Exporting a component instance from the root of a component
- [ ] Double-check behavior of traps with respect to validating in-bounds pointers and intermediate writes of params/results when lifting/lowering
- [ ] Implement a "lock" for instances for when a trap happens (https://github.com/WebAssembly/component-model/issues/55)
- [ ] Component-to-component adapters (this is a huge work item implying an entire compiler for adapter trampolines)
Separate work items
I'm starting to separate off work items from this issue to separate tracking issues with more detail. These will all need completion to finish the component model work but these issues are suitable to be picked up by anyone in theory.
- [ ] Support for
record
,variant
,enum
,union
,flags
- [ ] Fuzzing for round-tripping component values
- [ ] String support for utf16+latin1 (omitted from #4039)
- [ ] Calling a function with a dynamic signature
Items related to memory64 support
- Need to call
realloc
with a different signature- All reads/writes of pointers to linear memory need to have a 32/64 bit switch
- Reading and writing pointers to
ValRaw
needs to be audited- Size and alignment calculations all need to be duplicated or have a parameter for 64 bit
- Somehow should probably confirm that this doesn't vastly affect performance for 32-bit
Unsure how to implement so far
- Everything with
value
ranging from imports to exports to thestart
function- Type imports
- Unsure how to rationalize performance concerns with validating indirect values like lists from wasm coming to the host when balanced with spec-desired behavior of validating everything.
Open questions
- How to optimize passing
&[u8]
to WebAssembly to amemcpy
?How to handle validation ofValue<T>
coming out of wasm?Not planned at this time
- Importing component-defined functions into a component without any extra copies to the host
- Importing component instances directly into other components
- Importing a component or exporting a component at the root level
alexcrichton edited issue #4185:
This is intended to be a tracking issue for the implementation of the component model proposal of WebAssembly. I'm in the progress of implementing this with work in Wasmtime starting at https://github.com/bytecodealliance/wasmtime/pull/4005 and continuing in further PRs. I hope to leave checkbox items here to ensure I don't forget about them and to also track the progress of implementing the component model.
Items to be implemented
- [x] Text format parsing
- [x] Validation in
wasmparser
- [x] Basic infrastructure in the
component
submodule of thewasmtime
crate- [x] Basic instantiation with zero imports
- [x] Extracting a function and calling it with a static signature
- [x] Importing host functions into a component
- [x] Importing host instances (bundles of host functions) into a component
- [x] Importing a wasm module into a component
- [x] Exporting a module from a component
- [x] Nested component compilation
- [x] Nested component instantiation
- [x] Outer component aliases
- [x] Exporting a component from a component
- [x] Confirm lowered-then-lifted interpretation of "always trap" is correct
- [x] Split
ComponentValue
into lifting and lowering traits- [x] Implement may_enter and may_leave flags
- [x] Post-return functions
- [ ] Figure out what to do with lowering a lifted function
- [ ] Figure out what to do with a lifting a lowered function
- [ ] Figure out what to do with reexporting an imported function
- [ ] Validate alignment and enable
&[u64]
views and similar- [ ] Exporting a component instance from the root of a component
- [ ] Double-check behavior of traps with respect to validating in-bounds pointers and intermediate writes of params/results when lifting/lowering
- [ ] Implement a "lock" for instances for when a trap happens (https://github.com/WebAssembly/component-model/issues/55)
- [ ] Component-to-component adapters (this is a huge work item implying an entire compiler for adapter trampolines)
Separate work items
I'm starting to separate off work items from this issue to separate tracking issues with more detail. These will all need completion to finish the component model work but these issues are suitable to be picked up by anyone in theory.
- [ ] Support for
record
,variant
,enum
,union
,flags
- [ ] Fuzzing for round-tripping component values
- [ ] String support for utf16+latin1 (omitted from #4039)
- [ ] Calling a function with a dynamic signature
Items related to memory64 support
- Need to call
realloc
with a different signature- All reads/writes of pointers to linear memory need to have a 32/64 bit switch
- Reading and writing pointers to
ValRaw
needs to be audited- Size and alignment calculations all need to be duplicated or have a parameter for 64 bit
- Somehow should probably confirm that this doesn't vastly affect performance for 32-bit
Unsure how to implement so far
- Everything with
value
ranging from imports to exports to thestart
function- Type imports
- Unsure how to rationalize performance concerns with validating indirect values like lists from wasm coming to the host when balanced with spec-desired behavior of validating everything.
Open questions
- How to optimize passing
&[u8]
to WebAssembly to amemcpy
?How to handle validation ofValue<T>
coming out of wasm?Not planned at this time
- Importing component-defined functions into a component without any extra copies to the host
- Importing component instances directly into other components
- Importing a component or exporting a component at the root level
alexcrichton edited issue #4185:
This is intended to be a tracking issue for the implementation of the component model proposal of WebAssembly. I'm in the progress of implementing this with work in Wasmtime starting at https://github.com/bytecodealliance/wasmtime/pull/4005 and continuing in further PRs. I hope to leave checkbox items here to ensure I don't forget about them and to also track the progress of implementing the component model.
Items to be implemented
- [x] Text format parsing
- [x] Validation in
wasmparser
- [x] Basic infrastructure in the
component
submodule of thewasmtime
crate- [x] Basic instantiation with zero imports
- [x] Extracting a function and calling it with a static signature
- [x] Importing host functions into a component
- [x] Importing host instances (bundles of host functions) into a component
- [x] Importing a wasm module into a component
- [x] Exporting a module from a component
- [x] Nested component compilation
- [x] Nested component instantiation
- [x] Outer component aliases
- [x] Exporting a component from a component
- [x] Confirm lowered-then-lifted interpretation of "always trap" is correct
- [x] Split
ComponentValue
into lifting and lowering traits- [x] Implement may_enter and may_leave flags
- [x] Post-return functions
- [ ] Figure out what to do with lowering a lifted function
- [ ] Validate alignment and enable
&[u64]
views and similar- [ ] Figure out what to do with a lifting a lowered function
- [ ] Figure out what to do with reexporting an imported function
- [ ] Exporting a component instance from the root of a component
- [ ] Double-check behavior of traps with respect to validating in-bounds pointers and intermediate writes of params/results when lifting/lowering
- [ ] Implement a "lock" for instances for when a trap happens (https://github.com/WebAssembly/component-model/issues/55)
- [ ] Component-to-component adapters (this is a huge work item implying an entire compiler for adapter trampolines)
Separate work items
I'm starting to separate off work items from this issue to separate tracking issues with more detail. These will all need completion to finish the component model work but these issues are suitable to be picked up by anyone in theory.
- [ ] Support for
record
,variant
,enum
,union
,flags
- [ ] Fuzzing for round-tripping component values
- [ ] String support for utf16+latin1 (omitted from #4039)
- [ ] Calling a function with a dynamic signature
Items related to memory64 support
- Need to call
realloc
with a different signature- All reads/writes of pointers to linear memory need to have a 32/64 bit switch
- Reading and writing pointers to
ValRaw
needs to be audited- Size and alignment calculations all need to be duplicated or have a parameter for 64 bit
- Somehow should probably confirm that this doesn't vastly affect performance for 32-bit
Unsure how to implement so far
- Everything with
value
ranging from imports to exports to thestart
function- Type imports
- Unsure how to rationalize performance concerns with validating indirect values like lists from wasm coming to the host when balanced with spec-desired behavior of validating everything.
Open questions
- How to optimize passing
&[u8]
to WebAssembly to amemcpy
?How to handle validation ofValue<T>
coming out of wasm?Not planned at this time
- Importing component-defined functions into a component without any extra copies to the host
- Importing component instances directly into other components
- Importing a component or exporting a component at the root level
alexcrichton edited issue #4185:
This is intended to be a tracking issue for the implementation of the component model proposal of WebAssembly. I'm in the progress of implementing this with work in Wasmtime starting at https://github.com/bytecodealliance/wasmtime/pull/4005 and continuing in further PRs. I hope to leave checkbox items here to ensure I don't forget about them and to also track the progress of implementing the component model.
Items to be implemented
- [x] Text format parsing
- [x] Validation in
wasmparser
- [x] Basic infrastructure in the
component
submodule of thewasmtime
crate- [x] Basic instantiation with zero imports
- [x] Extracting a function and calling it with a static signature
- [x] Importing host functions into a component
- [x] Importing host instances (bundles of host functions) into a component
- [x] Importing a wasm module into a component
- [x] Exporting a module from a component
- [x] Nested component compilation
- [x] Nested component instantiation
- [x] Outer component aliases
- [x] Exporting a component from a component
- [x] Confirm lowered-then-lifted interpretation of "always trap" is correct
- [x] Split
ComponentValue
into lifting and lowering traits- [x] Implement may_enter and may_leave flags
- [x] Post-return functions
- [ ] Figure out what to do with lowering a lifted function
- [x] Validate alignment and enable
&[u64]
views and similar- [ ] Figure out what to do with a lifting a lowered function
- [ ] Figure out what to do with reexporting an imported function
- [ ] Exporting a component instance from the root of a component
- [ ] Double-check behavior of traps with respect to validating in-bounds pointers and intermediate writes of params/results when lifting/lowering
- [ ] Implement a "lock" for instances for when a trap happens (https://github.com/WebAssembly/component-model/issues/55)
- [ ] Component-to-component adapters (this is a huge work item implying an entire compiler for adapter trampolines)
Separate work items
I'm starting to separate off work items from this issue to separate tracking issues with more detail. These will all need completion to finish the component model work but these issues are suitable to be picked up by anyone in theory.
- [ ] Support for
record
,variant
,enum
,union
,flags
- [ ] Fuzzing for round-tripping component values
- [ ] String support for utf16+latin1 (omitted from #4039)
- [ ] Calling a function with a dynamic signature
Items related to memory64 support
- Need to call
realloc
with a different signature- All reads/writes of pointers to linear memory need to have a 32/64 bit switch
- Reading and writing pointers to
ValRaw
needs to be audited- Size and alignment calculations all need to be duplicated or have a parameter for 64 bit
- Somehow should probably confirm that this doesn't vastly affect performance for 32-bit
Unsure how to implement so far
- Everything with
value
ranging from imports to exports to thestart
function- Type imports
- Unsure how to rationalize performance concerns with validating indirect values like lists from wasm coming to the host when balanced with spec-desired behavior of validating everything.
Open questions
- How to optimize passing
&[u8]
to WebAssembly to amemcpy
?How to handle validation ofValue<T>
coming out of wasm?Not planned at this time
- Importing component-defined functions into a component without any extra copies to the host
- Importing component instances directly into other components
- Importing a component or exporting a component at the root level
alexcrichton edited issue #4185:
This is intended to be a tracking issue for the implementation of the component model proposal of WebAssembly. I'm in the progress of implementing this with work in Wasmtime starting at https://github.com/bytecodealliance/wasmtime/pull/4005 and continuing in further PRs. I hope to leave checkbox items here to ensure I don't forget about them and to also track the progress of implementing the component model.
Items to be implemented
- [x] Text format parsing
- [x] Validation in
wasmparser
- [x] Basic infrastructure in the
component
submodule of thewasmtime
crate- [x] Basic instantiation with zero imports
- [x] Extracting a function and calling it with a static signature
- [x] Importing host functions into a component
- [x] Importing host instances (bundles of host functions) into a component
- [x] Importing a wasm module into a component
- [x] Exporting a module from a component
- [x] Nested component compilation
- [x] Nested component instantiation
- [x] Outer component aliases
- [x] Exporting a component from a component
- [x] Confirm lowered-then-lifted interpretation of "always trap" is correct
- [x] Split
ComponentValue
into lifting and lowering traits- [x] Implement may_enter and may_leave flags
- [x] Post-return functions
- [x] Validate alignment and enable
&[u64]
views and similar- [ ] Figure out what to do with lowering a lifted function
- [ ] Figure out what to do with a lifting a lowered function
- [ ] Figure out what to do with reexporting an imported function
- [ ] Exporting a component instance from the root of a component
- [ ] Double-check behavior of traps with respect to validating in-bounds pointers and intermediate writes of params/results when lifting/lowering
- [ ] Implement a "lock" for instances for when a trap happens (https://github.com/WebAssembly/component-model/issues/55)
- [ ] Component-to-component adapters (this is a huge work item implying an entire compiler for adapter trampolines)
Separate work items
I'm starting to separate off work items from this issue to separate tracking issues with more detail. These will all need completion to finish the component model work but these issues are suitable to be picked up by anyone in theory.
- [ ] Support for
record
,variant
,enum
,union
,flags
- [ ] Fuzzing for round-tripping component values
- [ ] String support for utf16+latin1 (omitted from #4039)
- [ ] Calling a function with a dynamic signature
Items related to memory64 support
- Need to call
realloc
with a different signature- All reads/writes of pointers to linear memory need to have a 32/64 bit switch
- Reading and writing pointers to
ValRaw
needs to be audited- Size and alignment calculations all need to be duplicated or have a parameter for 64 bit
- Somehow should probably confirm that this doesn't vastly affect performance for 32-bit
Unsure how to implement so far
- Everything with
value
ranging from imports to exports to thestart
function- Type imports
- Unsure how to rationalize performance concerns with validating indirect values like lists from wasm coming to the host when balanced with spec-desired behavior of validating everything.
Open questions
- How to optimize passing
&[u8]
to WebAssembly to amemcpy
?How to handle validation ofValue<T>
coming out of wasm?Not planned at this time
- Importing component-defined functions into a component without any extra copies to the host
- Importing component instances directly into other components
- Importing a component or exporting a component at the root level
alexcrichton edited issue #4185:
This is intended to be a tracking issue for the implementation of the component model proposal of WebAssembly. I'm in the progress of implementing this with work in Wasmtime starting at https://github.com/bytecodealliance/wasmtime/pull/4005 and continuing in further PRs. I hope to leave checkbox items here to ensure I don't forget about them and to also track the progress of implementing the component model.
Items to be implemented
- [x] Text format parsing
- [x] Validation in
wasmparser
- [x] Basic infrastructure in the
component
submodule of thewasmtime
crate- [x] Basic instantiation with zero imports
- [x] Extracting a function and calling it with a static signature
- [x] Importing host functions into a component
- [x] Importing host instances (bundles of host functions) into a component
- [x] Importing a wasm module into a component
- [x] Exporting a module from a component
- [x] Nested component compilation
- [x] Nested component instantiation
- [x] Outer component aliases
- [x] Exporting a component from a component
- [x] Confirm lowered-then-lifted interpretation of "always trap" is correct
- [x] Split
ComponentValue
into lifting and lowering traits- [x] Implement may_enter and may_leave flags
- [x] Post-return functions
- [x] Validate alignment and enable
&[u64]
views and similar- [x] Figure out what to do with lowering a lifted function
- [ ] Figure out what to do with a lifting a lowered function
- [ ] Figure out what to do with reexporting an imported function
- [ ] Exporting a component instance from the root of a component
- [ ] Double-check behavior of traps with respect to validating in-bounds pointers and intermediate writes of params/results when lifting/lowering
- [ ] Implement a "lock" for instances for when a trap happens (https://github.com/WebAssembly/component-model/issues/55)
- [ ] Component-to-component adapters (this is a huge work item implying an entire compiler for adapter trampolines)
Separate work items
I'm starting to separate off work items from this issue to separate tracking issues with more detail. These will all need completion to finish the component model work but these issues are suitable to be picked up by anyone in theory.
- [ ] Support for
record
,variant
,enum
,union
,flags
- [ ] Fuzzing for round-tripping component values
- [ ] String support for utf16+latin1 (omitted from #4039)
- [ ] Calling a function with a dynamic signature
Items related to memory64 support
- Need to call
realloc
with a different signature- All reads/writes of pointers to linear memory need to have a 32/64 bit switch
- Reading and writing pointers to
ValRaw
needs to be audited- Size and alignment calculations all need to be duplicated or have a parameter for 64 bit
- Somehow should probably confirm that this doesn't vastly affect performance for 32-bit
Unsure how to implement so far
- Everything with
value
ranging from imports to exports to thestart
function- Type imports
- Unsure how to rationalize performance concerns with validating indirect values like lists from wasm coming to the host when balanced with spec-desired behavior of validating everything.
Open questions
- How to optimize passing
&[u8]
to WebAssembly to amemcpy
?How to handle validation ofValue<T>
coming out of wasm?Not planned at this time
- Importing component-defined functions into a component without any extra copies to the host
- Importing component instances directly into other components
- Importing a component or exporting a component at the root level
alexcrichton edited issue #4185:
This is intended to be a tracking issue for the implementation of the component model proposal of WebAssembly. I'm in the progress of implementing this with work in Wasmtime starting at https://github.com/bytecodealliance/wasmtime/pull/4005 and continuing in further PRs. I hope to leave checkbox items here to ensure I don't forget about them and to also track the progress of implementing the component model.
Items to be implemented
- [x] Text format parsing
- [x] Validation in
wasmparser
- [x] Basic infrastructure in the
component
submodule of thewasmtime
crate- [x] Basic instantiation with zero imports
- [x] Extracting a function and calling it with a static signature
- [x] Importing host functions into a component
- [x] Importing host instances (bundles of host functions) into a component
- [x] Importing a wasm module into a component
- [x] Exporting a module from a component
- [x] Nested component compilation
- [x] Nested component instantiation
- [x] Outer component aliases
- [x] Exporting a component from a component
- [x] Confirm lowered-then-lifted interpretation of "always trap" is correct
- [x] Split
ComponentValue
into lifting and lowering traits- [x] Implement may_enter and may_leave flags
- [x] Post-return functions
- [x] Validate alignment and enable
&[u64]
views and similar- [x] Figure out what to do with lowering a lifted function
- [ ] Figure out what to do with a lifting a lowered function
- [ ] Implement a "lock" for instances for when a trap happens (https://github.com/WebAssembly/component-model/issues/55)
- [ ] Figure out what to do with reexporting an imported function
- [ ] Exporting a component instance from the root of a component
- [ ] Double-check behavior of traps with respect to validating in-bounds pointers and intermediate writes of params/results when lifting/lowering
- [ ] Component-to-component adapters (this is a huge work item implying an entire compiler for adapter trampolines)
Separate work items
I'm starting to separate off work items from this issue to separate tracking issues with more detail. These will all need completion to finish the component model work but these issues are suitable to be picked up by anyone in theory.
- [ ] Support for
record
,variant
,enum
,union
,flags
- [ ] Fuzzing for round-tripping component values
- [ ] String support for utf16+latin1 (omitted from #4039)
- [ ] Calling a function with a dynamic signature
Items related to memory64 support
- Need to call
realloc
with a different signature- All reads/writes of pointers to linear memory need to have a 32/64 bit switch
- Reading and writing pointers to
ValRaw
needs to be audited- Size and alignment calculations all need to be duplicated or have a parameter for 64 bit
- Somehow should probably confirm that this doesn't vastly affect performance for 32-bit
Unsure how to implement so far
- Everything with
value
ranging from imports to exports to thestart
function- Type imports
- Unsure how to rationalize performance concerns with validating indirect values like lists from wasm coming to the host when balanced with spec-desired behavior of validating everything.
Open questions
- How to optimize passing
&[u8]
to WebAssembly to amemcpy
?How to handle validation ofValue<T>
coming out of wasm?Not planned at this time
- Importing component-defined functions into a component without any extra copies to the host
- Importing component instances directly into other components
- Importing a component or exporting a component at the root level
alexcrichton edited issue #4185:
This is intended to be a tracking issue for the implementation of the component model proposal of WebAssembly. I'm in the progress of implementing this with work in Wasmtime starting at https://github.com/bytecodealliance/wasmtime/pull/4005 and continuing in further PRs. I hope to leave checkbox items here to ensure I don't forget about them and to also track the progress of implementing the component model.
Items to be implemented
- [x] Text format parsing
- [x] Validation in
wasmparser
- [x] Basic infrastructure in the
component
submodule of thewasmtime
crate- [x] Basic instantiation with zero imports
- [x] Extracting a function and calling it with a static signature
- [x] Importing host functions into a component
- [x] Importing host instances (bundles of host functions) into a component
- [x] Importing a wasm module into a component
- [x] Exporting a module from a component
- [x] Nested component compilation
- [x] Nested component instantiation
- [x] Outer component aliases
- [x] Exporting a component from a component
- [x] Confirm lowered-then-lifted interpretation of "always trap" is correct
- [x] Split
ComponentValue
into lifting and lowering traits- [x] Implement may_enter and may_leave flags
- [x] Post-return functions
- [x] Validate alignment and enable
&[u64]
views and similar- [x] Figure out what to do with lowering a lifted function
- [ ] Figure out what to do with a lifting a lowered function
- [ ] Implement a "lock" for instances for when a trap happens (https://github.com/WebAssembly/component-model/issues/55)
- [ ] Exporting a component instance from the root of a component
- [ ] Figure out what to do with reexporting an imported function
- [ ] Double-check behavior of traps with respect to validating in-bounds pointers and intermediate writes of params/results when lifting/lowering
- [ ] Component-to-component adapters (this is a huge work item implying an entire compiler for adapter trampolines)
Separate work items
I'm starting to separate off work items from this issue to separate tracking issues with more detail. These will all need completion to finish the component model work but these issues are suitable to be picked up by anyone in theory.
- [ ] Support for
record
,variant
,enum
,union
,flags
- [ ] Fuzzing for round-tripping component values
- [ ] String support for utf16+latin1 (omitted from #4039)
- [ ] Calling a function with a dynamic signature
Items related to memory64 support
- Need to call
realloc
with a different signature- All reads/writes of pointers to linear memory need to have a 32/64 bit switch
- Reading and writing pointers to
ValRaw
needs to be audited- Size and alignment calculations all need to be duplicated or have a parameter for 64 bit
- Somehow should probably confirm that this doesn't vastly affect performance for 32-bit
Unsure how to implement so far
- Everything with
value
ranging from imports to exports to thestart
function- Type imports
- Unsure how to rationalize performance concerns with validating indirect values like lists from wasm coming to the host when balanced with spec-desired behavior of validating everything.
Open questions
- How to optimize passing
&[u8]
to WebAssembly to amemcpy
?How to handle validation ofValue<T>
coming out of wasm?Not planned at this time
- Importing component-defined functions into a component without any extra copies to the host
- Importing component instances directly into other components
- Importing a component or exporting a component at the root level
alexcrichton edited issue #4185:
This is intended to be a tracking issue for the implementation of the component model proposal of WebAssembly. I'm in the progress of implementing this with work in Wasmtime starting at https://github.com/bytecodealliance/wasmtime/pull/4005 and continuing in further PRs. I hope to leave checkbox items here to ensure I don't forget about them and to also track the progress of implementing the component model.
Items to be implemented
- [x] Text format parsing
- [x] Validation in
wasmparser
- [x] Basic infrastructure in the
component
submodule of thewasmtime
crate- [x] Basic instantiation with zero imports
- [x] Extracting a function and calling it with a static signature
- [x] Importing host functions into a component
- [x] Importing host instances (bundles of host functions) into a component
- [x] Importing a wasm module into a component
- [x] Exporting a module from a component
- [x] Nested component compilation
- [x] Nested component instantiation
- [x] Outer component aliases
- [x] Exporting a component from a component
- [x] Confirm lowered-then-lifted interpretation of "always trap" is correct
- [x] Split
ComponentValue
into lifting and lowering traits- [x] Implement may_enter and may_leave flags
- [x] Post-return functions
- [x] Validate alignment and enable
&[u64]
views and similar- [x] Figure out what to do with lowering a lifted function
- [ ] Figure out what to do with a lifting a lowered function
- [ ] Implement a "lock" for instances for when a trap happens (https://github.com/WebAssembly/component-model/issues/55)
- [ ] Exporting a component instance from the root of a component
- [ ] Figure out what to do with reexporting an imported function
- [x]
Double-check behavior of traps with respect to validating in-bounds pointers and intermediate writes of params/results when lifting/loweringgiven the "trap lock" I don't think that this matters- [ ] Component-to-component adapters (this is a huge work item implying an entire compiler for adapter trampolines)
Separate work items
I'm starting to separate off work items from this issue to separate tracking issues with more detail. These will all need completion to finish the component model work but these issues are suitable to be picked up by anyone in theory.
- [ ] Support for
record
,variant
,enum
,union
,flags
- [ ] Fuzzing for round-tripping component values
- [ ] String support for utf16+latin1 (omitted from #4039)
- [ ] Calling a function with a dynamic signature
Items related to memory64 support
- Need to call
realloc
with a different signature- All reads/writes of pointers to linear memory need to have a 32/64 bit switch
- Reading and writing pointers to
ValRaw
needs to be audited- Size and alignment calculations all need to be duplicated or have a parameter for 64 bit
- Somehow should probably confirm that this doesn't vastly affect performance for 32-bit
Unsure how to implement so far
- Everything with
value
ranging from imports to exports to thestart
function- Type imports
- Unsure how to rationalize performance concerns with validating indirect values like lists from wasm coming to the host when balanced with spec-desired behavior of validating everything.
Open questions
- How to optimize passing
&[u8]
to WebAssembly to amemcpy
?How to handle validation ofValue<T>
coming out of wasm?Not planned at this time
- Importing component-defined functions into a component without any extra copies to the host
- Importing component instances directly into other components
- Importing a component or exporting a component at the root level
alexcrichton edited issue #4185:
This is intended to be a tracking issue for the implementation of the component model proposal of WebAssembly. I'm in the progress of implementing this with work in Wasmtime starting at https://github.com/bytecodealliance/wasmtime/pull/4005 and continuing in further PRs. I hope to leave checkbox items here to ensure I don't forget about them and to also track the progress of implementing the component model.
Items to be implemented
- [x] Text format parsing
- [x] Validation in
wasmparser
- [x] Basic infrastructure in the
component
submodule of thewasmtime
crate- [x] Basic instantiation with zero imports
- [x] Extracting a function and calling it with a static signature
- [x] Importing host functions into a component
- [x] Importing host instances (bundles of host functions) into a component
- [x] Importing a wasm module into a component
- [x] Exporting a module from a component
- [x] Nested component compilation
- [x] Nested component instantiation
- [x] Outer component aliases
- [x] Exporting a component from a component
- [x] Confirm lowered-then-lifted interpretation of "always trap" is correct
- [x] Split
ComponentValue
into lifting and lowering traits- [x] Implement may_enter and may_leave flags
- [x] Post-return functions
- [x] Validate alignment and enable
&[u64]
views and similar- [x] Figure out what to do with lowering a lifted function
- [x]
Double-check behavior of traps with respect to validating in-bounds pointers and intermediate writes of params/results when lifting/loweringgiven the "trap lock" I don't think that this matters- [ ] Figure out what to do with a lifting a lowered function
- [ ] Implement a "lock" for instances for when a trap happens (https://github.com/WebAssembly/component-model/issues/55)
- [ ] Exporting a component instance from the root of a component
- [ ] Figure out what to do with reexporting an imported function
- [ ] Component-to-component adapters (this is a huge work item implying an entire compiler for adapter trampolines)
Separate work items
I'm starting to separate off work items from this issue to separate tracking issues with more detail. These will all need completion to finish the component model work but these issues are suitable to be picked up by anyone in theory.
- [ ] Support for
record
,variant
,enum
,union
,flags
- [ ] Fuzzing for round-tripping component values
- [ ] String support for utf16+latin1 (omitted from #4039)
- [ ] Calling a function with a dynamic signature
Items related to memory64 support
- Need to call
realloc
with a different signature- All reads/writes of pointers to linear memory need to have a 32/64 bit switch
- Reading and writing pointers to
ValRaw
needs to be audited- Size and alignment calculations all need to be duplicated or have a parameter for 64 bit
- Somehow should probably confirm that this doesn't vastly affect performance for 32-bit
Unsure how to implement so far
- Everything with
value
ranging from imports to exports to thestart
function- Type imports
- Unsure how to rationalize performance concerns with validating indirect values like lists from wasm coming to the host when balanced with spec-desired behavior of validating everything.
Open questions
- How to optimize passing
&[u8]
to WebAssembly to amemcpy
?How to handle validation ofValue<T>
coming out of wasm?Not planned at this time
- Importing component-defined functions into a component without any extra copies to the host
- Importing component instances directly into other components
- Importing a component or exporting a component at the root level
alexcrichton edited issue #4185:
This is intended to be a tracking issue for the implementation of the component model proposal of WebAssembly. I'm in the progress of implementing this with work in Wasmtime starting at https://github.com/bytecodealliance/wasmtime/pull/4005 and continuing in further PRs. I hope to leave checkbox items here to ensure I don't forget about them and to also track the progress of implementing the component model.
Items to be implemented
- [x] Text format parsing
- [x] Validation in
wasmparser
- [x] Basic infrastructure in the
component
submodule of thewasmtime
crate- [x] Basic instantiation with zero imports
- [x] Extracting a function and calling it with a static signature
- [x] Importing host functions into a component
- [x] Importing host instances (bundles of host functions) into a component
- [x] Importing a wasm module into a component
- [x] Exporting a module from a component
- [x] Nested component compilation
- [x] Nested component instantiation
- [x] Outer component aliases
- [x] Exporting a component from a component
- [x] Confirm lowered-then-lifted interpretation of "always trap" is correct
- [x] Split
ComponentValue
into lifting and lowering traits- [x] Implement may_enter and may_leave flags
- [x] Post-return functions
- [x] Validate alignment and enable
&[u64]
views and similar- [x] Figure out what to do with lowering a lifted function
- [x]
Double-check behavior of traps with respect to validating in-bounds pointers and intermediate writes of params/results when lifting/loweringgiven the "trap lock" I don't think that this matters- [ ] Figure out what to do with a lifting a lowered function
- [ ] Implement a "lock" for instances for when a trap happens (https://github.com/WebAssembly/component-model/issues/55)
- [ ] Exporting a component instance from the root of a component
- [ ] Figure out what to do with reexporting an imported function
- [ ] Component-to-component adapters (this is a huge work item implying an entire compiler for adapter trampolines)
Separate work items
I'm starting to separate off work items from this issue to separate tracking issues with more detail. These will all need completion to finish the component model work but these issues are suitable to be picked up by anyone in theory.
- [ ] Support for
record
,variant
,enum
,union
,flags
- [ ] Fuzzing for round-tripping component values
- [ ] String support for utf16+latin1 (omitted from #4039)
- [ ] Calling a function with a dynamic signature
Items related to memory64 support
- Need to call
realloc
with a different signature- All reads/writes of pointers to linear memory need to have a 32/64 bit switch
- Reading and writing pointers to
ValRaw
needs to be audited- Size and alignment calculations all need to be duplicated or have a parameter for 64 bit
- Somehow should probably confirm that this doesn't vastly affect performance for 32-bit
Unsure how to implement so far
- Everything with
value
ranging from imports to exports to thestart
function- Type imports
- Unsure how to rationalize performance concerns with validating indirect values like lists from wasm coming to the host when balanced with spec-desired behavior of validating everything.
Open questions
- How to optimize passing
&[u8]
to WebAssembly to amemcpy
?How to handle validation ofValue<T>
coming out of wasm?Not planned at this time
- Importing component-defined functions into a component without any extra copies to the host
- Importing component instances directly into other components
- Importing a component or exporting a component at the root level
alexcrichton edited issue #4185:
This is intended to be a tracking issue for the implementation of the component model proposal of WebAssembly. I'm in the progress of implementing this with work in Wasmtime starting at https://github.com/bytecodealliance/wasmtime/pull/4005 and continuing in further PRs. I hope to leave checkbox items here to ensure I don't forget about them and to also track the progress of implementing the component model.
Items to be implemented
- [x] Text format parsing
- [x] Validation in
wasmparser
- [x] Basic infrastructure in the
component
submodule of thewasmtime
crate- [x] Basic instantiation with zero imports
- [x] Extracting a function and calling it with a static signature
- [x] Importing host functions into a component
- [x] Importing host instances (bundles of host functions) into a component
- [x] Importing a wasm module into a component
- [x] Exporting a module from a component
- [x] Nested component compilation
- [x] Nested component instantiation
- [x] Outer component aliases
- [x] Exporting a component from a component
- [x] Confirm lowered-then-lifted interpretation of "always trap" is correct
- [x] Split
ComponentValue
into lifting and lowering traits- [x] Implement may_enter and may_leave flags
- [x] Post-return functions
- [x] Validate alignment and enable
&[u64]
views and similar- [x] Figure out what to do with lowering a lifted function
- [x]
Double-check behavior of traps with respect to validating in-bounds pointers and intermediate writes of params/results when lifting/loweringgiven the "trap lock" I don't think that this matters- [ ] Figure out what to do with a lifting a lowered function
- [ ] Implement a "lock" for instances for when a trap happens (https://github.com/WebAssembly/component-model/issues/55)
- [ ] Exporting a component instance from the root of a component
- [ ] Figure out what to do with reexporting an imported function
- [ ] Component-to-component adapters (this is a huge work item implying an entire compiler for adapter trampolines)
Separate work items
I'm starting to separate off work items from this issue to separate tracking issues with more detail. These will all need completion to finish the component model work but these issues are suitable to be picked up by anyone in theory.
- [ ] Support for
record
,variant
,enum
,union
,flags
- [ ] Fuzzing for round-tripping component values
- [ ] String support for utf16+latin1 (omitted from #4039)
- [ ] Calling a function with a dynamic signature
Items related to memory64 support
- Need to call
realloc
with a different signature- All reads/writes of pointers to linear memory need to have a 32/64 bit switch
- Reading and writing pointers to
ValRaw
needs to be audited- Size and alignment calculations all need to be duplicated or have a parameter for 64 bit
- Somehow should probably confirm that this doesn't vastly affect performance for 32-bit
Unsure how to implement so far
- Everything with
value
ranging from imports to exports to thestart
function- Type imports
- Unsure how to rationalize performance concerns with validating indirect values like lists from wasm coming to the host when balanced with spec-desired behavior of validating everything.
Open questions
- How to optimize passing
&[u8]
to WebAssembly to amemcpy
?How to handle validation ofValue<T>
coming out of wasm?Not planned at this time
- Importing component-defined functions into a component without any extra copies to the host
- Importing component instances directly into other components
- Importing a component or exporting a component at the root level
- Reexporting an imported function from a component and expecting it to work.
alexcrichton edited issue #4185:
This is intended to be a tracking issue for the implementation of the component model proposal of WebAssembly. I'm in the progress of implementing this with work in Wasmtime starting at https://github.com/bytecodealliance/wasmtime/pull/4005 and continuing in further PRs. I hope to leave checkbox items here to ensure I don't forget about them and to also track the progress of implementing the component model.
Items to be implemented
- [x] Text format parsing
- [x] Validation in
wasmparser
- [x] Basic infrastructure in the
component
submodule of thewasmtime
crate- [x] Basic instantiation with zero imports
- [x] Extracting a function and calling it with a static signature
- [x] Importing host functions into a component
- [x] Importing host instances (bundles of host functions) into a component
- [x] Importing a wasm module into a component
- [x] Exporting a module from a component
- [x] Nested component compilation
- [x] Nested component instantiation
- [x] Outer component aliases
- [x] Exporting a component from a component
- [x] Confirm lowered-then-lifted interpretation of "always trap" is correct
- [x] Split
ComponentValue
into lifting and lowering traits- [x] Implement may_enter and may_leave flags
- [x] Post-return functions
- [x] Validate alignment and enable
&[u64]
views and similar- [x] Figure out what to do with lowering a lifted function
- [x]
Double-check behavior of traps with respect to validating in-bounds pointers and intermediate writes of params/results when lifting/loweringgiven the "trap lock" I don't think that this matters- [ ] Figure out what to do with a lifting a lowered function
- [ ] Figure out what to do with reexporting an imported function
- [ ] Implement a "lock" for instances for when a trap happens (https://github.com/WebAssembly/component-model/issues/55)
- [ ] Exporting a component instance from the root of a component
- [ ] Component-to-component adapters (this is a huge work item implying an entire compiler for adapter trampolines)
Separate work items
I'm starting to separate off work items from this issue to separate tracking issues with more detail. These will all need completion to finish the component model work but these issues are suitable to be picked up by anyone in theory.
- [ ] Support for
record
,variant
,enum
,union
,flags
- [ ] Fuzzing for round-tripping component values
- [ ] String support for utf16+latin1 (omitted from #4039)
- [ ] Calling a function with a dynamic signature
Items related to memory64 support
- Need to call
realloc
with a different signature- All reads/writes of pointers to linear memory need to have a 32/64 bit switch
- Reading and writing pointers to
ValRaw
needs to be audited- Size and alignment calculations all need to be duplicated or have a parameter for 64 bit
- Somehow should probably confirm that this doesn't vastly affect performance for 32-bit
Unsure how to implement so far
- Everything with
value
ranging from imports to exports to thestart
function- Type imports
- Unsure how to rationalize performance concerns with validating indirect values like lists from wasm coming to the host when balanced with spec-desired behavior of validating everything.
Open questions
- How to optimize passing
&[u8]
to WebAssembly to amemcpy
?How to handle validation ofValue<T>
coming out of wasm?Not planned at this time
- Importing component-defined functions into a component without any extra copies to the host
- Importing component instances directly into other components
- Importing a component or exporting a component at the root level
- Reexporting an imported function from a component and expecting it to work.
alexcrichton edited issue #4185:
This is intended to be a tracking issue for the implementation of the component model proposal of WebAssembly. I'm in the progress of implementing this with work in Wasmtime starting at https://github.com/bytecodealliance/wasmtime/pull/4005 and continuing in further PRs. I hope to leave checkbox items here to ensure I don't forget about them and to also track the progress of implementing the component model.
Items to be implemented
- [x] Text format parsing
- [x] Validation in
wasmparser
- [x] Basic infrastructure in the
component
submodule of thewasmtime
crate- [x] Basic instantiation with zero imports
- [x] Extracting a function and calling it with a static signature
- [x] Importing host functions into a component
- [x] Importing host instances (bundles of host functions) into a component
- [x] Importing a wasm module into a component
- [x] Exporting a module from a component
- [x] Nested component compilation
- [x] Nested component instantiation
- [x] Outer component aliases
- [x] Exporting a component from a component
- [x] Confirm lowered-then-lifted interpretation of "always trap" is correct
- [x] Split
ComponentValue
into lifting and lowering traits- [x] Implement may_enter and may_leave flags
- [x] Post-return functions
- [x] Validate alignment and enable
&[u64]
views and similar- [x] Figure out what to do with lowering a lifted function
- [x]
Double-check behavior of traps with respect to validating in-bounds pointers and intermediate writes of params/results when lifting/loweringgiven the "trap lock" I don't think that this matters- [ ] Figure out what to do with a lifting a lowered function
- [x] Figure out what to do with reexporting an imported function
- [ ] Implement a "lock" for instances for when a trap happens (https://github.com/WebAssembly/component-model/issues/55)
- [ ] Exporting a component instance from the root of a component
- [ ] Component-to-component adapters (this is a huge work item implying an entire compiler for adapter trampolines)
Separate work items
I'm starting to separate off work items from this issue to separate tracking issues with more detail. These will all need completion to finish the component model work but these issues are suitable to be picked up by anyone in theory.
- [ ] Support for
record
,variant
,enum
,union
,flags
- [ ] Fuzzing for round-tripping component values
- [ ] String support for utf16+latin1 (omitted from #4039)
- [ ] Calling a function with a dynamic signature
Items related to memory64 support
- Need to call
realloc
with a different signature- All reads/writes of pointers to linear memory need to have a 32/64 bit switch
- Reading and writing pointers to
ValRaw
needs to be audited- Size and alignment calculations all need to be duplicated or have a parameter for 64 bit
- Somehow should probably confirm that this doesn't vastly affect performance for 32-bit
Unsure how to implement so far
- Everything with
value
ranging from imports to exports to thestart
function- Type imports
- Unsure how to rationalize performance concerns with validating indirect values like lists from wasm coming to the host when balanced with spec-desired behavior of validating everything.
Open questions
- How to optimize passing
&[u8]
to WebAssembly to amemcpy
?How to handle validation ofValue<T>
coming out of wasm?Not planned at this time
- Importing component-defined functions into a component without any extra copies to the host
- Importing component instances directly into other components
- Importing a component or exporting a component at the root level
- Reexporting an imported function from a component and expecting it to work.
alexcrichton edited issue #4185:
This is intended to be a tracking issue for the implementation of the component model proposal of WebAssembly. I'm in the progress of implementing this with work in Wasmtime starting at https://github.com/bytecodealliance/wasmtime/pull/4005 and continuing in further PRs. I hope to leave checkbox items here to ensure I don't forget about them and to also track the progress of implementing the component model.
Items to be implemented
- [x] Text format parsing
- [x] Validation in
wasmparser
- [x] Basic infrastructure in the
component
submodule of thewasmtime
crate- [x] Basic instantiation with zero imports
- [x] Extracting a function and calling it with a static signature
- [x] Importing host functions into a component
- [x] Importing host instances (bundles of host functions) into a component
- [x] Importing a wasm module into a component
- [x] Exporting a module from a component
- [x] Nested component compilation
- [x] Nested component instantiation
- [x] Outer component aliases
- [x] Exporting a component from a component
- [x] Confirm lowered-then-lifted interpretation of "always trap" is correct
- [x] Split
ComponentValue
into lifting and lowering traits- [x] Implement may_enter and may_leave flags
- [x] Post-return functions
- [x] Validate alignment and enable
&[u64]
views and similar- [x] Figure out what to do with lowering a lifted function
- [x]
Double-check behavior of traps with respect to validating in-bounds pointers and intermediate writes of params/results when lifting/loweringgiven the "trap lock" I don't think that this matters- [x] Figure out what to do with a lifting a lowered function
- [x] Figure out what to do with reexporting an imported function
- [ ] Implement a "lock" for instances for when a trap happens (https://github.com/WebAssembly/component-model/issues/55)
- [ ] Exporting a component instance from the root of a component
- [ ] Component-to-component adapters (this is a huge work item implying an entire compiler for adapter trampolines)
Separate work items
I'm starting to separate off work items from this issue to separate tracking issues with more detail. These will all need completion to finish the component model work but these issues are suitable to be picked up by anyone in theory.
- [ ] Support for
record
,variant
,enum
,union
,flags
- [ ] Fuzzing for round-tripping component values
- [ ] String support for utf16+latin1 (omitted from #4039)
- [ ] Calling a function with a dynamic signature
Items related to memory64 support
- Need to call
realloc
with a different signature- All reads/writes of pointers to linear memory need to have a 32/64 bit switch
- Reading and writing pointers to
ValRaw
needs to be audited- Size and alignment calculations all need to be duplicated or have a parameter for 64 bit
- Somehow should probably confirm that this doesn't vastly affect performance for 32-bit
Unsure how to implement so far
- Everything with
value
ranging from imports to exports to thestart
function- Type imports
- Unsure how to rationalize performance concerns with validating indirect values like lists from wasm coming to the host when balanced with spec-desired behavior of validating everything.
Open questions
- How to optimize passing
&[u8]
to WebAssembly to amemcpy
?How to handle validation ofValue<T>
coming out of wasm?Not planned at this time
- Importing component-defined functions into a component without any extra copies to the host
- Importing component instances directly into other components
- Importing a component or exporting a component at the root level
- Reexporting an imported function from a component and expecting it to work.
alexcrichton edited issue #4185:
This is intended to be a tracking issue for the implementation of the component model proposal of WebAssembly. I'm in the progress of implementing this with work in Wasmtime starting at https://github.com/bytecodealliance/wasmtime/pull/4005 and continuing in further PRs. I hope to leave checkbox items here to ensure I don't forget about them and to also track the progress of implementing the component model.
Items to be implemented
- [x] Text format parsing
- [x] Validation in
wasmparser
- [x] Basic infrastructure in the
component
submodule of thewasmtime
crate- [x] Basic instantiation with zero imports
- [x] Extracting a function and calling it with a static signature
- [x] Importing host functions into a component
- [x] Importing host instances (bundles of host functions) into a component
- [x] Importing a wasm module into a component
- [x] Exporting a module from a component
- [x] Nested component compilation
- [x] Nested component instantiation
- [x] Outer component aliases
- [x] Exporting a component from a component
- [x] Confirm lowered-then-lifted interpretation of "always trap" is correct
- [x] Split
ComponentValue
into lifting and lowering traits- [x] Implement may_enter and may_leave flags
- [x] Post-return functions
- [x] Validate alignment and enable
&[u64]
views and similar- [x] Figure out what to do with lowering a lifted function
- [x]
Double-check behavior of traps with respect to validating in-bounds pointers and intermediate writes of params/results when lifting/loweringgiven the "trap lock" I don't think that this matters- [x] Figure out what to do with a lifting a lowered function
- [x] Figure out what to do with reexporting an imported function
- [ ] Implement a "lock" for instances for when a trap happens (https://github.com/WebAssembly/component-model/issues/55)
- [ ] Exporting a component instance from the root of a component
- [ ] Component-to-component adapters (this is a huge work item implying an entire compiler for adapter trampolines)
Separate work items
I'm starting to separate off work items from this issue to separate tracking issues with more detail. These will all need completion to finish the component model work but these issues are suitable to be picked up by anyone in theory.
- [ ] Support for
record
,variant
,enum
,union
,flags
- [ ] Fuzzing for round-tripping component values
- [ ] String support for utf16+latin1 (omitted from #4039)
- [ ] Calling a function with a dynamic signature
- [ ] Support 64-bit memories for components
Unsure how to implement so far
- Everything with
value
ranging from imports to exports to thestart
function- Type imports
- Unsure how to rationalize performance concerns with validating indirect values like lists from wasm coming to the host when balanced with spec-desired behavior of validating everything.
Open questions
- How to optimize passing
&[u8]
to WebAssembly to amemcpy
?How to handle validation ofValue<T>
coming out of wasm?Not planned at this time
- Importing component-defined functions into a component without any extra copies to the host
- Importing component instances directly into other components
- Importing a component or exporting a component at the root level
- Reexporting an imported function from a component and expecting it to work.
alexcrichton edited issue #4185:
This is intended to be a tracking issue for the implementation of the component model proposal of WebAssembly. I'm in the progress of implementing this with work in Wasmtime starting at https://github.com/bytecodealliance/wasmtime/pull/4005 and continuing in further PRs. I hope to leave checkbox items here to ensure I don't forget about them and to also track the progress of implementing the component model.
Items to be implemented
- [x] Text format parsing
- [x] Validation in
wasmparser
- [x] Basic infrastructure in the
component
submodule of thewasmtime
crate- [x] Basic instantiation with zero imports
- [x] Extracting a function and calling it with a static signature
- [x] Importing host functions into a component
- [x] Importing host instances (bundles of host functions) into a component
- [x] Importing a wasm module into a component
- [x] Exporting a module from a component
- [x] Nested component compilation
- [x] Nested component instantiation
- [x] Outer component aliases
- [x] Exporting a component from a component
- [x] Confirm lowered-then-lifted interpretation of "always trap" is correct
- [x] Split
ComponentValue
into lifting and lowering traits- [x] Implement may_enter and may_leave flags
- [x] Post-return functions
- [x] Validate alignment and enable
&[u64]
views and similar- [x] Figure out what to do with lowering a lifted function
- [x]
Double-check behavior of traps with respect to validating in-bounds pointers and intermediate writes of params/results when lifting/loweringgiven the "trap lock" I don't think that this matters- [x] Figure out what to do with a lifting a lowered function
- [x] Figure out what to do with reexporting an imported function
- [ ] Implement a "lock" for instances for when a trap happens (https://github.com/WebAssembly/component-model/issues/55)
- [ ] Exporting a component instance from the root of a component
- [ ] Component-to-component adapters (this is a huge work item implying an entire compiler for adapter trampolines)
Separate work items
I'm starting to separate off work items from this issue to separate tracking issues with more detail. These will all need completion to finish the component model work but these issues are suitable to be picked up by anyone in theory.
- [ ] Support for
record
,variant
,enum
,union
,flags
- [ ] Fuzzing for round-tripping component values
- [ ] String support for utf16+latin1 (omitted from #4039)
- [ ] Calling a function with a dynamic signature
- [ ] Support 64-bit memories for components
Unsure how to implement so far
- Everything with
value
ranging from imports to exports to thestart
function- Type imports
- Unsure how to rationalize performance concerns with validating indirect values like lists from wasm coming to the host when balanced with spec-desired behavior of validating everything.
Open questions
- How to optimize passing
&[u8]
to WebAssembly to amemcpy
?How to handle validation ofValue<T>
coming out of wasm?Not planned at this time
- Importing component-defined functions into a component without any extra copies to the host
- Importing component instances directly into other components
- Importing a component or exporting a component at the root level
- Reexporting an imported function from a component and expecting it to work.
alexcrichton edited issue #4185:
This is intended to be a tracking issue for the implementation of the component model proposal of WebAssembly. I'm in the progress of implementing this with work in Wasmtime starting at https://github.com/bytecodealliance/wasmtime/pull/4005 and continuing in further PRs. I hope to leave checkbox items here to ensure I don't forget about them and to also track the progress of implementing the component model.
Items to be implemented
- [x] Text format parsing
- [x] Validation in
wasmparser
- [x] Basic infrastructure in the
component
submodule of thewasmtime
crate- [x] Basic instantiation with zero imports
- [x] Extracting a function and calling it with a static signature
- [x] Importing host functions into a component
- [x] Importing host instances (bundles of host functions) into a component
- [x] Importing a wasm module into a component
- [x] Exporting a module from a component
- [x] Nested component compilation
- [x] Nested component instantiation
- [x] Outer component aliases
- [x] Exporting a component from a component
- [x] Confirm lowered-then-lifted interpretation of "always trap" is correct
- [x] Split
ComponentValue
into lifting and lowering traits- [x] Implement may_enter and may_leave flags
- [x] Post-return functions
- [x] Validate alignment and enable
&[u64]
views and similar- [x] Figure out what to do with lowering a lifted function
- [x]
Double-check behavior of traps with respect to validating in-bounds pointers and intermediate writes of params/results when lifting/loweringgiven the "trap lock" I don't think that this matters- [x] Figure out what to do with a lifting a lowered function
- [x] Figure out what to do with reexporting an imported function
- [x] Implement a "lock" for instances for when a trap happens (https://github.com/WebAssembly/component-model/issues/55)
- [ ] Exporting a component instance from the root of a component
- [ ] Component-to-component adapters (this is a huge work item implying an entire compiler for adapter trampolines)
Separate work items
I'm starting to separate off work items from this issue to separate tracking issues with more detail. These will all need completion to finish the component model work but these issues are suitable to be picked up by anyone in theory.
- [ ] Support for
record
,variant
,enum
,union
,flags
- [ ] Fuzzing for round-tripping component values
- [ ] String support for utf16+latin1 (omitted from #4039)
- [ ] Calling a function with a dynamic signature
- [ ] Support 64-bit memories for components
Unsure how to implement so far
- Everything with
value
ranging from imports to exports to thestart
function- Type imports
- Unsure how to rationalize performance concerns with validating indirect values like lists from wasm coming to the host when balanced with spec-desired behavior of validating everything.
Open questions
- How to optimize passing
&[u8]
to WebAssembly to amemcpy
?How to handle validation ofValue<T>
coming out of wasm?Not planned at this time
- Importing component-defined functions into a component without any extra copies to the host
- Importing component instances directly into other components
- Importing a component or exporting a component at the root level
- Reexporting an imported function from a component and expecting it to work.
alexcrichton edited issue #4185:
This is intended to be a tracking issue for the implementation of the component model proposal of WebAssembly. I'm in the progress of implementing this with work in Wasmtime starting at https://github.com/bytecodealliance/wasmtime/pull/4005 and continuing in further PRs. I hope to leave checkbox items here to ensure I don't forget about them and to also track the progress of implementing the component model.
Items to be implemented
- [x] Text format parsing
- [x] Validation in
wasmparser
- [x] Basic infrastructure in the
component
submodule of thewasmtime
crate- [x] Basic instantiation with zero imports
- [x] Extracting a function and calling it with a static signature
- [x] Importing host functions into a component
- [x] Importing host instances (bundles of host functions) into a component
- [x] Importing a wasm module into a component
- [x] Exporting a module from a component
- [x] Nested component compilation
- [x] Nested component instantiation
- [x] Outer component aliases
- [x] Exporting a component from a component
- [x] Confirm lowered-then-lifted interpretation of "always trap" is correct
- [x] Split
ComponentValue
into lifting and lowering traits- [x] Implement may_enter and may_leave flags
- [x] Post-return functions
- [x] Validate alignment and enable
&[u64]
views and similar- [x] Figure out what to do with lowering a lifted function
- [x]
Double-check behavior of traps with respect to validating in-bounds pointers and intermediate writes of params/results when lifting/loweringgiven the "trap lock" I don't think that this matters- [x] Figure out what to do with a lifting a lowered function
- [x] Figure out what to do with reexporting an imported function
- [x] Implement a "lock" for instances for when a trap happens (https://github.com/WebAssembly/component-model/issues/55)
- [x] Exporting a component instance from the root of a component
- [ ] Component-to-component adapters (this is a huge work item implying an entire compiler for adapter trampolines)
Separate work items
I'm starting to separate off work items from this issue to separate tracking issues with more detail. These will all need completion to finish the component model work but these issues are suitable to be picked up by anyone in theory.
- [ ] Support for
record
,variant
,enum
,union
,flags
- [ ] Fuzzing for round-tripping component values
- [ ] String support for utf16+latin1 (omitted from #4039)
- [ ] Calling a function with a dynamic signature
- [ ] Support 64-bit memories for components
Unsure how to implement so far
- Everything with
value
ranging from imports to exports to thestart
function- Type imports
- Unsure how to rationalize performance concerns with validating indirect values like lists from wasm coming to the host when balanced with spec-desired behavior of validating everything.
Open questions
- How to optimize passing
&[u8]
to WebAssembly to amemcpy
?How to handle validation ofValue<T>
coming out of wasm?Not planned at this time
- Importing component-defined functions into a component without any extra copies to the host
- Importing component instances directly into other components
- Importing a component or exporting a component at the root level
- Reexporting an imported function from a component and expecting it to work.
alexcrichton edited issue #4185:
This is intended to be a tracking issue for the implementation of the component model proposal of WebAssembly. I'm in the progress of implementing this with work in Wasmtime starting at https://github.com/bytecodealliance/wasmtime/pull/4005 and continuing in further PRs. I hope to leave checkbox items here to ensure I don't forget about them and to also track the progress of implementing the component model.
Items to be implemented
- [x] Text format parsing
- [x] Validation in
wasmparser
- [x] Basic infrastructure in the
component
submodule of thewasmtime
crate- [x] Basic instantiation with zero imports
- [x] Extracting a function and calling it with a static signature
- [x] Importing host functions into a component
- [x] Importing host instances (bundles of host functions) into a component
- [x] Importing a wasm module into a component
- [x] Exporting a module from a component
- [x] Nested component compilation
- [x] Nested component instantiation
- [x] Outer component aliases
- [x] Exporting a component from a component
- [x] Confirm lowered-then-lifted interpretation of "always trap" is correct
- [x] Split
ComponentValue
into lifting and lowering traits- [x] Implement may_enter and may_leave flags
- [x] Post-return functions
- [x] Validate alignment and enable
&[u64]
views and similar- [x] Figure out what to do with lowering a lifted function
- [x]
Double-check behavior of traps with respect to validating in-bounds pointers and intermediate writes of params/results when lifting/loweringgiven the "trap lock" I don't think that this matters- [x] Figure out what to do with a lifting a lowered function
- [x] Figure out what to do with reexporting an imported function
- [x] Implement a "lock" for instances for when a trap happens (https://github.com/WebAssembly/component-model/issues/55)
- [x] Exporting a component instance from the root of a component
- [ ] Fill out
unimplemented!
for outer core aliases- [ ] Component-to-component adapters (this is a huge work item implying an entire compiler for adapter trampolines)
Separate work items
I'm starting to separate off work items from this issue to separate tracking issues with more detail. These will all need completion to finish the component model work but these issues are suitable to be picked up by anyone in theory.
- [ ] Support for
record
,variant
,enum
,union
,flags
- [ ] Fuzzing for round-tripping component values
- [ ] String support for utf16+latin1 (omitted from #4039)
- [ ] Calling a function with a dynamic signature
- [ ] Support 64-bit memories for components
Unsure how to implement so far
- Everything with
value
ranging from imports to exports to thestart
function- Type imports
- Unsure how to rationalize performance concerns with validating indirect values like lists from wasm coming to the host when balanced with spec-desired behavior of validating everything.
Open questions
- How to optimize passing
&[u8]
to WebAssembly to amemcpy
?How to handle validation ofValue<T>
coming out of wasm?Not planned at this time
- Importing component-defined functions into a component without any extra copies to the host
- Importing component instances directly into other components
- Importing a component or exporting a component at the root level
- Reexporting an imported function from a component and expecting it to work.
alexcrichton edited issue #4185:
This is intended to be a tracking issue for the implementation of the component model proposal of WebAssembly. I'm in the progress of implementing this with work in Wasmtime starting at https://github.com/bytecodealliance/wasmtime/pull/4005 and continuing in further PRs. I hope to leave checkbox items here to ensure I don't forget about them and to also track the progress of implementing the component model.
Items to be implemented
- [x] Text format parsing
- [x] Validation in
wasmparser
- [x] Basic infrastructure in the
component
submodule of thewasmtime
crate- [x] Basic instantiation with zero imports
- [x] Extracting a function and calling it with a static signature
- [x] Importing host functions into a component
- [x] Importing host instances (bundles of host functions) into a component
- [x] Importing a wasm module into a component
- [x] Exporting a module from a component
- [x] Nested component compilation
- [x] Nested component instantiation
- [x] Outer component aliases
- [x] Exporting a component from a component
- [x] Confirm lowered-then-lifted interpretation of "always trap" is correct
- [x] Split
ComponentValue
into lifting and lowering traits- [x] Implement may_enter and may_leave flags
- [x] Post-return functions
- [x] Validate alignment and enable
&[u64]
views and similar- [x] Figure out what to do with lowering a lifted function
- [x]
Double-check behavior of traps with respect to validating in-bounds pointers and intermediate writes of params/results when lifting/loweringgiven the "trap lock" I don't think that this matters- [x] Figure out what to do with a lifting a lowered function
- [x] Figure out what to do with reexporting an imported function
- [x] Implement a "lock" for instances for when a trap happens (https://github.com/WebAssembly/component-model/issues/55)
- [x] Exporting a component instance from the root of a component
- [ ] Fill out
unimplemented!
for outer core aliases- [ ] Component-to-component adapters (this is a huge work item implying an entire compiler for adapter trampolines)
Separate work items
I'm starting to separate off work items from this issue to separate tracking issues with more detail. These will all need completion to finish the component model work but these issues are suitable to be picked up by anyone in theory.
- [ ] Support for
record
,variant
,enum
,union
,flags
- [ ] Fuzzing for round-tripping component values
- [ ] String support for utf16+latin1 (omitted from #4039)
- [ ] Calling a function with a dynamic signature
- [ ] Support 64-bit memories for components
Unsure how to implement so far
- Everything with
value
ranging from imports to exports to thestart
function- Type imports
- Unsure how to rationalize performance concerns with validating indirect values like lists from wasm coming to the host when balanced with spec-desired behavior of validating everything.
Open questions
- How to optimize passing
&[u8]
to WebAssembly to amemcpy
?How to handle validation ofValue<T>
coming out of wasm?Not planned at this time
- Importing component-defined functions into a component without any extra copies to the host
- Importing component instances directly into other components
- Importing a component or exporting a component at the root level
- Reexporting an imported function from a component and expecting it to work.
alexcrichton edited issue #4185:
This is intended to be a tracking issue for the implementation of the component model proposal of WebAssembly. I'm in the progress of implementing this with work in Wasmtime starting at https://github.com/bytecodealliance/wasmtime/pull/4005 and continuing in further PRs. I hope to leave checkbox items here to ensure I don't forget about them and to also track the progress of implementing the component model.
Items to be implemented
- [x] Text format parsing
- [x] Validation in
wasmparser
- [x] Basic infrastructure in the
component
submodule of thewasmtime
crate- [x] Basic instantiation with zero imports
- [x] Extracting a function and calling it with a static signature
- [x] Importing host functions into a component
- [x] Importing host instances (bundles of host functions) into a component
- [x] Importing a wasm module into a component
- [x] Exporting a module from a component
- [x] Nested component compilation
- [x] Nested component instantiation
- [x] Outer component aliases
- [x] Exporting a component from a component
- [x] Confirm lowered-then-lifted interpretation of "always trap" is correct
- [x] Split
ComponentValue
into lifting and lowering traits- [x] Implement may_enter and may_leave flags
- [x] Post-return functions
- [x] Validate alignment and enable
&[u64]
views and similar- [x] Figure out what to do with lowering a lifted function
- [x]
Double-check behavior of traps with respect to validating in-bounds pointers and intermediate writes of params/results when lifting/loweringgiven the "trap lock" I don't think that this matters- [x] Figure out what to do with a lifting a lowered function
- [x] Figure out what to do with reexporting an imported function
- [x] Implement a "lock" for instances for when a trap happens (https://github.com/WebAssembly/component-model/issues/55)
- [x] Exporting a component instance from the root of a component
- [ ] Fill out
unimplemented!
for outer core aliases- [ ] Implement new reentrance rules
- [ ] Component-to-component adapters (this is a huge work item implying an entire compiler for adapter trampolines)
Separate work items
I'm starting to separate off work items from this issue to separate tracking issues with more detail. These will all need completion to finish the component model work but these issues are suitable to be picked up by anyone in theory.
- [ ] Support for
record
,variant
,enum
,union
,flags
- [ ] Fuzzing for round-tripping component values
- [ ] String support for utf16+latin1 (omitted from #4039)
- [ ] Calling a function with a dynamic signature
- [ ] Support 64-bit memories for components
Unsure how to implement so far
- Everything with
value
ranging from imports to exports to thestart
function- Type imports
- Unsure how to rationalize performance concerns with validating indirect values like lists from wasm coming to the host when balanced with spec-desired behavior of validating everything.
Open questions
- How to optimize passing
&[u8]
to WebAssembly to amemcpy
?How to handle validation ofValue<T>
coming out of wasm?Not planned at this time
- Importing component-defined functions into a component without any extra copies to the host
- Importing component instances directly into other components
- Importing a component or exporting a component at the root level
- Reexporting an imported function from a component and expecting it to work.
alexcrichton edited issue #4185:
This is intended to be a tracking issue for the implementation of the component model proposal of WebAssembly. I'm in the progress of implementing this with work in Wasmtime starting at https://github.com/bytecodealliance/wasmtime/pull/4005 and continuing in further PRs. I hope to leave checkbox items here to ensure I don't forget about them and to also track the progress of implementing the component model.
Items to be implemented
- [x] Text format parsing
- [x] Validation in
wasmparser
- [x] Basic infrastructure in the
component
submodule of thewasmtime
crate- [x] Basic instantiation with zero imports
- [x] Extracting a function and calling it with a static signature
- [x] Importing host functions into a component
- [x] Importing host instances (bundles of host functions) into a component
- [x] Importing a wasm module into a component
- [x] Exporting a module from a component
- [x] Nested component compilation
- [x] Nested component instantiation
- [x] Outer component aliases
- [x] Exporting a component from a component
- [x] Confirm lowered-then-lifted interpretation of "always trap" is correct
- [x] Split
ComponentValue
into lifting and lowering traits- [x] Implement may_enter and may_leave flags
- [x] Post-return functions
- [x] Validate alignment and enable
&[u64]
views and similar- [x] Figure out what to do with lowering a lifted function
- [x]
Double-check behavior of traps with respect to validating in-bounds pointers and intermediate writes of params/results when lifting/loweringgiven the "trap lock" I don't think that this matters- [x] Figure out what to do with a lifting a lowered function
- [x] Figure out what to do with reexporting an imported function
- [x] Implement a "lock" for instances for when a trap happens (https://github.com/WebAssembly/component-model/issues/55)
- [x] Exporting a component instance from the root of a component
- [x] Fill out
unimplemented!
for outer core aliases- [ ] Implement new reentrance rules
- [ ] Component-to-component adapters (this is a huge work item implying an entire compiler for adapter trampolines)
Separate work items
I'm starting to separate off work items from this issue to separate tracking issues with more detail. These will all need completion to finish the component model work but these issues are suitable to be picked up by anyone in theory.
- [ ] Support for
record
,variant
,enum
,union
,flags
- [ ] Fuzzing for round-tripping component values
- [ ] String support for utf16+latin1 (omitted from #4039)
- [ ] Calling a function with a dynamic signature
- [ ] Support 64-bit memories for components
Unsure how to implement so far
- Everything with
value
ranging from imports to exports to thestart
function- Type imports
- Unsure how to rationalize performance concerns with validating indirect values like lists from wasm coming to the host when balanced with spec-desired behavior of validating everything.
Open questions
- How to optimize passing
&[u8]
to WebAssembly to amemcpy
?How to handle validation ofValue<T>
coming out of wasm?Not planned at this time
- Importing component-defined functions into a component without any extra copies to the host
- Importing component instances directly into other components
- Importing a component or exporting a component at the root level
- Reexporting an imported function from a component and expecting it to work.
Jeffwan commented on issue #4185:
Hi, do we have a rough estimate on the component-model release? I am trying to understand even there's some pending items, is it working now? Is there a quickstart guidance on the usage?
alexcrichton commented on issue #4185:
There's no esimate at this time. Some parts work but not all, the un-finished issues above should give an idea of how much is left to do. No documentation on usage yet.
alexcrichton edited issue #4185:
This is intended to be a tracking issue for the implementation of the component model proposal of WebAssembly. I'm in the progress of implementing this with work in Wasmtime starting at https://github.com/bytecodealliance/wasmtime/pull/4005 and continuing in further PRs. I hope to leave checkbox items here to ensure I don't forget about them and to also track the progress of implementing the component model.
Items to be implemented
- [x] Text format parsing
- [x] Validation in
wasmparser
- [x] Basic infrastructure in the
component
submodule of thewasmtime
crate- [x] Basic instantiation with zero imports
- [x] Extracting a function and calling it with a static signature
- [x] Importing host functions into a component
- [x] Importing host instances (bundles of host functions) into a component
- [x] Importing a wasm module into a component
- [x] Exporting a module from a component
- [x] Nested component compilation
- [x] Nested component instantiation
- [x] Outer component aliases
- [x] Exporting a component from a component
- [x] Confirm lowered-then-lifted interpretation of "always trap" is correct
- [x] Split
ComponentValue
into lifting and lowering traits- [x] Implement may_enter and may_leave flags
- [x] Post-return functions
- [x] Validate alignment and enable
&[u64]
views and similar- [x] Figure out what to do with lowering a lifted function
- [x]
Double-check behavior of traps with respect to validating in-bounds pointers and intermediate writes of params/results when lifting/loweringgiven the "trap lock" I don't think that this matters- [x] Figure out what to do with a lifting a lowered function
- [x] Figure out what to do with reexporting an imported function
- [x] Implement a "lock" for instances for when a trap happens (https://github.com/WebAssembly/component-model/issues/55)
- [x] Exporting a component instance from the root of a component
- [x] Fill out
unimplemented!
for outer core aliases- [ ] Implement new reentrance rules
- [ ] Component-to-component adapters (this is a huge work item implying an entire compiler for adapter trampolines)
Separate work items
I'm starting to separate off work items from this issue to separate tracking issues with more detail. These will all need completion to finish the component model work but these issues are suitable to be picked up by anyone in theory.
- [x] Support for
record
,variant
,enum
,union
,flags
- [ ] Fuzzing for round-tripping component values
- [ ] String support for utf16+latin1 (omitted from #4039)
- [ ] Calling a function with a dynamic signature
- [ ] Support 64-bit memories for components
Unsure how to implement so far
- Everything with
value
ranging from imports to exports to thestart
function- Type imports
- Unsure how to rationalize performance concerns with validating indirect values like lists from wasm coming to the host when balanced with spec-desired behavior of validating everything.
Open questions
- How to optimize passing
&[u8]
to WebAssembly to amemcpy
?How to handle validation ofValue<T>
coming out of wasm?Not planned at this time
- Importing component-defined functions into a component without any extra copies to the host
- Importing component instances directly into other components
- Importing a component or exporting a component at the root level
- Reexporting an imported function from a component and expecting it to work.
alexcrichton edited issue #4185:
This is intended to be a tracking issue for the implementation of the component model proposal of WebAssembly. I'm in the progress of implementing this with work in Wasmtime starting at https://github.com/bytecodealliance/wasmtime/pull/4005 and continuing in further PRs. I hope to leave checkbox items here to ensure I don't forget about them and to also track the progress of implementing the component model.
Items to be implemented
- [x] Text format parsing
- [x] Validation in
wasmparser
- [x] Basic infrastructure in the
component
submodule of thewasmtime
crate- [x] Basic instantiation with zero imports
- [x] Extracting a function and calling it with a static signature
- [x] Importing host functions into a component
- [x] Importing host instances (bundles of host functions) into a component
- [x] Importing a wasm module into a component
- [x] Exporting a module from a component
- [x] Nested component compilation
- [x] Nested component instantiation
- [x] Outer component aliases
- [x] Exporting a component from a component
- [x] Confirm lowered-then-lifted interpretation of "always trap" is correct
- [x] Split
ComponentValue
into lifting and lowering traits- [x] Implement may_enter and may_leave flags
- [x] Post-return functions
- [x] Validate alignment and enable
&[u64]
views and similar- [x] Figure out what to do with lowering a lifted function
- [x]
Double-check behavior of traps with respect to validating in-bounds pointers and intermediate writes of params/results when lifting/loweringgiven the "trap lock" I don't think that this matters- [x] Figure out what to do with a lifting a lowered function
- [x] Figure out what to do with reexporting an imported function
- [x] Implement a "lock" for instances for when a trap happens (https://github.com/WebAssembly/component-model/issues/55)
- [x] Exporting a component instance from the root of a component
- [x] Fill out
unimplemented!
for outer core aliases- [ ] Implement new reentrance rules
- [ ] Component-to-component adapters (this is a huge work item implying an entire compiler for adapter trampolines)
Separate work items
I'm starting to separate off work items from this issue to separate tracking issues with more detail. These will all need completion to finish the component model work but these issues are suitable to be picked up by anyone in theory.
- [x] Support for
record
,variant
,enum
,union
,flags
- [ ] Fuzzing for round-tripping component values
- [ ] String support for utf16+latin1 (omitted from #4039)
- [ ] Calling a function with a dynamic signature
- [ ] Support 64-bit memories for components
Unsure how to implement so far
- Everything with
value
ranging from imports to exports to thestart
function- Type imports
- Unsure how to rationalize performance concerns with validating indirect values like lists from wasm coming to the host when balanced with spec-desired behavior of validating everything.
Open questions
- How to optimize passing
&[u8]
to WebAssembly to amemcpy
?How to handle validation ofValue<T>
coming out of wasm?Not planned at this time
- Importing component-defined functions into a component without any extra copies to the host
- Importing component instances directly into other components
- Importing a component or exporting a component at the root level
- Reexporting an imported function from a component and expecting it to work.
alexcrichton edited issue #4185:
This is intended to be a tracking issue for the implementation of the component model proposal of WebAssembly. I'm in the progress of implementing this with work in Wasmtime starting at https://github.com/bytecodealliance/wasmtime/pull/4005 and continuing in further PRs. I hope to leave checkbox items here to ensure I don't forget about them and to also track the progress of implementing the component model.
Items to be implemented
- [x] Text format parsing
- [x] Validation in
wasmparser
- [x] Basic infrastructure in the
component
submodule of thewasmtime
crate- [x] Basic instantiation with zero imports
- [x] Extracting a function and calling it with a static signature
- [x] Importing host functions into a component
- [x] Importing host instances (bundles of host functions) into a component
- [x] Importing a wasm module into a component
- [x] Exporting a module from a component
- [x] Nested component compilation
- [x] Nested component instantiation
- [x] Outer component aliases
- [x] Exporting a component from a component
- [x] Confirm lowered-then-lifted interpretation of "always trap" is correct
- [x] Split
ComponentValue
into lifting and lowering traits- [x] Implement may_enter and may_leave flags
- [x] Post-return functions
- [x] Validate alignment and enable
&[u64]
views and similar- [x] Figure out what to do with lowering a lifted function
- [x]
Double-check behavior of traps with respect to validating in-bounds pointers and intermediate writes of params/results when lifting/loweringgiven the "trap lock" I don't think that this matters- [x] Figure out what to do with a lifting a lowered function
- [x] Figure out what to do with reexporting an imported function
- [x] Implement a "lock" for instances for when a trap happens (https://github.com/WebAssembly/component-model/issues/55)
- [x] Exporting a component instance from the root of a component
- [x] Fill out
unimplemented!
for outer core aliases- [ ] Implement new reentrance rules
- [ ] Component-to-component adapters (this is a huge work item implying an entire compiler for adapter trampolines)
Separate work items
I'm starting to separate off work items from this issue to separate tracking issues with more detail. These will all need completion to finish the component model work but these issues are suitable to be picked up by anyone in theory.
- [x] Support for
record
,variant
,enum
,union
,flags
- [ ] Fuzzing for round-tripping component values
- [ ] String support for utf16+latin1 (omitted from #4039)
- [x] Calling a function with a dynamic signature
- [ ] Support 64-bit memories for components
Unsure how to implement so far
- Everything with
value
ranging from imports to exports to thestart
function- Type imports
- Unsure how to rationalize performance concerns with validating indirect values like lists from wasm coming to the host when balanced with spec-desired behavior of validating everything.
Open questions
- How to optimize passing
&[u8]
to WebAssembly to amemcpy
?How to handle validation ofValue<T>
coming out of wasm?Not planned at this time
- Importing component-defined functions into a component without any extra copies to the host
- Importing component instances directly into other components
- Importing a component or exporting a component at the root level
- Reexporting an imported function from a component and expecting it to work.
alexcrichton edited issue #4185:
This is intended to be a tracking issue for the implementation of the component model proposal of WebAssembly. I'm in the progress of implementing this with work in Wasmtime starting at https://github.com/bytecodealliance/wasmtime/pull/4005 and continuing in further PRs. I hope to leave checkbox items here to ensure I don't forget about them and to also track the progress of implementing the component model.
Items to be implemented
- [x] Text format parsing
- [x] Validation in
wasmparser
- [x] Basic infrastructure in the
component
submodule of thewasmtime
crate- [x] Basic instantiation with zero imports
- [x] Extracting a function and calling it with a static signature
- [x] Importing host functions into a component
- [x] Importing host instances (bundles of host functions) into a component
- [x] Importing a wasm module into a component
- [x] Exporting a module from a component
- [x] Nested component compilation
- [x] Nested component instantiation
- [x] Outer component aliases
- [x] Exporting a component from a component
- [x] Confirm lowered-then-lifted interpretation of "always trap" is correct
- [x] Split
ComponentValue
into lifting and lowering traits- [x] Implement may_enter and may_leave flags
- [x] Post-return functions
- [x] Validate alignment and enable
&[u64]
views and similar- [x] Figure out what to do with lowering a lifted function
- [x]
Double-check behavior of traps with respect to validating in-bounds pointers and intermediate writes of params/results when lifting/loweringgiven the "trap lock" I don't think that this matters- [x] Figure out what to do with a lifting a lowered function
- [x] Figure out what to do with reexporting an imported function
- [x] Implement a "lock" for instances for when a trap happens (https://github.com/WebAssembly/component-model/issues/55)
- [x] Exporting a component instance from the root of a component
- [x] Fill out
unimplemented!
for outer core aliases- [ ] Implement new reentrance rules
- [ ] Component-to-component adapters (this is a huge work item implying an entire compiler for adapter trampolines)
Separate work items
I'm starting to separate off work items from this issue to separate tracking issues with more detail. These will all need completion to finish the component model work but these issues are suitable to be picked up by anyone in theory.
- [x] Support for
record
,variant
,enum
,union
,flags
- [x] Calling a function with a dynamic signature
- [ ] Fuzzing for round-tripping component values
- [ ] String support for utf16+latin1 (omitted from #4039)
- [ ] Support 64-bit memories for components
Unsure how to implement so far
- Everything with
value
ranging from imports to exports to thestart
function- Type imports
- Unsure how to rationalize performance concerns with validating indirect values like lists from wasm coming to the host when balanced with spec-desired behavior of validating everything.
Open questions
- How to optimize passing
&[u8]
to WebAssembly to amemcpy
?How to handle validation ofValue<T>
coming out of wasm?Not planned at this time
- Importing component-defined functions into a component without any extra copies to the host
- Importing component instances directly into other components
- Importing a component or exporting a component at the root level
- Reexporting an imported function from a component and expecting it to work.
alexcrichton edited issue #4185:
This is intended to be a tracking issue for the implementation of the component model proposal of WebAssembly. I'm in the progress of implementing this with work in Wasmtime starting at https://github.com/bytecodealliance/wasmtime/pull/4005 and continuing in further PRs. I hope to leave checkbox items here to ensure I don't forget about them and to also track the progress of implementing the component model.
Items to be implemented
- [x] Text format parsing
- [x] Validation in
wasmparser
- [x] Basic infrastructure in the
component
submodule of thewasmtime
crate- [x] Basic instantiation with zero imports
- [x] Extracting a function and calling it with a static signature
- [x] Importing host functions into a component
- [x] Importing host instances (bundles of host functions) into a component
- [x] Importing a wasm module into a component
- [x] Exporting a module from a component
- [x] Nested component compilation
- [x] Nested component instantiation
- [x] Outer component aliases
- [x] Exporting a component from a component
- [x] Confirm lowered-then-lifted interpretation of "always trap" is correct
- [x] Split
ComponentValue
into lifting and lowering traits- [x] Implement may_enter and may_leave flags
- [x] Post-return functions
- [x] Validate alignment and enable
&[u64]
views and similar- [x] Figure out what to do with lowering a lifted function
- [x]
Double-check behavior of traps with respect to validating in-bounds pointers and intermediate writes of params/results when lifting/loweringgiven the "trap lock" I don't think that this matters- [x] Figure out what to do with a lifting a lowered function
- [x] Figure out what to do with reexporting an imported function
- [x] Implement a "lock" for instances for when a trap happens (https://github.com/WebAssembly/component-model/issues/55)
- [x] Exporting a component instance from the root of a component
- [x] Fill out
unimplemented!
for outer core aliases- [ ] Implement new reentrance rules
- [ ] Component-to-component adapters (this is a huge work item implying an entire compiler for adapter trampolines)
- [ ] Fix support for zero-sized flags.
Separate work items
I'm starting to separate off work items from this issue to separate tracking issues with more detail. These will all need completion to finish the component model work but these issues are suitable to be picked up by anyone in theory.
- [x] Support for
record
,variant
,enum
,union
,flags
- [ ] Fuzzing for round-tripping component values
- [ ] String support for utf16+latin1 (omitted from #4039)
- [ ] Calling a function with a dynamic signature
- [ ] Support 64-bit memories for components
Unsure how to implement so far
- Everything with
value
ranging from imports to exports to thestart
function- Type imports
- Unsure how to rationalize performance concerns with validating indirect values like lists from wasm coming to the host when balanced with spec-desired behavior of validating everything.
Open questions
- How to optimize passing
&[u8]
to WebAssembly to amemcpy
?How to handle validation ofValue<T>
coming out of wasm?Not planned at this time
- Importing component-defined functions into a component without any extra copies to the host
- Importing component instances directly into other components
- Importing a component or exporting a component at the root level
- Reexporting an imported function from a component and expecting it to work.
alexcrichton edited issue #4185:
This is intended to be a tracking issue for the implementation of the component model proposal of WebAssembly. I'm in the progress of implementing this with work in Wasmtime starting at https://github.com/bytecodealliance/wasmtime/pull/4005 and continuing in further PRs. I hope to leave checkbox items here to ensure I don't forget about them and to also track the progress of implementing the component model.
Items to be implemented
- [x] Text format parsing
- [x] Validation in
wasmparser
- [x] Basic infrastructure in the
component
submodule of thewasmtime
crate- [x] Basic instantiation with zero imports
- [x] Extracting a function and calling it with a static signature
- [x] Importing host functions into a component
- [x] Importing host instances (bundles of host functions) into a component
- [x] Importing a wasm module into a component
- [x] Exporting a module from a component
- [x] Nested component compilation
- [x] Nested component instantiation
- [x] Outer component aliases
- [x] Exporting a component from a component
- [x] Confirm lowered-then-lifted interpretation of "always trap" is correct
- [x] Split
ComponentValue
into lifting and lowering traits- [x] Implement may_enter and may_leave flags
- [x] Post-return functions
- [x] Validate alignment and enable
&[u64]
views and similar- [x] Figure out what to do with lowering a lifted function
- [x]
Double-check behavior of traps with respect to validating in-bounds pointers and intermediate writes of params/results when lifting/loweringgiven the "trap lock" I don't think that this matters- [x] Figure out what to do with a lifting a lowered function
- [x] Figure out what to do with reexporting an imported function
- [x] Implement a "lock" for instances for when a trap happens (https://github.com/WebAssembly/component-model/issues/55)
- [x] Exporting a component instance from the root of a component
- [x] Fill out
unimplemented!
for outer core aliases- [ ] Implement new reentrance rules
- [ ] Component-to-component adapters (this is a huge work item implying an entire compiler for adapter trampolines)
- [ ] Fix support for zero-sized flags.
Separate work items
I'm starting to separate off work items from this issue to separate tracking issues with more detail. These will all need completion to finish the component model work but these issues are suitable to be picked up by anyone in theory.
- [x] Support for
record
,variant
,enum
,union
,flags
- [ ] Fuzzing for round-tripping component values
- [ ] String support for utf16+latin1 (omitted from #4039)
- [ ] Calling a function with a dynamic signature
- [ ] Support 64-bit memories for components
Unsure how to implement so far
- Everything with
value
ranging from imports to exports to thestart
function- Type imports
- Unsure how to rationalize performance concerns with validating indirect values like lists from wasm coming to the host when balanced with spec-desired behavior of validating everything.
Open questions
- How to optimize passing
&[u8]
to WebAssembly to amemcpy
?How to handle validation ofValue<T>
coming out of wasm?Not planned at this time
- Importing component-defined functions into a component without any extra copies to the host
- Importing component instances directly into other components
- Importing a component or exporting a component at the root level
- Reexporting an imported function from a component and expecting it to work.
alexcrichton edited issue #4185:
This is intended to be a tracking issue for the implementation of the component model proposal of WebAssembly. I'm in the progress of implementing this with work in Wasmtime starting at https://github.com/bytecodealliance/wasmtime/pull/4005 and continuing in further PRs. I hope to leave checkbox items here to ensure I don't forget about them and to also track the progress of implementing the component model.
Items to be implemented
- [x] Text format parsing
- [x] Validation in
wasmparser
- [x] Basic infrastructure in the
component
submodule of thewasmtime
crate- [x] Basic instantiation with zero imports
- [x] Extracting a function and calling it with a static signature
- [x] Importing host functions into a component
- [x] Importing host instances (bundles of host functions) into a component
- [x] Importing a wasm module into a component
- [x] Exporting a module from a component
- [x] Nested component compilation
- [x] Nested component instantiation
- [x] Outer component aliases
- [x] Exporting a component from a component
- [x] Confirm lowered-then-lifted interpretation of "always trap" is correct
- [x] Split
ComponentValue
into lifting and lowering traits- [x] Implement may_enter and may_leave flags
- [x] Post-return functions
- [x] Validate alignment and enable
&[u64]
views and similar- [x] Figure out what to do with lowering a lifted function
- [x]
Double-check behavior of traps with respect to validating in-bounds pointers and intermediate writes of params/results when lifting/loweringgiven the "trap lock" I don't think that this matters- [x] Figure out what to do with a lifting a lowered function
- [x] Figure out what to do with reexporting an imported function
- [x] Implement a "lock" for instances for when a trap happens (https://github.com/WebAssembly/component-model/issues/55)
- [x] Exporting a component instance from the root of a component
- [x] Fill out
unimplemented!
for outer core aliases- [ ] Implement new reentrance rules
- [ ] Component-to-component adapters (this is a huge work item implying an entire compiler for adapter trampolines)
- [x] Fix support for zero-sized flags.
Separate work items
I'm starting to separate off work items from this issue to separate tracking issues with more detail. These will all need completion to finish the component model work but these issues are suitable to be picked up by anyone in theory.
- [x] Support for
record
,variant
,enum
,union
,flags
- [ ] Fuzzing for round-tripping component values
- [ ] String support for utf16+latin1 (omitted from #4039)
- [ ] Calling a function with a dynamic signature
- [ ] Support 64-bit memories for components
Unsure how to implement so far
- Everything with
value
ranging from imports to exports to thestart
function- Type imports
- Unsure how to rationalize performance concerns with validating indirect values like lists from wasm coming to the host when balanced with spec-desired behavior of validating everything.
Open questions
- How to optimize passing
&[u8]
to WebAssembly to amemcpy
?How to handle validation ofValue<T>
coming out of wasm?Not planned at this time
- Importing component-defined functions into a component without any extra copies to the host
- Importing component instances directly into other components
- Importing a component or exporting a component at the root level
- Reexporting an imported function from a component and expecting it to work.
alexcrichton edited issue #4185:
This is intended to be a tracking issue for the implementation of the component model proposal of WebAssembly. I'm in the progress of implementing this with work in Wasmtime starting at https://github.com/bytecodealliance/wasmtime/pull/4005 and continuing in further PRs. I hope to leave checkbox items here to ensure I don't forget about them and to also track the progress of implementing the component model.
Items to be implemented
- [x] Text format parsing
- [x] Validation in
wasmparser
- [x] Basic infrastructure in the
component
submodule of thewasmtime
crate- [x] Basic instantiation with zero imports
- [x] Extracting a function and calling it with a static signature
- [x] Importing host functions into a component
- [x] Importing host instances (bundles of host functions) into a component
- [x] Importing a wasm module into a component
- [x] Exporting a module from a component
- [x] Nested component compilation
- [x] Nested component instantiation
- [x] Outer component aliases
- [x] Exporting a component from a component
- [x] Confirm lowered-then-lifted interpretation of "always trap" is correct
- [x] Split
ComponentValue
into lifting and lowering traits- [x] Implement may_enter and may_leave flags
- [x] Post-return functions
- [x] Validate alignment and enable
&[u64]
views and similar- [x] Figure out what to do with lowering a lifted function
- [x]
Double-check behavior of traps with respect to validating in-bounds pointers and intermediate writes of params/results when lifting/loweringgiven the "trap lock" I don't think that this matters- [x] Figure out what to do with a lifting a lowered function
- [x] Figure out what to do with reexporting an imported function
- [x] Implement a "lock" for instances for when a trap happens (https://github.com/WebAssembly/component-model/issues/55)
- [x] Exporting a component instance from the root of a component
- [x] Fill out
unimplemented!
for outer core aliases- [ ] Implement new reentrance rules
- [ ] Component-to-component adapters (this is a huge work item implying an entire compiler for adapter trampolines)
- [x] Fix support for zero-sized flags.
Separate work items
I'm starting to separate off work items from this issue to separate tracking issues with more detail. These will all need completion to finish the component model work but these issues are suitable to be picked up by anyone in theory.
- [x] Support for
record
,variant
,enum
,union
,flags
- [ ] Fuzzing for round-tripping component values
- [ ] String support for utf16+latin1 (omitted from #4039)
- [x] Calling a function with a dynamic signature
- [ ] Support 64-bit memories for components
Unsure how to implement so far
- Everything with
value
ranging from imports to exports to thestart
function- Type imports
- Unsure how to rationalize performance concerns with validating indirect values like lists from wasm coming to the host when balanced with spec-desired behavior of validating everything.
Open questions
- How to optimize passing
&[u8]
to WebAssembly to amemcpy
?How to handle validation ofValue<T>
coming out of wasm?Not planned at this time
- Importing component-defined functions into a component without any extra copies to the host
- Importing component instances directly into other components
- Importing a component or exporting a component at the root level
- Reexporting an imported function from a component and expecting it to work.
alexcrichton edited issue #4185:
This is intended to be a tracking issue for the implementation of the component model proposal of WebAssembly. I'm in the progress of implementing this with work in Wasmtime starting at https://github.com/bytecodealliance/wasmtime/pull/4005 and continuing in further PRs. I hope to leave checkbox items here to ensure I don't forget about them and to also track the progress of implementing the component model.
Items to be implemented
- [x] Text format parsing
- [x] Validation in
wasmparser
- [x] Basic infrastructure in the
component
submodule of thewasmtime
crate- [x] Basic instantiation with zero imports
- [x] Extracting a function and calling it with a static signature
- [x] Importing host functions into a component
- [x] Importing host instances (bundles of host functions) into a component
- [x] Importing a wasm module into a component
- [x] Exporting a module from a component
- [x] Nested component compilation
- [x] Nested component instantiation
- [x] Outer component aliases
- [x] Exporting a component from a component
- [x] Confirm lowered-then-lifted interpretation of "always trap" is correct
- [x] Split
ComponentValue
into lifting and lowering traits- [x] Implement may_enter and may_leave flags
- [x] Post-return functions
- [x] Validate alignment and enable
&[u64]
views and similar- [x] Figure out what to do with lowering a lifted function
- [x]
Double-check behavior of traps with respect to validating in-bounds pointers and intermediate writes of params/results when lifting/loweringgiven the "trap lock" I don't think that this matters- [x] Figure out what to do with a lifting a lowered function
- [x] Figure out what to do with reexporting an imported function
- [x] Implement a "lock" for instances for when a trap happens (https://github.com/WebAssembly/component-model/issues/55)
- [x] Exporting a component instance from the root of a component
- [x] Fill out
unimplemented!
for outer core aliases- [ ] Implement new reentrance rules
- [ ] Component-to-component adapters (this is a huge work item implying an entire compiler for adapter trampolines)
- [x] Fix support for zero-sized flags.
Separate work items
I'm starting to separate off work items from this issue to separate tracking issues with more detail. These will all need completion to finish the component model work but these issues are suitable to be picked up by anyone in theory.
- [x] Support for
record
,variant
,enum
,union
,flags
- [x] Calling a function with a dynamic signature
- [ ] Fuzzing for round-tripping component values
- [ ] String support for utf16+latin1 (omitted from #4039)
- [ ] Support 64-bit memories for components
Unsure how to implement so far
- Everything with
value
ranging from imports to exports to thestart
function- Type imports
- Unsure how to rationalize performance concerns with validating indirect values like lists from wasm coming to the host when balanced with spec-desired behavior of validating everything.
Open questions
- How to optimize passing
&[u8]
to WebAssembly to amemcpy
?How to handle validation ofValue<T>
coming out of wasm?Not planned at this time
- Importing component-defined functions into a component without any extra copies to the host
- Importing component instances directly into other components
- Importing a component or exporting a component at the root level
- Reexporting an imported function from a component and expecting it to work.
alexcrichton edited issue #4185:
This is intended to be a tracking issue for the implementation of the component model proposal of WebAssembly. I'm in the progress of implementing this with work in Wasmtime starting at https://github.com/bytecodealliance/wasmtime/pull/4005 and continuing in further PRs. I hope to leave checkbox items here to ensure I don't forget about them and to also track the progress of implementing the component model.
Items to be implemented
- [x] Text format parsing
- [x] Validation in
wasmparser
- [x] Basic infrastructure in the
component
submodule of thewasmtime
crate- [x] Basic instantiation with zero imports
- [x] Extracting a function and calling it with a static signature
- [x] Importing host functions into a component
- [x] Importing host instances (bundles of host functions) into a component
- [x] Importing a wasm module into a component
- [x] Exporting a module from a component
- [x] Nested component compilation
- [x] Nested component instantiation
- [x] Outer component aliases
- [x] Exporting a component from a component
- [x] Confirm lowered-then-lifted interpretation of "always trap" is correct
- [x] Split
ComponentValue
into lifting and lowering traits- [x] Implement may_enter and may_leave flags
- [x] Post-return functions
- [x] Validate alignment and enable
&[u64]
views and similar- [x] Figure out what to do with lowering a lifted function
- [x]
Double-check behavior of traps with respect to validating in-bounds pointers and intermediate writes of params/results when lifting/loweringgiven the "trap lock" I don't think that this matters- [x] Figure out what to do with a lifting a lowered function
- [x] Figure out what to do with reexporting an imported function
- [x] Implement a "lock" for instances for when a trap happens (https://github.com/WebAssembly/component-model/issues/55)
- [x] Exporting a component instance from the root of a component
- [x] Fill out
unimplemented!
for outer core aliases- [ ] Implement new reentrance rules
- [ ] Component-to-component adapters (this is a huge work item implying an entire compiler for adapter trampolines)
- [x] Fix support for zero-sized flags.
Separate work items
I'm starting to separate off work items from this issue to separate tracking issues with more detail. These will all need completion to finish the component model work but these issues are suitable to be picked up by anyone in theory.
- [x] Support for
record
,variant
,enum
,union
,flags
- [x] Calling a function with a dynamic signature
- [ ] Fuzzing for round-tripping component values
- [ ] String support for utf16+latin1 (omitted from #4039)
- [ ] Support 64-bit memories for components
- [ ] Support creation of function types
- [ ] Implement type reflection for imports/exports
- [ ] Deduplicate size/align calculations
Unsure how to implement so far
- Everything with
value
ranging from imports to exports to thestart
function- Type imports
- Unsure how to rationalize performance concerns with validating indirect values like lists from wasm coming to the host when balanced with spec-desired behavior of validating everything.
Open questions
- How to optimize passing
&[u8]
to WebAssembly to amemcpy
?How to handle validation ofValue<T>
coming out of wasm?Not planned at this time
- Importing component-defined functions into a component without any extra copies to the host
- Importing component instances directly into other components
- Importing a component or exporting a component at the root level
- Reexporting an imported function from a component and expecting it to work.
alexcrichton edited issue #4185:
This is intended to be a tracking issue for the implementation of the component model proposal of WebAssembly. I'm in the progress of implementing this with work in Wasmtime starting at https://github.com/bytecodealliance/wasmtime/pull/4005 and continuing in further PRs. I hope to leave checkbox items here to ensure I don't forget about them and to also track the progress of implementing the component model.
Items to be implemented
- [x] Text format parsing
- [x] Validation in
wasmparser
- [x] Basic infrastructure in the
component
submodule of thewasmtime
crate- [x] Basic instantiation with zero imports
- [x] Extracting a function and calling it with a static signature
- [x] Importing host functions into a component
- [x] Importing host instances (bundles of host functions) into a component
- [x] Importing a wasm module into a component
- [x] Exporting a module from a component
- [x] Nested component compilation
- [x] Nested component instantiation
- [x] Outer component aliases
- [x] Exporting a component from a component
- [x] Confirm lowered-then-lifted interpretation of "always trap" is correct
- [x] Split
ComponentValue
into lifting and lowering traits- [x] Implement may_enter and may_leave flags
- [x] Post-return functions
- [x] Validate alignment and enable
&[u64]
views and similar- [x] Figure out what to do with lowering a lifted function
- [x]
Double-check behavior of traps with respect to validating in-bounds pointers and intermediate writes of params/results when lifting/loweringgiven the "trap lock" I don't think that this matters- [x] Figure out what to do with a lifting a lowered function
- [x] Figure out what to do with reexporting an imported function
- [x] Implement a "lock" for instances for when a trap happens (https://github.com/WebAssembly/component-model/issues/55)
- [x] Exporting a component instance from the root of a component
- [x] Fill out
unimplemented!
for outer core aliases- [ ] Implement new reentrance rules
- [ ] Component-to-component adapters (this is a huge work item implying an entire compiler for adapter trampolines)
- [x] Fix support for zero-sized flags.
- [ ] Fix support for zero-sized lists/strings/types
Separate work items
I'm starting to separate off work items from this issue to separate tracking issues with more detail. These will all need completion to finish the component model work but these issues are suitable to be picked up by anyone in theory.
- [x] Support for
record
,variant
,enum
,union
,flags
- [x] Calling a function with a dynamic signature
- [ ] Fuzzing for round-tripping component values
- [ ] String support for utf16+latin1 (omitted from #4039)
- [ ] Support 64-bit memories for components
- [ ] Support creation of function types
- [ ] Implement type reflection for imports/exports
- [ ] Deduplicate size/align calculations
Unsure how to implement so far
- Everything with
value
ranging from imports to exports to thestart
function- Type imports
- Unsure how to rationalize performance concerns with validating indirect values like lists from wasm coming to the host when balanced with spec-desired behavior of validating everything.
Open questions
- How to optimize passing
&[u8]
to WebAssembly to amemcpy
?How to handle validation ofValue<T>
coming out of wasm?Not planned at this time
- Importing component-defined functions into a component without any extra copies to the host
- Importing component instances directly into other components
- Importing a component or exporting a component at the root level
- Reexporting an imported function from a component and expecting it to work.
alexcrichton edited issue #4185:
This is intended to be a tracking issue for the implementation of the component model proposal of WebAssembly. I'm in the progress of implementing this with work in Wasmtime starting at https://github.com/bytecodealliance/wasmtime/pull/4005 and continuing in further PRs. I hope to leave checkbox items here to ensure I don't forget about them and to also track the progress of implementing the component model.
Items to be implemented
- [x] Text format parsing
- [x] Validation in
wasmparser
- [x] Basic infrastructure in the
component
submodule of thewasmtime
crate- [x] Basic instantiation with zero imports
- [x] Extracting a function and calling it with a static signature
- [x] Importing host functions into a component
- [x] Importing host instances (bundles of host functions) into a component
- [x] Importing a wasm module into a component
- [x] Exporting a module from a component
- [x] Nested component compilation
- [x] Nested component instantiation
- [x] Outer component aliases
- [x] Exporting a component from a component
- [x] Confirm lowered-then-lifted interpretation of "always trap" is correct
- [x] Split
ComponentValue
into lifting and lowering traits- [x] Implement may_enter and may_leave flags
- [x] Post-return functions
- [x] Validate alignment and enable
&[u64]
views and similar- [x] Figure out what to do with lowering a lifted function
- [x]
Double-check behavior of traps with respect to validating in-bounds pointers and intermediate writes of params/results when lifting/loweringgiven the "trap lock" I don't think that this matters- [x] Figure out what to do with a lifting a lowered function
- [x] Figure out what to do with reexporting an imported function
- [x] Implement a "lock" for instances for when a trap happens (https://github.com/WebAssembly/component-model/issues/55)
- [x] Exporting a component instance from the root of a component
- [x] Fill out
unimplemented!
for outer core aliases- [ ] Implement new reentrance rules
- [ ] Component-to-component adapters (this is a huge work item implying an entire compiler for adapter trampolines)
- [x] Fix support for zero-sized flags.
- [ ] Fix support for zero-sized lists/strings/types
Separate work items
I'm starting to separate off work items from this issue to separate tracking issues with more detail. These will all need completion to finish the component model work but these issues are suitable to be picked up by anyone in theory.
- [x] Support for
record
,variant
,enum
,union
,flags
- [x] Calling a function with a dynamic signature
- [x] Fuzzing for round-tripping component values
- [ ] String support for utf16+latin1 (omitted from #4039)
- [ ] Support 64-bit memories for components
- [ ] Support creation of function types
- [ ] Implement type reflection for imports/exports
- [ ] Deduplicate size/align calculations
Unsure how to implement so far
- Everything with
value
ranging from imports to exports to thestart
function- Type imports
- Unsure how to rationalize performance concerns with validating indirect values like lists from wasm coming to the host when balanced with spec-desired behavior of validating everything.
Open questions
- How to optimize passing
&[u8]
to WebAssembly to amemcpy
?How to handle validation ofValue<T>
coming out of wasm?Not planned at this time
- Importing component-defined functions into a component without any extra copies to the host
- Importing component instances directly into other components
- Importing a component or exporting a component at the root level
- Reexporting an imported function from a component and expecting it to work.
alexcrichton edited issue #4185:
This is intended to be a tracking issue for the implementation of the component model proposal of WebAssembly. I'm in the progress of implementing this with work in Wasmtime starting at https://github.com/bytecodealliance/wasmtime/pull/4005 and continuing in further PRs. I hope to leave checkbox items here to ensure I don't forget about them and to also track the progress of implementing the component model.
Items to be implemented
- [x] Text format parsing
- [x] Validation in
wasmparser
- [x] Basic infrastructure in the
component
submodule of thewasmtime
crate- [x] Basic instantiation with zero imports
- [x] Extracting a function and calling it with a static signature
- [x] Importing host functions into a component
- [x] Importing host instances (bundles of host functions) into a component
- [x] Importing a wasm module into a component
- [x] Exporting a module from a component
- [x] Nested component compilation
- [x] Nested component instantiation
- [x] Outer component aliases
- [x] Exporting a component from a component
- [x] Confirm lowered-then-lifted interpretation of "always trap" is correct
- [x] Split
ComponentValue
into lifting and lowering traits- [x] Implement may_enter and may_leave flags
- [x] Post-return functions
- [x] Validate alignment and enable
&[u64]
views and similar- [x] Figure out what to do with lowering a lifted function
- [x]
Double-check behavior of traps with respect to validating in-bounds pointers and intermediate writes of params/results when lifting/loweringgiven the "trap lock" I don't think that this matters- [x] Figure out what to do with a lifting a lowered function
- [x] Figure out what to do with reexporting an imported function
- [x] Implement a "lock" for instances for when a trap happens (https://github.com/WebAssembly/component-model/issues/55)
- [x] Exporting a component instance from the root of a component
- [x] Fill out
unimplemented!
for outer core aliases- [ ] Implement new reentrance rules
- [ ] Component-to-component adapters (this is a huge work item implying an entire compiler for adapter trampolines)
- [x] Fix support for zero-sized flags.
- [ ] Fix support for zero-sized lists/strings/types
- [ ] Update support for multi-return,
unit
, etc.Separate work items
I'm starting to separate off work items from this issue to separate tracking issues with more detail. These will all need completion to finish the component model work but these issues are suitable to be picked up by anyone in theory.
- [x] Support for
record
,variant
,enum
,union
,flags
- [x] Calling a function with a dynamic signature
- [x] Fuzzing for round-tripping component values
- [ ] String support for utf16+latin1 (omitted from #4039)
- [ ] Support 64-bit memories for components
- [ ] Support creation of function types
- [ ] Implement type reflection for imports/exports
- [ ] Deduplicate size/align calculations
Unsure how to implement so far
- Everything with
value
ranging from imports to exports to thestart
function- Type imports
- Unsure how to rationalize performance concerns with validating indirect values like lists from wasm coming to the host when balanced with spec-desired behavior of validating everything.
Open questions
- How to optimize passing
&[u8]
to WebAssembly to amemcpy
?How to handle validation ofValue<T>
coming out of wasm?Not planned at this time
- Importing component-defined functions into a component without any extra copies to the host
- Importing component instances directly into other components
- Importing a component or exporting a component at the root level
- Reexporting an imported function from a component and expecting it to work.
alexcrichton edited issue #4185:
This is intended to be a tracking issue for the implementation of the component model proposal of WebAssembly. I'm in the progress of implementing this with work in Wasmtime starting at https://github.com/bytecodealliance/wasmtime/pull/4005 and continuing in further PRs. I hope to leave checkbox items here to ensure I don't forget about them and to also track the progress of implementing the component model.
Items to be implemented
- [x] Text format parsing
- [x] Validation in
wasmparser
- [x] Basic infrastructure in the
component
submodule of thewasmtime
crate- [x] Basic instantiation with zero imports
- [x] Extracting a function and calling it with a static signature
- [x] Importing host functions into a component
- [x] Importing host instances (bundles of host functions) into a component
- [x] Importing a wasm module into a component
- [x] Exporting a module from a component
- [x] Nested component compilation
- [x] Nested component instantiation
- [x] Outer component aliases
- [x] Exporting a component from a component
- [x] Confirm lowered-then-lifted interpretation of "always trap" is correct
- [x] Split
ComponentValue
into lifting and lowering traits- [x] Implement may_enter and may_leave flags
- [x] Post-return functions
- [x] Validate alignment and enable
&[u64]
views and similar- [x] Figure out what to do with lowering a lifted function
- [x]
Double-check behavior of traps with respect to validating in-bounds pointers and intermediate writes of params/results when lifting/loweringgiven the "trap lock" I don't think that this matters- [x] Figure out what to do with a lifting a lowered function
- [x] Figure out what to do with reexporting an imported function
- [x] Implement a "lock" for instances for when a trap happens (https://github.com/WebAssembly/component-model/issues/55)
- [x] Exporting a component instance from the root of a component
- [x] Fill out
unimplemented!
for outer core aliases- [ ] Implement new reentrance rules
- [ ] Component-to-component adapters (this is a huge work item implying an entire compiler for adapter trampolines)
- [x] Fix support for zero-sized flags.
- [ ] Fix support for zero-sized lists/strings/types
- [ ] Update support for multi-return,
unit
, etc.Separate work items
I'm starting to separate off work items from this issue to separate tracking issues with more detail. These will all need completion to finish the component model work but these issues are suitable to be picked up by anyone in theory.
- [x] Support for
record
,variant
,enum
,union
,flags
- [x] Calling a function with a dynamic signature
- [x] Fuzzing for round-tripping component values
- [x] String support for utf16+latin1 (omitted from #4039)
- [ ] Support 64-bit memories for components
- [ ] Support creation of function types
- [ ] Implement type reflection for imports/exports
- [ ] Deduplicate size/align calculations
Unsure how to implement so far
- Everything with
value
ranging from imports to exports to thestart
function- Type imports
- Unsure how to rationalize performance concerns with validating indirect values like lists from wasm coming to the host when balanced with spec-desired behavior of validating everything.
Open questions
- How to optimize passing
&[u8]
to WebAssembly to amemcpy
?How to handle validation ofValue<T>
coming out of wasm?Not planned at this time
- Importing component-defined functions into a component without any extra copies to the host
- Importing component instances directly into other components
- Importing a component or exporting a component at the root level
- Reexporting an imported function from a component and expecting it to work.
alexcrichton edited issue #4185:
This is intended to be a tracking issue for the implementation of the component model proposal of WebAssembly. I'm in the progress of implementing this with work in Wasmtime starting at https://github.com/bytecodealliance/wasmtime/pull/4005 and continuing in further PRs. I hope to leave checkbox items here to ensure I don't forget about them and to also track the progress of implementing the component model.
Items to be implemented
- [x] Text format parsing
- [x] Validation in
wasmparser
- [x] Basic infrastructure in the
component
submodule of thewasmtime
crate- [x] Basic instantiation with zero imports
- [x] Extracting a function and calling it with a static signature
- [x] Importing host functions into a component
- [x] Importing host instances (bundles of host functions) into a component
- [x] Importing a wasm module into a component
- [x] Exporting a module from a component
- [x] Nested component compilation
- [x] Nested component instantiation
- [x] Outer component aliases
- [x] Exporting a component from a component
- [x] Confirm lowered-then-lifted interpretation of "always trap" is correct
- [x] Split
ComponentValue
into lifting and lowering traits- [x] Implement may_enter and may_leave flags
- [x] Post-return functions
- [x] Validate alignment and enable
&[u64]
views and similar- [x] Figure out what to do with lowering a lifted function
- [x]
Double-check behavior of traps with respect to validating in-bounds pointers and intermediate writes of params/results when lifting/loweringgiven the "trap lock" I don't think that this matters- [x] Figure out what to do with a lifting a lowered function
- [x] Figure out what to do with reexporting an imported function
- [x] Implement a "lock" for instances for when a trap happens (https://github.com/WebAssembly/component-model/issues/55)
- [x] Exporting a component instance from the root of a component
- [x] Fill out
unimplemented!
for outer core aliases- [ ] Implement new reentrance rules
- [x] Component-to-component adapters (this is a huge work item implying an entire compiler for adapter trampolines)
- [x] Fix support for zero-sized flags.
- [ ] Fix support for zero-sized lists/strings/types
- [ ] Update support for multi-return,
unit
, etc.Separate work items
I'm starting to separate off work items from this issue to separate tracking issues with more detail. These will all need completion to finish the component model work but these issues are suitable to be picked up by anyone in theory.
- [x] Support for
record
,variant
,enum
,union
,flags
- [x] Calling a function with a dynamic signature
- [x] Fuzzing for round-tripping component values
- [x] String support for utf16+latin1 (omitted from #4039)
- [ ] Support 64-bit memories for components
- [ ] Support creation of function types
- [ ] Implement type reflection for imports/exports
- [ ] Deduplicate size/align calculations
Unsure how to implement so far
- Everything with
value
ranging from imports to exports to thestart
function- Type imports
- Unsure how to rationalize performance concerns with validating indirect values like lists from wasm coming to the host when balanced with spec-desired behavior of validating everything.
Open questions
- How to optimize passing
&[u8]
to WebAssembly to amemcpy
?How to handle validation ofValue<T>
coming out of wasm?Not planned at this time
- Importing component-defined functions into a component without any extra copies to the host
- Importing component instances directly into other components
- Importing a component or exporting a component at the root level
- Reexporting an imported function from a component and expecting it to work.
alexcrichton edited issue #4185:
This is intended to be a tracking issue for the implementation of the component model proposal of WebAssembly. I'm in the progress of implementing this with work in Wasmtime starting at https://github.com/bytecodealliance/wasmtime/pull/4005 and continuing in further PRs. I hope to leave checkbox items here to ensure I don't forget about them and to also track the progress of implementing the component model.
Items to be implemented
- [x] Text format parsing
- [x] Validation in
wasmparser
- [x] Basic infrastructure in the
component
submodule of thewasmtime
crate- [x] Basic instantiation with zero imports
- [x] Extracting a function and calling it with a static signature
- [x] Importing host functions into a component
- [x] Importing host instances (bundles of host functions) into a component
- [x] Importing a wasm module into a component
- [x] Exporting a module from a component
- [x] Nested component compilation
- [x] Nested component instantiation
- [x] Outer component aliases
- [x] Exporting a component from a component
- [x] Confirm lowered-then-lifted interpretation of "always trap" is correct
- [x] Split
ComponentValue
into lifting and lowering traits- [x] Implement may_enter and may_leave flags
- [x] Post-return functions
- [x] Validate alignment and enable
&[u64]
views and similar- [x] Figure out what to do with lowering a lifted function
- [x]
Double-check behavior of traps with respect to validating in-bounds pointers and intermediate writes of params/results when lifting/loweringgiven the "trap lock" I don't think that this matters- [x] Figure out what to do with a lifting a lowered function
- [x] Figure out what to do with reexporting an imported function
- [x] Implement a "lock" for instances for when a trap happens (https://github.com/WebAssembly/component-model/issues/55)
- [x] Exporting a component instance from the root of a component
- [x] Fill out
unimplemented!
for outer core aliases- [x] Component-to-component adapters (this is a huge work item implying an entire compiler for adapter trampolines)
- [x] Fix support for zero-sized flags.
- [ ] Implement new reentrance rules
- [ ] Fix support for zero-sized lists/strings/types
- [ ] Update support for multi-return,
unit
, etc.Separate work items
I'm starting to separate off work items from this issue to separate tracking issues with more detail. These will all need completion to finish the component model work but these issues are suitable to be picked up by anyone in theory.
- [x] Support for
record
,variant
,enum
,union
,flags
- [x] Calling a function with a dynamic signature
- [x] Fuzzing for round-tripping component values
- [x] String support for utf16+latin1 (omitted from #4039)
- [ ] Support 64-bit memories for components
- [ ] Support creation of function types
- [ ] Implement type reflection for imports/exports
- [ ] Deduplicate size/align calculations
Unsure how to implement so far
- Everything with
value
ranging from imports to exports to thestart
function- Type imports
- Unsure how to rationalize performance concerns with validating indirect values like lists from wasm coming to the host when balanced with spec-desired behavior of validating everything.
Open questions
- How to optimize passing
&[u8]
to WebAssembly to amemcpy
?How to handle validation ofValue<T>
coming out of wasm?Not planned at this time
- Importing component-defined functions into a component without any extra copies to the host
- Importing component instances directly into other components
- Importing a component or exporting a component at the root level
- Reexporting an imported function from a component and expecting it to work.
alexcrichton edited issue #4185:
This is intended to be a tracking issue for the implementation of the component model proposal of WebAssembly. I'm in the progress of implementing this with work in Wasmtime starting at https://github.com/bytecodealliance/wasmtime/pull/4005 and continuing in further PRs. I hope to leave checkbox items here to ensure I don't forget about them and to also track the progress of implementing the component model.
Items to be implemented
- [x] Text format parsing
- [x] Validation in
wasmparser
- [x] Basic infrastructure in the
component
submodule of thewasmtime
crate- [x] Basic instantiation with zero imports
- [x] Extracting a function and calling it with a static signature
- [x] Importing host functions into a component
- [x] Importing host instances (bundles of host functions) into a component
- [x] Importing a wasm module into a component
- [x] Exporting a module from a component
- [x] Nested component compilation
- [x] Nested component instantiation
- [x] Outer component aliases
- [x] Exporting a component from a component
- [x] Confirm lowered-then-lifted interpretation of "always trap" is correct
- [x] Split
ComponentValue
into lifting and lowering traits- [x] Implement may_enter and may_leave flags
- [x] Post-return functions
- [x] Validate alignment and enable
&[u64]
views and similar- [x] Figure out what to do with lowering a lifted function
- [x]
Double-check behavior of traps with respect to validating in-bounds pointers and intermediate writes of params/results when lifting/loweringgiven the "trap lock" I don't think that this matters- [x] Figure out what to do with a lifting a lowered function
- [x] Figure out what to do with reexporting an imported function
- [x] Implement a "lock" for instances for when a trap happens (https://github.com/WebAssembly/component-model/issues/55)
- [x] Exporting a component instance from the root of a component
- [x] Fill out
unimplemented!
for outer core aliases- [x] Component-to-component adapters (this is a huge work item implying an entire compiler for adapter trampolines)
- [x] Fix support for zero-sized flags.
- [ ] Implement new reentrance rules
- [ ] Fix support for zero-sized lists/strings/types
- [ ] Update support for multi-return,
unit
, etc.Separate work items
I'm starting to separate off work items from this issue to separate tracking issues with more detail. These will all need completion to finish the component model work but these issues are suitable to be picked up by anyone in theory.
- [x] Support for
record
,variant
,enum
,union
,flags
- [x] Calling a function with a dynamic signature
- [x] Fuzzing for round-tripping component values
- [x] String support for utf16+latin1 (omitted from #4039)
- [ ] Support 64-bit memories for components
- [ ] Support creation of function types
- [ ] Implement type reflection for imports/exports
- [ ] Deduplicate size/align calculations
Unsure how to implement so far
- Everything with
value
ranging from imports to exports to thestart
function- Type imports
- Unsure how to rationalize performance concerns with validating indirect values like lists from wasm coming to the host when balanced with spec-desired behavior of validating everything.
Open questions
- How to optimize passing
&[u8]
to WebAssembly to amemcpy
?How to handle validation ofValue<T>
coming out of wasm?Not planned at this time
- Importing component-defined functions into a component without any extra copies to the host
- Importing component instances directly into other components
- Importing a component or exporting a component at the root level
- Reexporting an imported function from a component and expecting it to work.
alexcrichton edited issue #4185:
This is intended to be a tracking issue for the implementation of the component model proposal of WebAssembly. I'm in the progress of implementing this with work in Wasmtime starting at https://github.com/bytecodealliance/wasmtime/pull/4005 and continuing in further PRs. I hope to leave checkbox items here to ensure I don't forget about them and to also track the progress of implementing the component model.
Items to be implemented
- [x] Text format parsing
- [x] Validation in
wasmparser
- [x] Basic infrastructure in the
component
submodule of thewasmtime
crate- [x] Basic instantiation with zero imports
- [x] Extracting a function and calling it with a static signature
- [x] Importing host functions into a component
- [x] Importing host instances (bundles of host functions) into a component
- [x] Importing a wasm module into a component
- [x] Exporting a module from a component
- [x] Nested component compilation
- [x] Nested component instantiation
- [x] Outer component aliases
- [x] Exporting a component from a component
- [x] Confirm lowered-then-lifted interpretation of "always trap" is correct
- [x] Split
ComponentValue
into lifting and lowering traits- [x] Implement may_enter and may_leave flags
- [x] Post-return functions
- [x] Validate alignment and enable
&[u64]
views and similar- [x] Figure out what to do with lowering a lifted function
- [x]
Double-check behavior of traps with respect to validating in-bounds pointers and intermediate writes of params/results when lifting/loweringgiven the "trap lock" I don't think that this matters- [x] Figure out what to do with a lifting a lowered function
- [x] Figure out what to do with reexporting an imported function
- [x] Implement a "lock" for instances for when a trap happens (https://github.com/WebAssembly/component-model/issues/55)
- [x] Exporting a component instance from the root of a component
- [x] Fill out
unimplemented!
for outer core aliases- [x] Component-to-component adapters (this is a huge work item implying an entire compiler for adapter trampolines)
- [x] Fix support for zero-sized flags.
- [ ] Fix support for zero-sized lists/strings/types
- [ ] Implement new reentrance rules
- [ ] Update support for multi-return,
unit
, etc.Separate work items
I'm starting to separate off work items from this issue to separate tracking issues with more detail. These will all need completion to finish the component model work but these issues are suitable to be picked up by anyone in theory.
- [x] Support for
record
,variant
,enum
,union
,flags
- [x] Calling a function with a dynamic signature
- [x] Fuzzing for round-tripping component values
- [x] String support for utf16+latin1 (omitted from #4039)
- [ ] Support 64-bit memories for components
- [ ] Support creation of function types
- [ ] Implement type reflection for imports/exports
- [ ] Deduplicate size/align calculations
Unsure how to implement so far
- Everything with
value
ranging from imports to exports to thestart
function- Type imports
- Unsure how to rationalize performance concerns with validating indirect values like lists from wasm coming to the host when balanced with spec-desired behavior of validating everything.
Open questions
- How to optimize passing
&[u8]
to WebAssembly to amemcpy
?How to handle validation ofValue<T>
coming out of wasm?Not planned at this time
- Importing component-defined functions into a component without any extra copies to the host
- Importing component instances directly into other components
- Importing a component or exporting a component at the root level
- Reexporting an imported function from a component and expecting it to work.
alexcrichton edited issue #4185:
This is intended to be a tracking issue for the implementation of the component model proposal of WebAssembly. I'm in the progress of implementing this with work in Wasmtime starting at https://github.com/bytecodealliance/wasmtime/pull/4005 and continuing in further PRs. I hope to leave checkbox items here to ensure I don't forget about them and to also track the progress of implementing the component model.
Items to be implemented
- [x] Text format parsing
- [x] Validation in
wasmparser
- [x] Basic infrastructure in the
component
submodule of thewasmtime
crate- [x] Basic instantiation with zero imports
- [x] Extracting a function and calling it with a static signature
- [x] Importing host functions into a component
- [x] Importing host instances (bundles of host functions) into a component
- [x] Importing a wasm module into a component
- [x] Exporting a module from a component
- [x] Nested component compilation
- [x] Nested component instantiation
- [x] Outer component aliases
- [x] Exporting a component from a component
- [x] Confirm lowered-then-lifted interpretation of "always trap" is correct
- [x] Split
ComponentValue
into lifting and lowering traits- [x] Implement may_enter and may_leave flags
- [x] Post-return functions
- [x] Validate alignment and enable
&[u64]
views and similar- [x] Figure out what to do with lowering a lifted function
- [x]
Double-check behavior of traps with respect to validating in-bounds pointers and intermediate writes of params/results when lifting/loweringgiven the "trap lock" I don't think that this matters- [x] Figure out what to do with a lifting a lowered function
- [x] Figure out what to do with reexporting an imported function
- [x] Implement a "lock" for instances for when a trap happens (https://github.com/WebAssembly/component-model/issues/55)
- [x] Exporting a component instance from the root of a component
- [x] Fill out
unimplemented!
for outer core aliases- [x] Component-to-component adapters (this is a huge work item implying an entire compiler for adapter trampolines)
- [x] Fix support for zero-sized flags.
- [x] Fix support for zero-sized lists/strings/types
- [ ] Implement new reentrance rules
- [ ] Update support for multi-return,
unit
, etc.Separate work items
I'm starting to separate off work items from this issue to separate tracking issues with more detail. These will all need completion to finish the component model work but these issues are suitable to be picked up by anyone in theory.
- [x] Support for
record
,variant
,enum
,union
,flags
- [x] Calling a function with a dynamic signature
- [x] Fuzzing for round-tripping component values
- [x] String support for utf16+latin1 (omitted from #4039)
- [ ] Support 64-bit memories for components
- [ ] Support creation of function types
- [ ] Implement type reflection for imports/exports
- [ ] Deduplicate size/align calculations
Unsure how to implement so far
- Everything with
value
ranging from imports to exports to thestart
function- Type imports
- Unsure how to rationalize performance concerns with validating indirect values like lists from wasm coming to the host when balanced with spec-desired behavior of validating everything.
Open questions
- How to optimize passing
&[u8]
to WebAssembly to amemcpy
?How to handle validation ofValue<T>
coming out of wasm?Not planned at this time
- Importing component-defined functions into a component without any extra copies to the host
- Importing component instances directly into other components
- Importing a component or exporting a component at the root level
- Reexporting an imported function from a component and expecting it to work.
alexcrichton edited issue #4185:
This is intended to be a tracking issue for the implementation of the component model proposal of WebAssembly. I'm in the progress of implementing this with work in Wasmtime starting at https://github.com/bytecodealliance/wasmtime/pull/4005 and continuing in further PRs. I hope to leave checkbox items here to ensure I don't forget about them and to also track the progress of implementing the component model.
Items to be implemented
- [x] Text format parsing
- [x] Validation in
wasmparser
- [x] Basic infrastructure in the
component
submodule of thewasmtime
crate- [x] Basic instantiation with zero imports
- [x] Extracting a function and calling it with a static signature
- [x] Importing host functions into a component
- [x] Importing host instances (bundles of host functions) into a component
- [x] Importing a wasm module into a component
- [x] Exporting a module from a component
- [x] Nested component compilation
- [x] Nested component instantiation
- [x] Outer component aliases
- [x] Exporting a component from a component
- [x] Confirm lowered-then-lifted interpretation of "always trap" is correct
- [x] Split
ComponentValue
into lifting and lowering traits- [x] Implement may_enter and may_leave flags
- [x] Post-return functions
- [x] Validate alignment and enable
&[u64]
views and similar- [x] Figure out what to do with lowering a lifted function
- [x]
Double-check behavior of traps with respect to validating in-bounds pointers and intermediate writes of params/results when lifting/loweringgiven the "trap lock" I don't think that this matters- [x] Figure out what to do with a lifting a lowered function
- [x] Figure out what to do with reexporting an imported function
- [x] Implement a "lock" for instances for when a trap happens (https://github.com/WebAssembly/component-model/issues/55)
- [x] Exporting a component instance from the root of a component
- [x] Fill out
unimplemented!
for outer core aliases- [x] Component-to-component adapters (this is a huge work item implying an entire compiler for adapter trampolines)
- [x] Fix support for zero-sized flags.
- [x] Fix support for zero-sized lists/strings/types
- [ ] Implement new reentrance rules
- [ ] Update support for multi-return,
unit
, etc.Separate work items
I'm starting to separate off work items from this issue to separate tracking issues with more detail. These will all need completion to finish the component model work but these issues are suitable to be picked up by anyone in theory.
- [x] Support for
record
,variant
,enum
,union
,flags
- [x] Calling a function with a dynamic signature
- [x] Fuzzing for round-tripping component values
- [x] String support for utf16+latin1 (omitted from #4039)
- [ ] Support creation of function types
- [ ] Implement type reflection for imports/exports
Unsure how to implement so far
- Everything with
value
ranging from imports to exports to thestart
function- Type imports
- Unsure how to rationalize performance concerns with validating indirect values like lists from wasm coming to the host when balanced with spec-desired behavior of validating everything.
Open questions
- How to optimize passing
&[u8]
to WebAssembly to amemcpy
?How to handle validation ofValue<T>
coming out of wasm?Not planned at this time
- Importing component-defined functions into a component without any extra copies to the host
- Importing component instances directly into other components
- Importing a component or exporting a component at the root level
- Reexporting an imported function from a component and expecting it to work.
alexcrichton edited issue #4185:
This is intended to be a tracking issue for the implementation of the component model proposal of WebAssembly. I'm in the progress of implementing this with work in Wasmtime starting at https://github.com/bytecodealliance/wasmtime/pull/4005 and continuing in further PRs. I hope to leave checkbox items here to ensure I don't forget about them and to also track the progress of implementing the component model.
Items to be implemented
- [x] Text format parsing
- [x] Validation in
wasmparser
- [x] Basic infrastructure in the
component
submodule of thewasmtime
crate- [x] Basic instantiation with zero imports
- [x] Extracting a function and calling it with a static signature
- [x] Importing host functions into a component
- [x] Importing host instances (bundles of host functions) into a component
- [x] Importing a wasm module into a component
- [x] Exporting a module from a component
- [x] Nested component compilation
- [x] Nested component instantiation
- [x] Outer component aliases
- [x] Exporting a component from a component
- [x] Confirm lowered-then-lifted interpretation of "always trap" is correct
- [x] Split
ComponentValue
into lifting and lowering traits- [x] Implement may_enter and may_leave flags
- [x] Post-return functions
- [x] Validate alignment and enable
&[u64]
views and similar- [x] Figure out what to do with lowering a lifted function
- [x]
Double-check behavior of traps with respect to validating in-bounds pointers and intermediate writes of params/results when lifting/loweringgiven the "trap lock" I don't think that this matters- [x] Figure out what to do with a lifting a lowered function
- [x] Figure out what to do with reexporting an imported function
- [x] Implement a "lock" for instances for when a trap happens (https://github.com/WebAssembly/component-model/issues/55)
- [x] Exporting a component instance from the root of a component
- [x] Fill out
unimplemented!
for outer core aliases- [x] Component-to-component adapters (this is a huge work item implying an entire compiler for adapter trampolines)
- [x] Fix support for zero-sized flags.
- [x] Fix support for zero-sized lists/strings/types
- [ ] Implement new reentrance rules
- [ ] Update support for multi-return,
unit
, etc.Separate work items
I'm starting to separate off work items from this issue to separate tracking issues with more detail. These will all need completion to finish the component model work but these issues are suitable to be picked up by anyone in theory.
- [x] Support for
record
,variant
,enum
,union
,flags
- [x] Calling a function with a dynamic signature
- [x] Fuzzing for round-tripping component values
- [x] String support for utf16+latin1 (omitted from #4039)
- [ ] Deduplicate size/align calculations
- [ ] Support 64-bit memories for components
- [ ] Support creation of function types
- [ ] Implement type reflection for imports/exports
Unsure how to implement so far
- Everything with
value
ranging from imports to exports to thestart
function- Type imports
- Unsure how to rationalize performance concerns with validating indirect values like lists from wasm coming to the host when balanced with spec-desired behavior of validating everything.
Open questions
- How to optimize passing
&[u8]
to WebAssembly to amemcpy
?How to handle validation ofValue<T>
coming out of wasm?Not planned at this time
- Importing component-defined functions into a component without any extra copies to the host
- Importing component instances directly into other components
- Importing a component or exporting a component at the root level
- Reexporting an imported function from a component and expecting it to work.
alexcrichton edited issue #4185:
This is intended to be a tracking issue for the implementation of the component model proposal of WebAssembly. I'm in the progress of implementing this with work in Wasmtime starting at https://github.com/bytecodealliance/wasmtime/pull/4005 and continuing in further PRs. I hope to leave checkbox items here to ensure I don't forget about them and to also track the progress of implementing the component model.
Items to be implemented
- [x] Text format parsing
- [x] Validation in
wasmparser
- [x] Basic infrastructure in the
component
submodule of thewasmtime
crate- [x] Basic instantiation with zero imports
- [x] Extracting a function and calling it with a static signature
- [x] Importing host functions into a component
- [x] Importing host instances (bundles of host functions) into a component
- [x] Importing a wasm module into a component
- [x] Exporting a module from a component
- [x] Nested component compilation
- [x] Nested component instantiation
- [x] Outer component aliases
- [x] Exporting a component from a component
- [x] Confirm lowered-then-lifted interpretation of "always trap" is correct
- [x] Split
ComponentValue
into lifting and lowering traits- [x] Implement may_enter and may_leave flags
- [x] Post-return functions
- [x] Validate alignment and enable
&[u64]
views and similar- [x] Figure out what to do with lowering a lifted function
- [x]
Double-check behavior of traps with respect to validating in-bounds pointers and intermediate writes of params/results when lifting/loweringgiven the "trap lock" I don't think that this matters- [x] Figure out what to do with a lifting a lowered function
- [x] Figure out what to do with reexporting an imported function
- [x] Implement a "lock" for instances for when a trap happens (https://github.com/WebAssembly/component-model/issues/55)
- [x] Exporting a component instance from the root of a component
- [x] Fill out
unimplemented!
for outer core aliases- [x] Component-to-component adapters (this is a huge work item implying an entire compiler for adapter trampolines)
- [x] Fix support for zero-sized flags.
- [x] Fix support for zero-sized lists/strings/types
- [ ] Implement new reentrance rules
- [ ] Update support for multi-return,
unit
, etc.Separate work items
I'm starting to separate off work items from this issue to separate tracking issues with more detail. These will all need completion to finish the component model work but these issues are suitable to be picked up by anyone in theory.
- [x] Support for
record
,variant
,enum
,union
,flags
- [x] Calling a function with a dynamic signature
- [x] Fuzzing for round-tripping component values
- [x] String support for utf16+latin1 (omitted from #4039)
- [ ] Deduplicate size/align calculations
- [ ] Support creation of function types
Unsure how to implement so far
- Everything with
value
ranging from imports to exports to thestart
function- Type imports
- Unsure how to rationalize performance concerns with validating indirect values like lists from wasm coming to the host when balanced with spec-desired behavior of validating everything.
Open questions
- How to optimize passing
&[u8]
to WebAssembly to amemcpy
?How to handle validation ofValue<T>
coming out of wasm?Not planned at this time
- Importing component-defined functions into a component without any extra copies to the host
- Importing component instances directly into other components
- Importing a component or exporting a component at the root level
- Reexporting an imported function from a component and expecting it to work.
alexcrichton edited issue #4185:
This is intended to be a tracking issue for the implementation of the component model proposal of WebAssembly. I'm in the progress of implementing this with work in Wasmtime starting at https://github.com/bytecodealliance/wasmtime/pull/4005 and continuing in further PRs. I hope to leave checkbox items here to ensure I don't forget about them and to also track the progress of implementing the component model.
Items to be implemented
- [x] Text format parsing
- [x] Validation in
wasmparser
- [x] Basic infrastructure in the
component
submodule of thewasmtime
crate- [x] Basic instantiation with zero imports
- [x] Extracting a function and calling it with a static signature
- [x] Importing host functions into a component
- [x] Importing host instances (bundles of host functions) into a component
- [x] Importing a wasm module into a component
- [x] Exporting a module from a component
- [x] Nested component compilation
- [x] Nested component instantiation
- [x] Outer component aliases
- [x] Exporting a component from a component
- [x] Confirm lowered-then-lifted interpretation of "always trap" is correct
- [x] Split
ComponentValue
into lifting and lowering traits- [x] Implement may_enter and may_leave flags
- [x] Post-return functions
- [x] Validate alignment and enable
&[u64]
views and similar- [x] Figure out what to do with lowering a lifted function
- [x]
Double-check behavior of traps with respect to validating in-bounds pointers and intermediate writes of params/results when lifting/loweringgiven the "trap lock" I don't think that this matters- [x] Figure out what to do with a lifting a lowered function
- [x] Figure out what to do with reexporting an imported function
- [x] Implement a "lock" for instances for when a trap happens (https://github.com/WebAssembly/component-model/issues/55)
- [x] Exporting a component instance from the root of a component
- [x] Fill out
unimplemented!
for outer core aliases- [x] Component-to-component adapters (this is a huge work item implying an entire compiler for adapter trampolines)
- [x] Fix support for zero-sized flags.
- [x] Fix support for zero-sized lists/strings/types
- [ ] Implement new reentrance rules
- [ ] Update support for multi-return,
unit
, etc.Separate work items
I'm starting to separate off work items from this issue to separate tracking issues with more detail. These will all need completion to finish the component model work but these issues are suitable to be picked up by anyone in theory.
- [x] Support for
record
,variant
,enum
,union
,flags
- [x] Calling a function with a dynamic signature
- [x] Fuzzing for round-tripping component values
- [x] String support for utf16+latin1 (omitted from #4039)
- [ ] Deduplicate size/align calculations
- [ ] Support creation of function types
- [ ] Implement type reflection for imports/exports
- [ ] Support 64-bit memories for components
Unsure how to implement so far
- Everything with
value
ranging from imports to exports to thestart
function- Type imports
- Unsure how to rationalize performance concerns with validating indirect values like lists from wasm coming to the host when balanced with spec-desired behavior of validating everything.
Open questions
- How to optimize passing
&[u8]
to WebAssembly to amemcpy
?How to handle validation ofValue<T>
coming out of wasm?Not planned at this time
- Importing component-defined functions into a component without any extra copies to the host
- Importing component instances directly into other components
- Importing a component or exporting a component at the root level
- Reexporting an imported function from a component and expecting it to work.
alexcrichton edited issue #4185:
This is intended to be a tracking issue for the implementation of the component model proposal of WebAssembly. I'm in the progress of implementing this with work in Wasmtime starting at https://github.com/bytecodealliance/wasmtime/pull/4005 and continuing in further PRs. I hope to leave checkbox items here to ensure I don't forget about them and to also track the progress of implementing the component model.
Items to be implemented
- [x] Text format parsing
- [x] Validation in
wasmparser
- [x] Basic infrastructure in the
component
submodule of thewasmtime
crate- [x] Basic instantiation with zero imports
- [x] Extracting a function and calling it with a static signature
- [x] Importing host functions into a component
- [x] Importing host instances (bundles of host functions) into a component
- [x] Importing a wasm module into a component
- [x] Exporting a module from a component
- [x] Nested component compilation
- [x] Nested component instantiation
- [x] Outer component aliases
- [x] Exporting a component from a component
- [x] Confirm lowered-then-lifted interpretation of "always trap" is correct
- [x] Split
ComponentValue
into lifting and lowering traits- [x] Implement may_enter and may_leave flags
- [x] Post-return functions
- [x] Validate alignment and enable
&[u64]
views and similar- [x] Figure out what to do with lowering a lifted function
- [x]
Double-check behavior of traps with respect to validating in-bounds pointers and intermediate writes of params/results when lifting/loweringgiven the "trap lock" I don't think that this matters- [x] Figure out what to do with a lifting a lowered function
- [x] Figure out what to do with reexporting an imported function
- [x] Implement a "lock" for instances for when a trap happens (https://github.com/WebAssembly/component-model/issues/55)
- [x] Exporting a component instance from the root of a component
- [x] Fill out
unimplemented!
for outer core aliases- [x] Component-to-component adapters (this is a huge work item implying an entire compiler for adapter trampolines)
- [x] Fix support for zero-sized flags.
- [x] Fix support for zero-sized lists/strings/types
- [ ] Implement new reentrance rules
- [ ] Update support for multi-return,
unit
, etc.Separate work items
I'm starting to separate off work items from this issue to separate tracking issues with more detail. These will all need completion to finish the component model work but these issues are suitable to be picked up by anyone in theory.
- [x] Support for
record
,variant
,enum
,union
,flags
- [x] Calling a function with a dynamic signature
- [x] Fuzzing for round-tripping component values
- [x] String support for utf16+latin1 (omitted from #4039)
- [x] Deduplicate size/align calculations
- [ ] Support creation of function types
- [ ] Implement type reflection for imports/exports
- [ ] Support 64-bit memories for components
Unsure how to implement so far
- Everything with
value
ranging from imports to exports to thestart
function- Type imports
- Unsure how to rationalize performance concerns with validating indirect values like lists from wasm coming to the host when balanced with spec-desired behavior of validating everything.
Open questions
- How to optimize passing
&[u8]
to WebAssembly to amemcpy
?How to handle validation ofValue<T>
coming out of wasm?Not planned at this time
- Importing component-defined functions into a component without any extra copies to the host
- Importing component instances directly into other components
- Importing a component or exporting a component at the root level
- Reexporting an imported function from a component and expecting it to work.
alexcrichton edited issue #4185:
This is intended to be a tracking issue for the implementation of the component model proposal of WebAssembly. I'm in the progress of implementing this with work in Wasmtime starting at https://github.com/bytecodealliance/wasmtime/pull/4005 and continuing in further PRs. I hope to leave checkbox items here to ensure I don't forget about them and to also track the progress of implementing the component model.
Items to be implemented
- [x] Text format parsing
- [x] Validation in
wasmparser
- [x] Basic infrastructure in the
component
submodule of thewasmtime
crate- [x] Basic instantiation with zero imports
- [x] Extracting a function and calling it with a static signature
- [x] Importing host functions into a component
- [x] Importing host instances (bundles of host functions) into a component
- [x] Importing a wasm module into a component
- [x] Exporting a module from a component
- [x] Nested component compilation
- [x] Nested component instantiation
- [x] Outer component aliases
- [x] Exporting a component from a component
- [x] Confirm lowered-then-lifted interpretation of "always trap" is correct
- [x] Split
ComponentValue
into lifting and lowering traits- [x] Implement may_enter and may_leave flags
- [x] Post-return functions
- [x] Validate alignment and enable
&[u64]
views and similar- [x] Figure out what to do with lowering a lifted function
- [x]
Double-check behavior of traps with respect to validating in-bounds pointers and intermediate writes of params/results when lifting/loweringgiven the "trap lock" I don't think that this matters- [x] Figure out what to do with a lifting a lowered function
- [x] Figure out what to do with reexporting an imported function
- [x] Implement a "lock" for instances for when a trap happens (https://github.com/WebAssembly/component-model/issues/55)
- [x] Exporting a component instance from the root of a component
- [x] Fill out
unimplemented!
for outer core aliases- [x] Component-to-component adapters (this is a huge work item implying an entire compiler for adapter trampolines)
- [x] Fix support for zero-sized flags.
- [x] Fix support for zero-sized lists/strings/types
- [x] Update support for multi-return,
unit
, etc.- [ ] Implement new reentrance rules
Separate work items
I'm starting to separate off work items from this issue to separate tracking issues with more detail. These will all need completion to finish the component model work but these issues are suitable to be picked up by anyone in theory.
- [x] Support for
record
,variant
,enum
,union
,flags
- [x] Calling a function with a dynamic signature
- [x] Fuzzing for round-tripping component values
- [x] String support for utf16+latin1 (omitted from #4039)
- [x] Deduplicate size/align calculations
- [ ] Support creation of function types
- [ ] Implement type reflection for imports/exports
- [ ] Support 64-bit memories for components
Unsure how to implement so far
- Everything with
value
ranging from imports to exports to thestart
function- Type imports
- Unsure how to rationalize performance concerns with validating indirect values like lists from wasm coming to the host when balanced with spec-desired behavior of validating everything.
Open questions
- How to optimize passing
&[u8]
to WebAssembly to amemcpy
?How to handle validation ofValue<T>
coming out of wasm?Not planned at this time
- Importing component-defined functions into a component without any extra copies to the host
- Importing component instances directly into other components
- Importing a component or exporting a component at the root level
- Reexporting an imported function from a component and expecting it to work.
alexcrichton edited issue #4185:
This is intended to be a tracking issue for the implementation of the component model proposal of WebAssembly. I'm in the progress of implementing this with work in Wasmtime starting at https://github.com/bytecodealliance/wasmtime/pull/4005 and continuing in further PRs. I hope to leave checkbox items here to ensure I don't forget about them and to also track the progress of implementing the component model.
Items to be implemented
- [x] Text format parsing
- [x] Validation in
wasmparser
- [x] Basic infrastructure in the
component
submodule of thewasmtime
crate- [x] Basic instantiation with zero imports
- [x] Extracting a function and calling it with a static signature
- [x] Importing host functions into a component
- [x] Importing host instances (bundles of host functions) into a component
- [x] Importing a wasm module into a component
- [x] Exporting a module from a component
- [x] Nested component compilation
- [x] Nested component instantiation
- [x] Outer component aliases
- [x] Exporting a component from a component
- [x] Confirm lowered-then-lifted interpretation of "always trap" is correct
- [x] Split
ComponentValue
into lifting and lowering traits- [x] Implement may_enter and may_leave flags
- [x] Post-return functions
- [x] Validate alignment and enable
&[u64]
views and similar- [x] Figure out what to do with lowering a lifted function
- [x]
Double-check behavior of traps with respect to validating in-bounds pointers and intermediate writes of params/results when lifting/loweringgiven the "trap lock" I don't think that this matters- [x] Figure out what to do with a lifting a lowered function
- [x] Figure out what to do with reexporting an imported function
- [x] Implement a "lock" for instances for when a trap happens (https://github.com/WebAssembly/component-model/issues/55)
- [x] Exporting a component instance from the root of a component
- [x] Fill out
unimplemented!
for outer core aliases- [x] Component-to-component adapters (this is a huge work item implying an entire compiler for adapter trampolines)
- [x] Fix support for zero-sized flags.
- [x] Fix support for zero-sized lists/strings/types
- [ ] Update support for multi-return,
unit
, etc.- [ ] Implement new reentrance rules
Separate work items
I'm starting to separate off work items from this issue to separate tracking issues with more detail. These will all need completion to finish the component model work but these issues are suitable to be picked up by anyone in theory.
- [x] Support for
record
,variant
,enum
,union
,flags
- [x] Calling a function with a dynamic signature
- [x] Fuzzing for round-tripping component values
- [x] String support for utf16+latin1 (omitted from #4039)
- [x] Deduplicate size/align calculations
- [ ] Support creation of function types
- [ ] Implement type reflection for imports/exports
- [ ] Support 64-bit memories for components
Unsure how to implement so far
- Everything with
value
ranging from imports to exports to thestart
function- Type imports
- Unsure how to rationalize performance concerns with validating indirect values like lists from wasm coming to the host when balanced with spec-desired behavior of validating everything.
Open questions
- How to optimize passing
&[u8]
to WebAssembly to amemcpy
?How to handle validation ofValue<T>
coming out of wasm?Not planned at this time
- Importing component-defined functions into a component without any extra copies to the host
- Importing component instances directly into other components
- Importing a component or exporting a component at the root level
- Reexporting an imported function from a component and expecting it to work.
alexcrichton edited issue #4185:
This is intended to be a tracking issue for the implementation of the component model proposal of WebAssembly. I'm in the progress of implementing this with work in Wasmtime starting at https://github.com/bytecodealliance/wasmtime/pull/4005 and continuing in further PRs. I hope to leave checkbox items here to ensure I don't forget about them and to also track the progress of implementing the component model.
Items to be implemented
- [x] Text format parsing
- [x] Validation in
wasmparser
- [x] Basic infrastructure in the
component
submodule of thewasmtime
crate- [x] Basic instantiation with zero imports
- [x] Extracting a function and calling it with a static signature
- [x] Importing host functions into a component
- [x] Importing host instances (bundles of host functions) into a component
- [x] Importing a wasm module into a component
- [x] Exporting a module from a component
- [x] Nested component compilation
- [x] Nested component instantiation
- [x] Outer component aliases
- [x] Exporting a component from a component
- [x] Confirm lowered-then-lifted interpretation of "always trap" is correct
- [x] Split
ComponentValue
into lifting and lowering traits- [x] Implement may_enter and may_leave flags
- [x] Post-return functions
- [x] Validate alignment and enable
&[u64]
views and similar- [x] Figure out what to do with lowering a lifted function
- [x]
Double-check behavior of traps with respect to validating in-bounds pointers and intermediate writes of params/results when lifting/loweringgiven the "trap lock" I don't think that this matters- [x] Figure out what to do with a lifting a lowered function
- [x] Figure out what to do with reexporting an imported function
- [x] Implement a "lock" for instances for when a trap happens (https://github.com/WebAssembly/component-model/issues/55)
- [x] Exporting a component instance from the root of a component
- [x] Fill out
unimplemented!
for outer core aliases- [x] Component-to-component adapters (this is a huge work item implying an entire compiler for adapter trampolines)
- [x] Fix support for zero-sized flags.
- [x] Fix support for zero-sized lists/strings/types
- [x] Update support for multi-return,
unit
, etc.- [ ] Implement new reentrance rules
Separate work items
I'm starting to separate off work items from this issue to separate tracking issues with more detail. These will all need completion to finish the component model work but these issues are suitable to be picked up by anyone in theory.
- [x] Support for
record
,variant
,enum
,union
,flags
- [x] Calling a function with a dynamic signature
- [x] Fuzzing for round-tripping component values
- [x] String support for utf16+latin1 (omitted from #4039)
- [x] Deduplicate size/align calculations
- [ ] Support creation of function types
- [ ] Implement type reflection for imports/exports
- [ ] Support 64-bit memories for components
Unsure how to implement so far
- Everything with
value
ranging from imports to exports to thestart
function- Type imports
- Unsure how to rationalize performance concerns with validating indirect values like lists from wasm coming to the host when balanced with spec-desired behavior of validating everything.
Open questions
- How to optimize passing
&[u8]
to WebAssembly to amemcpy
?How to handle validation ofValue<T>
coming out of wasm?Not planned at this time
- Importing component-defined functions into a component without any extra copies to the host
- Importing component instances directly into other components
- Importing a component or exporting a component at the root level
- Reexporting an imported function from a component and expecting it to work.
alexcrichton edited issue #4185:
This is intended to be a tracking issue for the implementation of the component model proposal of WebAssembly. I'm in the progress of implementing this with work in Wasmtime starting at https://github.com/bytecodealliance/wasmtime/pull/4005 and continuing in further PRs. I hope to leave checkbox items here to ensure I don't forget about them and to also track the progress of implementing the component model.
Items to be implemented
- [x] Text format parsing
- [x] Validation in
wasmparser
- [x] Basic infrastructure in the
component
submodule of thewasmtime
crate- [x] Basic instantiation with zero imports
- [x] Extracting a function and calling it with a static signature
- [x] Importing host functions into a component
- [x] Importing host instances (bundles of host functions) into a component
- [x] Importing a wasm module into a component
- [x] Exporting a module from a component
- [x] Nested component compilation
- [x] Nested component instantiation
- [x] Outer component aliases
- [x] Exporting a component from a component
- [x] Confirm lowered-then-lifted interpretation of "always trap" is correct
- [x] Split
ComponentValue
into lifting and lowering traits- [x] Implement may_enter and may_leave flags
- [x] Post-return functions
- [x] Validate alignment and enable
&[u64]
views and similar- [x] Figure out what to do with lowering a lifted function
- [x]
Double-check behavior of traps with respect to validating in-bounds pointers and intermediate writes of params/results when lifting/loweringgiven the "trap lock" I don't think that this matters- [x] Figure out what to do with a lifting a lowered function
- [x] Figure out what to do with reexporting an imported function
- [x] Implement a "lock" for instances for when a trap happens (https://github.com/WebAssembly/component-model/issues/55)
- [x] Exporting a component instance from the root of a component
- [x] Fill out
unimplemented!
for outer core aliases- [x] Component-to-component adapters (this is a huge work item implying an entire compiler for adapter trampolines)
- [x] Fix support for zero-sized flags.
- [x] Fix support for zero-sized lists/strings/types
- [x] Update support for multi-return,
unit
, etc.- [ ] Implement new reentrance rules
Separate work items
I'm starting to separate off work items from this issue to separate tracking issues with more detail. These will all need completion to finish the component model work but these issues are suitable to be picked up by anyone in theory.
- [x] Support for
record
,variant
,enum
,union
,flags
- [x] Calling a function with a dynamic signature
- [x] Fuzzing for round-tripping component values
- [x] String support for utf16+latin1 (omitted from #4039)
- [x] Deduplicate size/align calculations
- [ ] Support creation of function types
- [ ] Implement type reflection for imports/exports
- [ ] Support 64-bit memories for components
- [ ] Audit adapter trampolines to ensure that out-of-bounds pointers have correct semantics, especially when calling helper functions for translations of types in memory.
Unsure how to implement so far
- Everything with
value
ranging from imports to exports to thestart
function- Type imports
- Unsure how to rationalize performance concerns with validating indirect values like lists from wasm coming to the host when balanced with spec-desired behavior of validating everything.
Open questions
- How to optimize passing
&[u8]
to WebAssembly to amemcpy
?How to handle validation ofValue<T>
coming out of wasm?Not planned at this time
- Importing component-defined functions into a component without any extra copies to the host
- Importing component instances directly into other components
- Importing a component or exporting a component at the root level
- Reexporting an imported function from a component and expecting it to work.
alexcrichton edited issue #4185:
This is intended to be a tracking issue for the implementation of the component model proposal of WebAssembly. I'm in the progress of implementing this with work in Wasmtime starting at https://github.com/bytecodealliance/wasmtime/pull/4005 and continuing in further PRs. I hope to leave checkbox items here to ensure I don't forget about them and to also track the progress of implementing the component model.
Items to be implemented
- [x] Text format parsing
- [x] Validation in
wasmparser
- [x] Basic infrastructure in the
component
submodule of thewasmtime
crate- [x] Basic instantiation with zero imports
- [x] Extracting a function and calling it with a static signature
- [x] Importing host functions into a component
- [x] Importing host instances (bundles of host functions) into a component
- [x] Importing a wasm module into a component
- [x] Exporting a module from a component
- [x] Nested component compilation
- [x] Nested component instantiation
- [x] Outer component aliases
- [x] Exporting a component from a component
- [x] Confirm lowered-then-lifted interpretation of "always trap" is correct
- [x] Split
ComponentValue
into lifting and lowering traits- [x] Implement may_enter and may_leave flags
- [x] Post-return functions
- [x] Validate alignment and enable
&[u64]
views and similar- [x] Figure out what to do with lowering a lifted function
- [x]
Double-check behavior of traps with respect to validating in-bounds pointers and intermediate writes of params/results when lifting/loweringgiven the "trap lock" I don't think that this matters- [x] Figure out what to do with a lifting a lowered function
- [x] Figure out what to do with reexporting an imported function
- [x] Implement a "lock" for instances for when a trap happens (https://github.com/WebAssembly/component-model/issues/55)
- [x] Exporting a component instance from the root of a component
- [x] Fill out
unimplemented!
for outer core aliases- [x] Component-to-component adapters (this is a huge work item implying an entire compiler for adapter trampolines)
- [x] Fix support for zero-sized flags.
- [x] Fix support for zero-sized lists/strings/types
- [x] Update support for multi-return,
unit
, etc.- [ ] Implement new reentrance rules
Separate work items
I'm starting to separate off work items from this issue to separate tracking issues with more detail. These will all need completion to finish the component model work but these issues are suitable to be picked up by anyone in theory.
- [x] Support for
record
,variant
,enum
,union
,flags
- [x] Calling a function with a dynamic signature
- [x] Fuzzing for round-tripping component values
- [x] String support for utf16+latin1 (omitted from #4039)
- [x] Deduplicate size/align calculations
- [ ] Support creation of function types
- [ ] Implement type reflection for imports/exports
- [ ] Support 64-bit memories for components
- [ ] Audit adapter trampolines to ensure that out-of-bounds pointers have correct semantics, especially when calling helper functions for translations of types in memory.
- [ ] Implementing
value
types andstart
functionsOpen questions
- How to optimize passing
&[u8]
to WebAssembly to amemcpy
?How to handle validation ofValue<T>
coming out of wasm?- What to do about type imports?
- Unsure how to rationalize performance concerns with validating indirect values like lists from wasm coming to the host when balanced with spec-desired behavior of validating everything.
Not planned at this time
- Importing component-defined functions into a component without any extra copies to the host
- Importing component instances directly into other components
- Importing a component or exporting a component at the root level
- Reexporting an imported function from a component root and expecting it to work.
alexcrichton edited issue #4185:
This is intended to be a tracking issue for the implementation of the component model proposal of WebAssembly. I'm in the progress of implementing this with work in Wasmtime starting at https://github.com/bytecodealliance/wasmtime/pull/4005 and continuing in further PRs. I hope to leave checkbox items here to ensure I don't forget about them and to also track the progress of implementing the component model.
Items to be implemented
- [x] Text format parsing
- [x] Validation in
wasmparser
- [x] Basic infrastructure in the
component
submodule of thewasmtime
crate- [x] Basic instantiation with zero imports
- [x] Extracting a function and calling it with a static signature
- [x] Importing host functions into a component
- [x] Importing host instances (bundles of host functions) into a component
- [x] Importing a wasm module into a component
- [x] Exporting a module from a component
- [x] Nested component compilation
- [x] Nested component instantiation
- [x] Outer component aliases
- [x] Exporting a component from a component
- [x] Confirm lowered-then-lifted interpretation of "always trap" is correct
- [x] Split
ComponentValue
into lifting and lowering traits- [x] Implement may_enter and may_leave flags
- [x] Post-return functions
- [x] Validate alignment and enable
&[u64]
views and similar- [x] Figure out what to do with lowering a lifted function
- [x]
Double-check behavior of traps with respect to validating in-bounds pointers and intermediate writes of params/results when lifting/loweringgiven the "trap lock" I don't think that this matters- [x] Figure out what to do with a lifting a lowered function
- [x] Figure out what to do with reexporting an imported function
- [x] Implement a "lock" for instances for when a trap happens (https://github.com/WebAssembly/component-model/issues/55)
- [x] Exporting a component instance from the root of a component
- [x] Fill out
unimplemented!
for outer core aliases- [x] Component-to-component adapters (this is a huge work item implying an entire compiler for adapter trampolines)
- [x] Fix support for zero-sized flags.
- [x] Fix support for zero-sized lists/strings/types
- [x] Update support for multi-return,
unit
, etc.- [ ] Implement new reentrance rules
- [ ] Implement embedder support for multi-return (in the
wasmtime
crate API)Separate work items
I'm starting to separate off work items from this issue to separate tracking issues with more detail. These will all need completion to finish the component model work but these issues are suitable to be picked up by anyone in theory.
- [x] Support for
record
,variant
,enum
,union
,flags
- [x] Calling a function with a dynamic signature
- [x] Fuzzing for round-tripping component values
- [x] String support for utf16+latin1 (omitted from #4039)
- [x] Deduplicate size/align calculations
- [ ] Support creation of function types
- [ ] Implement type reflection for imports/exports
- [ ] Support 64-bit memories for components
- [ ] Audit adapter trampolines to ensure that out-of-bounds pointers have correct semantics, especially when calling helper functions for translations of types in memory.
Unsure how to implement so far
- Everything with
value
ranging from imports to exports to thestart
function- Type imports
- Unsure how to rationalize performance concerns with validating indirect values like lists from wasm coming to the host when balanced with spec-desired behavior of validating everything.
Open questions
- How to optimize passing
&[u8]
to WebAssembly to amemcpy
?How to handle validation ofValue<T>
coming out of wasm?Not planned at this time
- Importing component-defined functions into a component without any extra copies to the host
- Importing component instances directly into other components
- Importing a component or exporting a component at the root level
- Reexporting an imported function from a component and expecting it to work.
alexcrichton edited issue #4185:
This is intended to be a tracking issue for the implementation of the component model proposal of WebAssembly. I'm in the progress of implementing this with work in Wasmtime starting at https://github.com/bytecodealliance/wasmtime/pull/4005 and continuing in further PRs. I hope to leave checkbox items here to ensure I don't forget about them and to also track the progress of implementing the component model.
Items to be implemented
- [x] Text format parsing
- [x] Validation in
wasmparser
- [x] Basic infrastructure in the
component
submodule of thewasmtime
crate- [x] Basic instantiation with zero imports
- [x] Extracting a function and calling it with a static signature
- [x] Importing host functions into a component
- [x] Importing host instances (bundles of host functions) into a component
- [x] Importing a wasm module into a component
- [x] Exporting a module from a component
- [x] Nested component compilation
- [x] Nested component instantiation
- [x] Outer component aliases
- [x] Exporting a component from a component
- [x] Confirm lowered-then-lifted interpretation of "always trap" is correct
- [x] Split
ComponentValue
into lifting and lowering traits- [x] Implement may_enter and may_leave flags
- [x] Post-return functions
- [x] Validate alignment and enable
&[u64]
views and similar- [x] Figure out what to do with lowering a lifted function
- [x]
Double-check behavior of traps with respect to validating in-bounds pointers and intermediate writes of params/results when lifting/loweringgiven the "trap lock" I don't think that this matters- [x] Figure out what to do with a lifting a lowered function
- [x] Figure out what to do with reexporting an imported function
- [x] Implement a "lock" for instances for when a trap happens (https://github.com/WebAssembly/component-model/issues/55)
- [x] Exporting a component instance from the root of a component
- [x] Fill out
unimplemented!
for outer core aliases- [x] Component-to-component adapters (this is a huge work item implying an entire compiler for adapter trampolines)
- [x] Fix support for zero-sized flags.
- [x] Fix support for zero-sized lists/strings/types
- [x] Update support for multi-return,
unit
, etc.- [ ] Implement new reentrance rules
- [x] Implement embedder support for multi-return (in the
wasmtime
crate API)Separate work items
I'm starting to separate off work items from this issue to separate tracking issues with more detail. These will all need completion to finish the component model work but these issues are suitable to be picked up by anyone in theory.
- [x] Support for
record
,variant
,enum
,union
,flags
- [x] Calling a function with a dynamic signature
- [x] Fuzzing for round-tripping component values
- [x] String support for utf16+latin1 (omitted from #4039)
- [x] Deduplicate size/align calculations
- [ ] Support creation of function types
- [ ] Implement type reflection for imports/exports
- [ ] Support 64-bit memories for components
- [ ] Audit adapter trampolines to ensure that out-of-bounds pointers have correct semantics, especially when calling helper functions for translations of types in memory.
Unsure how to implement so far
- Everything with
value
ranging from imports to exports to thestart
function- Type imports
- Unsure how to rationalize performance concerns with validating indirect values like lists from wasm coming to the host when balanced with spec-desired behavior of validating everything.
Open questions
- How to optimize passing
&[u8]
to WebAssembly to amemcpy
?How to handle validation ofValue<T>
coming out of wasm?Not planned at this time
- Importing component-defined functions into a component without any extra copies to the host
- Importing component instances directly into other components
- Importing a component or exporting a component at the root level
- Reexporting an imported function from a component and expecting it to work.
alexcrichton edited issue #4185:
This is intended to be a tracking issue for the implementation of the component model proposal of WebAssembly. I'm in the progress of implementing this with work in Wasmtime starting at https://github.com/bytecodealliance/wasmtime/pull/4005 and continuing in further PRs. I hope to leave checkbox items here to ensure I don't forget about them and to also track the progress of implementing the component model.
Items to be implemented
- [x] Text format parsing
- [x] Validation in
wasmparser
- [x] Basic infrastructure in the
component
submodule of thewasmtime
crate- [x] Basic instantiation with zero imports
- [x] Extracting a function and calling it with a static signature
- [x] Importing host functions into a component
- [x] Importing host instances (bundles of host functions) into a component
- [x] Importing a wasm module into a component
- [x] Exporting a module from a component
- [x] Nested component compilation
- [x] Nested component instantiation
- [x] Outer component aliases
- [x] Exporting a component from a component
- [x] Confirm lowered-then-lifted interpretation of "always trap" is correct
- [x] Split
ComponentValue
into lifting and lowering traits- [x] Implement may_enter and may_leave flags
- [x] Post-return functions
- [x] Validate alignment and enable
&[u64]
views and similar- [x] Figure out what to do with lowering a lifted function
- [x]
Double-check behavior of traps with respect to validating in-bounds pointers and intermediate writes of params/results when lifting/loweringgiven the "trap lock" I don't think that this matters- [x] Figure out what to do with a lifting a lowered function
- [x] Figure out what to do with reexporting an imported function
- [x] Implement a "lock" for instances for when a trap happens (https://github.com/WebAssembly/component-model/issues/55)
- [x] Exporting a component instance from the root of a component
- [x] Fill out
unimplemented!
for outer core aliases- [x] Component-to-component adapters (this is a huge work item implying an entire compiler for adapter trampolines)
- [x] Fix support for zero-sized flags.
- [x] Fix support for zero-sized lists/strings/types
- [x] Update support for multi-return,
unit
, etc.- [x] Implement embedder support for multi-return (in the
wasmtime
crate API)- [ ] Implement new reentrance rules
Separate work items
I'm starting to separate off work items from this issue to separate tracking issues with more detail. These will all need completion to finish the component model work but these issues are suitable to be picked up by anyone in theory.
- [x] Support for
record
,variant
,enum
,union
,flags
- [x] Calling a function with a dynamic signature
- [x] Fuzzing for round-tripping component values
- [x] String support for utf16+latin1 (omitted from #4039)
- [x] Deduplicate size/align calculations
- [ ] Support creation of function types
- [ ] Implement type reflection for imports/exports
- [ ] Support 64-bit memories for components
- [ ] Audit adapter trampolines to ensure that out-of-bounds pointers have correct semantics, especially when calling helper functions for translations of types in memory.
Unsure how to implement so far
- Everything with
value
ranging from imports to exports to thestart
function- Type imports
- Unsure how to rationalize performance concerns with validating indirect values like lists from wasm coming to the host when balanced with spec-desired behavior of validating everything.
Open questions
- How to optimize passing
&[u8]
to WebAssembly to amemcpy
?How to handle validation ofValue<T>
coming out of wasm?Not planned at this time
- Importing component-defined functions into a component without any extra copies to the host
- Importing component instances directly into other components
- Importing a component or exporting a component at the root level
- Reexporting an imported function from a component and expecting it to work.
alexcrichton edited issue #4185:
This is intended to be a tracking issue for the implementation of the component model proposal of WebAssembly. I'm in the progress of implementing this with work in Wasmtime starting at https://github.com/bytecodealliance/wasmtime/pull/4005 and continuing in further PRs. I hope to leave checkbox items here to ensure I don't forget about them and to also track the progress of implementing the component model.
Items to be implemented
- [x] Text format parsing
- [x] Validation in
wasmparser
- [x] Basic infrastructure in the
component
submodule of thewasmtime
crate- [x] Basic instantiation with zero imports
- [x] Extracting a function and calling it with a static signature
- [x] Importing host functions into a component
- [x] Importing host instances (bundles of host functions) into a component
- [x] Importing a wasm module into a component
- [x] Exporting a module from a component
- [x] Nested component compilation
- [x] Nested component instantiation
- [x] Outer component aliases
- [x] Exporting a component from a component
- [x] Confirm lowered-then-lifted interpretation of "always trap" is correct
- [x] Split
ComponentValue
into lifting and lowering traits- [x] Implement may_enter and may_leave flags
- [x] Post-return functions
- [x] Validate alignment and enable
&[u64]
views and similar- [x] Figure out what to do with lowering a lifted function
- [x]
Double-check behavior of traps with respect to validating in-bounds pointers and intermediate writes of params/results when lifting/loweringgiven the "trap lock" I don't think that this matters- [x] Figure out what to do with a lifting a lowered function
- [x] Figure out what to do with reexporting an imported function
- [x] Implement a "lock" for instances for when a trap happens (https://github.com/WebAssembly/component-model/issues/55)
- [x] Exporting a component instance from the root of a component
- [x] Fill out
unimplemented!
for outer core aliases- [x] Component-to-component adapters (this is a huge work item implying an entire compiler for adapter trampolines)
- [x] Fix support for zero-sized flags.
- [x] Fix support for zero-sized lists/strings/types
- [x] Update support for multi-return,
unit
, etc.- [x] Implement embedder support for multi-return (in the
wasmtime
crate API)- [ ] Implement new reentrance rules
Separate work items
I'm starting to separate off work items from this issue to separate tracking issues with more detail. These will all need completion to finish the component model work but these issues are suitable to be picked up by anyone in theory.
- [x] Support for
record
,variant
,enum
,union
,flags
- [x] Calling a function with a dynamic signature
- [x] Fuzzing for round-tripping component values
- [x] String support for utf16+latin1 (omitted from #4039)
- [x] Deduplicate size/align calculations
- [ ] Support creation of function types
- [ ] Implement type reflection for imports/exports
- [ ] Support 64-bit memories for components
- [ ] Audit adapter trampolines to ensure that out-of-bounds pointers have correct semantics, especially when calling helper functions for translations of types in memory.
- [ ] Support AOT compilation of components
- [ ] Change how components interact with the pooling instance allocator
Unsure how to implement so far
- Everything with
value
ranging from imports to exports to thestart
function- Type imports
- Unsure how to rationalize performance concerns with validating indirect values like lists from wasm coming to the host when balanced with spec-desired behavior of validating everything.
Open questions
- How to optimize passing
&[u8]
to WebAssembly to amemcpy
?How to handle validation ofValue<T>
coming out of wasm?Not planned at this time
- Importing component-defined functions into a component without any extra copies to the host
- Importing component instances directly into other components
- Importing a component or exporting a component at the root level
- Reexporting an imported function from a component and expecting it to work.
alexcrichton edited issue #4185:
This is intended to be a tracking issue for the implementation of the component model proposal of WebAssembly. I'm in the progress of implementing this with work in Wasmtime starting at https://github.com/bytecodealliance/wasmtime/pull/4005 and continuing in further PRs. I hope to leave checkbox items here to ensure I don't forget about them and to also track the progress of implementing the component model.
Items to be implemented
- [x] Text format parsing
- [x] Validation in
wasmparser
- [x] Basic infrastructure in the
component
submodule of thewasmtime
crate- [x] Basic instantiation with zero imports
- [x] Extracting a function and calling it with a static signature
- [x] Importing host functions into a component
- [x] Importing host instances (bundles of host functions) into a component
- [x] Importing a wasm module into a component
- [x] Exporting a module from a component
- [x] Nested component compilation
- [x] Nested component instantiation
- [x] Outer component aliases
- [x] Exporting a component from a component
- [x] Confirm lowered-then-lifted interpretation of "always trap" is correct
- [x] Split
ComponentValue
into lifting and lowering traits- [x] Implement may_enter and may_leave flags
- [x] Post-return functions
- [x] Validate alignment and enable
&[u64]
views and similar- [x] Figure out what to do with lowering a lifted function
- [x]
Double-check behavior of traps with respect to validating in-bounds pointers and intermediate writes of params/results when lifting/loweringgiven the "trap lock" I don't think that this matters- [x] Figure out what to do with a lifting a lowered function
- [x] Figure out what to do with reexporting an imported function
- [x] Implement a "lock" for instances for when a trap happens (https://github.com/WebAssembly/component-model/issues/55)
- [x] Exporting a component instance from the root of a component
- [x] Fill out
unimplemented!
for outer core aliases- [x] Component-to-component adapters (this is a huge work item implying an entire compiler for adapter trampolines)
- [x] Fix support for zero-sized flags.
- [x] Fix support for zero-sized lists/strings/types
- [x] Update support for multi-return,
unit
, etc.- [x] Implement embedder support for multi-return (in the
wasmtime
crate API)- [ ] Implement new reentrance rules
Separate work items
I'm starting to separate off work items from this issue to separate tracking issues with more detail. These will all need completion to finish the component model work but these issues are suitable to be picked up by anyone in theory.
- [x] Support for
record
,variant
,enum
,union
,flags
- [x] Calling a function with a dynamic signature
- [x] Fuzzing for round-tripping component values
- [x] String support for utf16+latin1 (omitted from #4039)
- [x] Deduplicate size/align calculations
- [ ] Support creation of function types
- [ ] Implement type reflection for imports/exports
- [ ] Support 64-bit memories for components
- [ ] Audit adapter trampolines to ensure that out-of-bounds pointers have correct semantics, especially when calling helper functions for translations of types in memory.
- [x] Support AOT compilation of components
- [ ] Change how components interact with the pooling instance allocator
Unsure how to implement so far
- Everything with
value
ranging from imports to exports to thestart
function- Type imports
- Unsure how to rationalize performance concerns with validating indirect values like lists from wasm coming to the host when balanced with spec-desired behavior of validating everything.
Open questions
- How to optimize passing
&[u8]
to WebAssembly to amemcpy
?How to handle validation ofValue<T>
coming out of wasm?Not planned at this time
- Importing component-defined functions into a component without any extra copies to the host
- Importing component instances directly into other components
- Importing a component or exporting a component at the root level
- Reexporting an imported function from a component and expecting it to work.
alexcrichton edited issue #4185:
This is intended to be a tracking issue for the implementation of the component model proposal of WebAssembly. I'm in the progress of implementing this with work in Wasmtime starting at https://github.com/bytecodealliance/wasmtime/pull/4005 and continuing in further PRs. I hope to leave checkbox items here to ensure I don't forget about them and to also track the progress of implementing the component model.
Items to be implemented
- [x] Text format parsing
- [x] Validation in
wasmparser
- [x] Basic infrastructure in the
component
submodule of thewasmtime
crate- [x] Basic instantiation with zero imports
- [x] Extracting a function and calling it with a static signature
- [x] Importing host functions into a component
- [x] Importing host instances (bundles of host functions) into a component
- [x] Importing a wasm module into a component
- [x] Exporting a module from a component
- [x] Nested component compilation
- [x] Nested component instantiation
- [x] Outer component aliases
- [x] Exporting a component from a component
- [x] Confirm lowered-then-lifted interpretation of "always trap" is correct
- [x] Split
ComponentValue
into lifting and lowering traits- [x] Implement may_enter and may_leave flags
- [x] Post-return functions
- [x] Validate alignment and enable
&[u64]
views and similar- [x] Figure out what to do with lowering a lifted function
- [x]
Double-check behavior of traps with respect to validating in-bounds pointers and intermediate writes of params/results when lifting/loweringgiven the "trap lock" I don't think that this matters- [x] Figure out what to do with a lifting a lowered function
- [x] Figure out what to do with reexporting an imported function
- [x] Implement a "lock" for instances for when a trap happens (https://github.com/WebAssembly/component-model/issues/55)
- [x] Exporting a component instance from the root of a component
- [x] Fill out
unimplemented!
for outer core aliases- [x] Component-to-component adapters (this is a huge work item implying an entire compiler for adapter trampolines)
- [x] Fix support for zero-sized flags.
- [x] Fix support for zero-sized lists/strings/types
- [x] Update support for multi-return,
unit
, etc.- [x] Implement embedder support for multi-return (in the
wasmtime
crate API)- [ ] Implement new reentrance rules
Separate work items
I'm starting to separate off work items from this issue to separate tracking issues with more detail. These will all need completion to finish the component model work but these issues are suitable to be picked up by anyone in theory.
- [x] Support for
record
,variant
,enum
,union
,flags
- [x] Calling a function with a dynamic signature
- [x] Fuzzing for round-tripping component values
- [x] String support for utf16+latin1 (omitted from #4039)
- [x] Deduplicate size/align calculations
- [x] Support AOT compilation of components
- [ ] Support creation of function types
- [ ] Implement type reflection for imports/exports
- [ ] Support 64-bit memories for components
- [ ] Audit adapter trampolines to ensure that out-of-bounds pointers have correct semantics, especially when calling helper functions for translations of types in memory.
- [ ] Change how components interact with the pooling instance allocator
Unsure how to implement so far
- Everything with
value
ranging from imports to exports to thestart
function- Type imports
- Unsure how to rationalize performance concerns with validating indirect values like lists from wasm coming to the host when balanced with spec-desired behavior of validating everything.
Open questions
- How to optimize passing
&[u8]
to WebAssembly to amemcpy
?How to handle validation ofValue<T>
coming out of wasm?Not planned at this time
- Importing component-defined functions into a component without any extra copies to the host
- Importing component instances directly into other components
- Importing a component or exporting a component at the root level
- Reexporting an imported function from a component and expecting it to work.
pannous commented on issue #4185:
Once all the boxes are checked don't forget a 'hello component' minimal example.
bobby commented on issue #4185:
Hey @alexcrichton, what's the relationship of this issue with #6370? Are you still actively tracking issues here, or is the state of landing WASI preview 2 support a better proxy for component model progress in wasmtime?
pchickey commented on issue #4185:
It depends on why you need to know.
If you are trying to contribute to the component model or WASI design and implementation, they are separate standards where WASI builds on the component model, but only using the pieces that are complete in this list. For example, now that component model resources are complete here in wasmtime and are nearing completion out in wit-bindgen and other tools, we'll be swapping out our u32 placeholders for proper resources in WASI shortly.
If you are just looking to write or embed components, you want both the component model and WASI to be stable: right now their definitions are still in flux, and wasmtime's implementations may not even match the spec definitions. We intend to stabilize both of those, in both spec and implementation, as Preview 2 later this year. The full set of implementation work required to finish Preview 2 isn't captured anywhere right now, but we do have a rough plan on the spec side: https://github.com/WebAssembly/WASI/pull/550
alexcrichton commented on issue #4185:
I'll add to what @pchickey said already and note that this issue has I think outlived its usefulness. At this time all major efforts for implementing the component model have finished except for the never-ending continued polish in addition to the preview2 implementation (which involves shaping and stabilizing preview2 as well).
In light of that I'm going to go ahead and close this as the component model implementation in Wasmtime is more-or-less complete (with usefulness coming with other preview2-related things). Any follow-ups and remaining items should be opened as separate issues at this point for separate discussion.
alexcrichton closed issue #4185:
This is intended to be a tracking issue for the implementation of the component model proposal of WebAssembly. I'm in the progress of implementing this with work in Wasmtime starting at https://github.com/bytecodealliance/wasmtime/pull/4005 and continuing in further PRs. I hope to leave checkbox items here to ensure I don't forget about them and to also track the progress of implementing the component model.
Items to be implemented
- [x] Text format parsing
- [x] Validation in
wasmparser
- [x] Basic infrastructure in the
component
submodule of thewasmtime
crate- [x] Basic instantiation with zero imports
- [x] Extracting a function and calling it with a static signature
- [x] Importing host functions into a component
- [x] Importing host instances (bundles of host functions) into a component
- [x] Importing a wasm module into a component
- [x] Exporting a module from a component
- [x] Nested component compilation
- [x] Nested component instantiation
- [x] Outer component aliases
- [x] Exporting a component from a component
- [x] Confirm lowered-then-lifted interpretation of "always trap" is correct
- [x] Split
ComponentValue
into lifting and lowering traits- [x] Implement may_enter and may_leave flags
- [x] Post-return functions
- [x] Validate alignment and enable
&[u64]
views and similar- [x] Figure out what to do with lowering a lifted function
- [x]
Double-check behavior of traps with respect to validating in-bounds pointers and intermediate writes of params/results when lifting/loweringgiven the "trap lock" I don't think that this matters- [x] Figure out what to do with a lifting a lowered function
- [x] Figure out what to do with reexporting an imported function
- [x] Implement a "lock" for instances for when a trap happens (https://github.com/WebAssembly/component-model/issues/55)
- [x] Exporting a component instance from the root of a component
- [x] Fill out
unimplemented!
for outer core aliases- [x] Component-to-component adapters (this is a huge work item implying an entire compiler for adapter trampolines)
- [x] Fix support for zero-sized flags.
- [x] Fix support for zero-sized lists/strings/types
- [x] Update support for multi-return,
unit
, etc.- [x] Implement embedder support for multi-return (in the
wasmtime
crate API)- [ ] Implement new reentrance rules
Separate work items
I'm starting to separate off work items from this issue to separate tracking issues with more detail. These will all need completion to finish the component model work but these issues are suitable to be picked up by anyone in theory.
- [x] Support for
record
,variant
,enum
,union
,flags
- [x] Calling a function with a dynamic signature
- [x] Fuzzing for round-tripping component values
- [x] String support for utf16+latin1 (omitted from #4039)
- [x] Deduplicate size/align calculations
- [x] Support AOT compilation of components
- [ ] Support creation of function types
- [ ] Implement type reflection for imports/exports
- [ ] Support 64-bit memories for components
- [ ] Audit adapter trampolines to ensure that out-of-bounds pointers have correct semantics, especially when calling helper functions for translations of types in memory.
- [ ] Change how components interact with the pooling instance allocator
Unsure how to implement so far
- Everything with
value
ranging from imports to exports to thestart
function- Type imports
- Unsure how to rationalize performance concerns with validating indirect values like lists from wasm coming to the host when balanced with spec-desired behavior of validating everything.
Open questions
- How to optimize passing
&[u8]
to WebAssembly to amemcpy
?How to handle validation ofValue<T>
coming out of wasm?Not planned at this time
- Importing component-defined functions into a component without any extra copies to the host
- Importing component instances directly into other components
- Importing a component or exporting a component at the root level
- Reexporting an imported function from a component and expecting it to work.
Last updated: Dec 23 2024 at 12:05 UTC