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

Added definitions to the glossary #551

Closed
wants to merge 1 commit into from

Conversation

adfernandes
Copy link

Specifically:

  • regulatory approach
  • memory safety (spatial and temporal)
  • mc/dc coverage
  • integer overflow
  • functional purity

as per this issue

Specifically:
- regulatory approach
- memory safety (spatial and temporal)
- mc/dc coverage
- integer overflow
- functional purity
@RalfJung
Copy link
Member

RalfJung commented Jan 9, 2025

Thanks for the PR! However, most of these I don't think fit this repo. I have also never seen that issue you are referring to. We don't have a "regulatory approach" in this repo nor are we specifically considering coverage, and the definition of an integer overflow is sufficiently simple that I see no reason to carry it in our glossary. I am not sure why we would define "pure function" here, either.

We could add a definition of memory safety, but I think splitting memory safety into subclasses such as spatial and temporal is largely not useful, so I don't agree with the definition you have added here. In my view, memory safety in the context of Rust simply means "the program has no UB". For instance, there is no meaningful way in which a program with data races (in a language like Rust where data races are UB) is memory safe.

@adfernandes
Copy link
Author

Thanks for the comments, @RalfJung - in retrospect, I think I agree with you.

If I could as not to close this issue quite yet, I'm going to bring this up to the committee, because I think there's a fair bit of conflation between "Unsafe Rust" and "Safety-Critical Unsafe Rust".

Needs some thought...

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