Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

wasi-nn: track upstream specification #9056

Merged
merged 1 commit into from
Aug 1, 2024

Conversation

abrown
Copy link
Contributor

@abrown abrown commented Aug 1, 2024

In #8873, we stopped tracking the wasi-nn's upstream WIT files temporarily because it was not clear to me at the time how to implement errors as CM resources. This PR fixes that, resuming tracking in the vendor-wit.sh and implementing what is needed in the wasi-nn crate.

This leaves several threads unresolved, though:

  • it looks like the vendor-wit.sh has a new mechanism for retrieving files into wit/deps--at some point wasi-nn should migrate to use that (?)
  • it's not clear to me that "errors as resources" is even the best approach here; I've opened #75 to consider the possibility of using "errors as records" instead.
  • this PR identifies that the constructor for errors is in fact unnecessary, prompting an upstream change (#76) that should eventually be implemented here.

In bytecodealliance#8873, we stopped tracking the wasi-nn's upstream WIT files
temporarily because it was not clear to me at the time how to implement
errors as CM resources. This PR fixes that, resuming tracking in the
`vendor-wit.sh` and implementing what is needed in the wasi-nn crate.

This leaves several threads unresolved, though:
- it looks like the `vendor-wit.sh` has a new mechanism for retrieving
  files into `wit/deps`--at some point wasi-nn should migrate to use
  that (?)
- it's not clear to me that "errors as resources" is even the best
  approach here; I've opened [bytecodealliance#75] to consider the possibility of using
  "errors as records" instead.
- this PR identifies that the constructor for errors is in fact
  unnecessary, prompting an upstream change ([bytecodealliance#76]) that should
  eventually be implemented here.

[bytecodealliance#75]: WebAssembly/wasi-nn#75
[bytecodealliance#76]: WebAssembly/wasi-nn#76

prtest:full
@abrown abrown requested review from a team as code owners August 1, 2024 17:47
@abrown abrown requested review from alexcrichton and removed request for a team August 1, 2024 17:47
@alexcrichton alexcrichton added this pull request to the merge queue Aug 1, 2024
Merged via the queue into bytecodealliance:main with commit bba5e68 Aug 1, 2024
124 checks passed
@abrown abrown deleted the wasi-nn-track-upstream branch August 1, 2024 18:32
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants