-
Notifications
You must be signed in to change notification settings - Fork 257
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
Remove subscription_t
's clock.identifier
field.
#125
Remove subscription_t
's clock.identifier
field.
#125
Conversation
As noticed in rust-lang/rust#65617 (comment), the `clock.identifier` field in `subscription_t` isn't used for anything. It came from CloudABI, where it appears to be a holdover from an earlier API feature which is no longer present.
@@ -552,8 +552,6 @@ | |||
;; The contents of a $subscription_t when type is `EVENTTYPE_CLOCK`. | |||
(typename $subscription_clock_t | |||
(struct | |||
;; The user-defined unique identifier of the clock. | |||
(field $identifier $userdata_t) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This may theoretically be useful for debuggers.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
What would it add beyond the clock_id
field?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I though I read that it was a string. In that case, a debugger could show that string to the user. I think it would be better to design such debugger integrations separately and for all things it makes sense for at a later time though.
BTW, what is the right way to land this spec change in the code, e.g. is it ok to just remove it from the structure in https://github.com/CraneStation/rust-wasi and fix dependencies in other projects? E.g. If so it seems quite simple, I can take it. |
@dunnock |
@newpavlov thanks, it does not seem an entry level stuff then |
Yes, following the phases document, this change is happening to ephemeral, which we'll batch up with other changes and snapshot to a versioned interface. As for keeping rust-wasi up to date, I'm working on a way to make that easier; hopefully I'll have the PR ready soon. |
As noticed in
rust-lang/rust#65617 (comment),
the
clock.identifier
field insubscription_t
isn't used foranything. It came from CloudABI, where it appears to be a holdover from
an earlier API feature which is no longer present.