- From: Joshua Bell <notifications@github.com>
- Date: Tue, 16 Jul 2024 09:39:20 -0700
- To: whatwg/webidl <webidl@noreply.github.com>
- Cc: Subscribed <subscribed@noreply.github.com>
- Message-ID: <whatwg/webidl/pull/1419@github.com>
The new "detachable" algorithm allows an invoker to determine if a BufferSource is detachable without errors before invoking transfer. This is particularly helpful if several buffers are processed in a batch, as the validity of the operation can be determined up front, rather than during processing which could leave the buffers in a mix of states. See discussion in [1]. A local copy of the algorithm was landed as [2] but this seems like a useful addition to WebIDL. 1: https://github.com/webmachinelearning/webnn/issues/351 2: https://webmachinelearning.github.io/webnn/#buffersource-detachable <!-- Thank you for contributing to the Web IDL Standard! Please describe the change you are making and complete the checklist below if your change is not editorial. When editing this comment after the PR is created, check that PR-Preview doesn't overwrite your changes. If you think your PR is ready to land, please double-check that the build is passing and the checklist is complete before pinging. --> *Is the checklist needed for an algorithm?* - [ ] At least two implementers are interested (and none opposed): * … * … - [ ] [Tests](https://github.com/web-platform-tests/wpt) are written and can be reviewed and commented upon at: * … <!-- If these tests are tentative, link a PR to make them non-tentative. --> - [ ] [Implementation bugs](https://github.com/whatwg/meta/blob/main/MAINTAINERS.md#handling-pull-requests) are filed: * Chromium: … * Gecko: … * WebKit: … * Deno: … * Node.js: … * webidl2.js: … * widlparser: … - [ ] [MDN issue](https://github.com/whatwg/meta/blob/main/MAINTAINERS.md#handling-pull-requests) is filed: … - [ ] The top of this comment includes a [clear commit message](https://github.com/whatwg/meta/blob/main/COMMITTING.md) to use. <!-- If you created this PR from a single commit, Github copied its message. Otherwise, you need to add a commit message yourself. --> (See [WHATWG Working Mode: Changes](https://whatwg.org/working-mode#changes) for more details.) <!-- This comment and the below content is programmatically generated. You may add a comma-separated list of anchors you'd like a direct link to below (e.g. #idl-serializers, #idl-sequence): Don't remove this comment or modify anything below this line. If you don't want a preview generated for this pull request, just replace the whole of this comment's content by "no preview" and remove what's below. --> *** <a href="https://whatpr.org/webidl/1419.html" title="Last updated on Jul 16, 2024, 4:39 PM UTC (4f921d3)">Preview</a> | <a href="https://whatpr.org/webidl/1419/3fb6ab4...4f921d3.html" title="Last updated on Jul 16, 2024, 4:39 PM UTC (4f921d3)">Diff</a> You can view, comment on, or merge this pull request online at: https://github.com/whatwg/webidl/pull/1419 -- Commit Summary -- * Introduce a "detachable" algorithm for BufferSource -- File Changes -- M index.bs (15) -- Patch Links -- https://github.com/whatwg/webidl/pull/1419.patch https://github.com/whatwg/webidl/pull/1419.diff -- Reply to this email directly or view it on GitHub: https://github.com/whatwg/webidl/pull/1419 You are receiving this because you are subscribed to this thread. Message ID: <whatwg/webidl/pull/1419@github.com>
Received on Tuesday, 16 July 2024 16:39:25 UTC