Skip to content
This repository has been archived by the owner on Sep 29, 2023. It is now read-only.

Update to resources. #21

Closed
wants to merge 1 commit into from
Closed

Conversation

sunfishcode
Copy link
Member

Marking a draft PR for now until resources are fully implemented; but this shows a picture of what this API will look like.

@sunfishcode
Copy link
Member Author

I have a major new update to this; I'll close this PR and open a new one based on it.

@sunfishcode sunfishcode deleted the resources branch September 12, 2023 23:00
sunfishcode added a commit to sunfishcode/wasi-io that referenced this pull request Sep 12, 2023
 - Convert to resources. Use resources instead of `u32`s, remove
   drop functions, `this` arguments, and rename `subscribe-to-*`
   to just `subscribe`, as discussed in WebAssembly/wasi-poll#21.

 - Merge wasi-poll into wasi-io. These two proposals are closely
   related to each other, so it makes sense to have them together.

 - While here, tidy up the poll API, incorporating ideas discussed
   in WebAssembly/wasi-poll#220:

   - Rename `poll-oneoff` to `poll-list`, and add a `poll-one`.

   - Change `poll-oneoff`'s return type from `list<bool>` to `list<u32>`,
     because in the common case, this should allow it to create much
     smaller allocations.
@sunfishcode
Copy link
Member Author

The new PR is WebAssembly/wasi-io#46.

sunfishcode added a commit to sunfishcode/wasi-io that referenced this pull request Sep 12, 2023
 - Convert to resources. Use resources instead of `u32`s, remove
   drop functions, `this` arguments, and rename `subscribe-to-*`
   to just `subscribe`, as discussed in WebAssembly/wasi-poll#21.

 - Merge wasi-poll into wasi-io. These two proposals are closely
   related to each other, so it makes sense to have them together.

 - While here, tidy up the poll API, incorporating ideas discussed
   in WebAssembly/wasi-poll#22:

   - Rename `poll-oneoff` to `poll-list`, and add a `poll-one`.

   - Change `poll-oneoff`'s return type from `list<bool>` to `list<u32>`,
     because in the common case, this should allow it to create much
     smaller allocations.
sunfishcode added a commit to WebAssembly/wasi-io that referenced this pull request Sep 29, 2023
* Convert to Resources, and other API cleanups.

 - Convert to resources. Use resources instead of `u32`s, remove
   drop functions, `this` arguments, and rename `subscribe-to-*`
   to just `subscribe`, as discussed in WebAssembly/wasi-poll#21.

 - Merge wasi-poll into wasi-io. These two proposals are closely
   related to each other, so it makes sense to have them together.

 - While here, tidy up the poll API, incorporating ideas discussed
   in WebAssembly/wasi-poll#22:

   - Rename `poll-oneoff` to `poll-list`, and add a `poll-one`.

   - Change `poll-oneoff`'s return type from `list<bool>` to `list<u32>`,
     because in the common case, this should allow it to create much
     smaller allocations.

* Update to WebAssembly/wit-abi-up-to-date@v14.

* Remove the wit-deps check now that we have no dependencies.

* Fix more references to `poll-oneoff`.

* Mark `poll` arguments as borrowed.

* Update to wit-abi-up-to-date@v15.
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant