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

better Hash for Float64/Float32 #90

Closed
soc opened this issue Dec 18, 2023 · 1 comment
Closed

better Hash for Float64/Float32 #90

soc opened this issue Dec 18, 2023 · 1 comment
Labels
enhancement improving existing functionality good first issue good for newcomers help wanted other contributors might be interested in this language-core changes to the Core language (syntax, semantics, ...)

Comments

@soc
Copy link
Collaborator

soc commented Dec 18, 2023

Investigate a hash function for which hash(0.0) == hash(-0.0).

This is required to make patterns such as identical || equal that are commonly found in hash-based collections work correctly.

Start by looking for what's already out there.

@soc soc added this to the 0.7 – new developments milestone Dec 18, 2023
@soc soc added enhancement improving existing functionality help wanted other contributors might be interested in this good first issue good for newcomers language-core changes to the Core language (syntax, semantics, ...) labels Dec 18, 2023
@soc soc changed the title investigate Hash function for which hash(0.0) == hash(-0.0), search what's already out there better Hash for Float64/Float32 Dec 18, 2023
@soc
Copy link
Collaborator Author

soc commented Dec 21, 2023

Some interesting notes in this article and its follow-ups, but not directly applicable here.

@soc soc closed this as completed Dec 21, 2023
@soc soc reopened this Dec 21, 2023
@soc soc closed this as completed in 9e39418 Dec 21, 2023
soc added a commit that referenced this issue Dec 21, 2023
soc added a commit that referenced this issue Dec 21, 2023
soc added a commit that referenced this issue Dec 21, 2023
soc added a commit that referenced this issue Dec 28, 2023
soc added a commit that referenced this issue Jun 1, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement improving existing functionality good first issue good for newcomers help wanted other contributors might be interested in this language-core changes to the Core language (syntax, semantics, ...)
Projects
None yet
Development

No branches or pull requests

1 participant