WebAssembly / WebAssembly/component-model
Caller provided buffers question
Nobody has claimed this yet.
- Dominant language
- WebAssembly
- Stars
- 1.4k
- Forks
- 130
- Avg merge
- 2d 1h
- Merged PRs (30d)
- 15
Description
Last week, an idea was presented by which callers could prevent unnecessary intermediate copies using the syntax:
read: func(length: u64) -> result<list<u8; ..length>,error-code>;
Is there any provision to make this work when the list is not directly present in the function result signature? For example when it is nested within a record type (along with other properties)
And even more challenging: what if the number of output lists is variable? Looking specifically at wasi:sockets.udp.incoming-datagram-stream::receive 😇
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start by reviewing the linked presentation and the receive definition in wasi-sockets' udp.wit. Determine whether caller-provided buffers can apply to lists nested in records or to a variable number of output lists, then document the supported design or required specification changes.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- wasm
- Domain
- compilers
- Issue type
- Feature
- Difficulty
- 5/5
- Estimated time
- Over a week
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 30/100