This repository has been archived by the owner on Oct 13, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 21
Commits on Dec 23, 2022
-
This add a pseudo-stream type to the wasi-poll interface, and adds ways to obtain streams from command invocation and from files. In the future, it can support sockets too. With this, `command` takes streams for stdin/stdout, rather than filesystem descriptors. Streams support reading and writing, as well as skipping, repeated-element writing, and splicing from one stream to another. And there are `subscribe-*` functions to produce pseudo-futures from pseudo-streams, allowing them to be polled. This makes the polyfill somewhat more complex, but this is largely due to the polyfill being tied to the preview1 API. This replaces the `seek` and `tell` functions, and implemented `fd_seek` and `fd_tell` in terms of the polyfill's own position. Also, add a dedicated stderr API for writing to stderr in a way that tolerates strings that aren't necessarily expected to be newlines. And add a way to test whether stderr is a terminal.
Configuration menu - View commit details
-
Copy full SHA for cc6ef6b - Browse repository at this point
Copy the full SHA cc6ef6bView commit details -
Configuration menu - View commit details
-
Copy full SHA for 5ff595e - Browse repository at this point
Copy the full SHA 5ff595eView commit details -
Configuration menu - View commit details
-
Copy full SHA for f29f2b7 - Browse repository at this point
Copy the full SHA f29f2b7View commit details -
Configuration menu - View commit details
-
Copy full SHA for 06cb75a - Browse repository at this point
Copy the full SHA 06cb75aView commit details -
Configuration menu - View commit details
-
Copy full SHA for 79ea367 - Browse repository at this point
Copy the full SHA 79ea367View commit details -
Configuration menu - View commit details
-
Copy full SHA for b85cc6f - Browse repository at this point
Copy the full SHA b85cc6fView commit details -
Configuration menu - View commit details
-
Copy full SHA for abbe490 - Browse repository at this point
Copy the full SHA abbe490View commit details -
Implement the host side of
poll_oneoff
.This implements pseudo-futures and subscription functions, and adds polling for streams.
Configuration menu - View commit details
-
Copy full SHA for 0b2355b - Browse repository at this point
Copy the full SHA 0b2355bView commit details -
Configuration menu - View commit details
-
Copy full SHA for b4460e5 - Browse repository at this point
Copy the full SHA b4460e5View commit details -
Implement clock subscriptions.
wasi.wit: - Remove the "timers" API from wasi-clocks, as it's now redundant with pseudo-future clock subscriptions. - Remove `subscribe-wall-clock`. Wall-clock timeouts were implemented by converting them to monotonic-clock timeouts anyway, so just make that explicit in the WASI API, and teach the polyfill how to convert wall-clock timeouts into monotonic-clock timeouts. - Move `subscribe-monotonic-clock` out of wasi-clocks and into wasi-poll, as it's closely tied to the pseudo-futures mechanism and the `poll-oneoff` implementation. - While here, fix `stream-read` and related functions to return an end-of-stream/file indicator. Code changes: - `default_wall_clock()` and `default_monotonic_clock()` now always create a new table entry, rather than holding a table index in the `WasiCtx` which could potentially dangle. - Add support for monotonic-clock poll subscriptions. - Say "wall clock" instead of "system clock" when we have a choice.
Configuration menu - View commit details
-
Copy full SHA for 226d362 - Browse repository at this point
Copy the full SHA 226d362View commit details -
Configuration menu - View commit details
-
Copy full SHA for 1f1d523 - Browse repository at this point
Copy the full SHA 1f1d523View commit details -
Configuration menu - View commit details
-
Copy full SHA for ffcc3ab - Browse repository at this point
Copy the full SHA ffcc3abView commit details -
Configuration menu - View commit details
-
Copy full SHA for 9d4c691 - Browse repository at this point
Copy the full SHA 9d4c691View commit details -
Configuration menu - View commit details
-
Copy full SHA for e7099d4 - Browse repository at this point
Copy the full SHA e7099d4View commit details -
Configuration menu - View commit details
-
Copy full SHA for b1d6bfb - Browse repository at this point
Copy the full SHA b1d6bfbView commit details -
Configuration menu - View commit details
-
Copy full SHA for 6bd0dda - Browse repository at this point
Copy the full SHA 6bd0ddaView commit details -
Configuration menu - View commit details
-
Copy full SHA for 65daab2 - Browse repository at this point
Copy the full SHA 65daab2View commit details -
Configuration menu - View commit details
-
Copy full SHA for 484077b - Browse repository at this point
Copy the full SHA 484077bView commit details -
Configuration menu - View commit details
-
Copy full SHA for 195847a - Browse repository at this point
Copy the full SHA 195847aView commit details -
Add documentation for the default-clock functions.
This ports the wording from WebAssembly/wasi-clocks#22.
Configuration menu - View commit details
-
Copy full SHA for ddd9632 - Browse repository at this point
Copy the full SHA ddd9632View commit details -
Configuration menu - View commit details
-
Copy full SHA for a12af00 - Browse repository at this point
Copy the full SHA a12af00View commit details -
Configuration menu - View commit details
-
Copy full SHA for 7dcf631 - Browse repository at this point
Copy the full SHA 7dcf631View commit details
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.