-
-
Notifications
You must be signed in to change notification settings - Fork 5.6k
Make type hashing :total
#52427
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
Make type hashing :total
#52427
Conversation
I thought the hash of data types could change between runs |
That was fixed on master recently, so we should remove that documentation |
I think "run to run" in that documentation refers to different invocations of julia/"sessions of the REPL", not different queries of |
Co-authored-by: Shuhei Kadowaki <[email protected]>
Co-authored-by: Shuhei Kadowaki <[email protected]>
246fae5
to
77bfb46
Compare
@vtjnash Do you know if the hashing changes you mention on master were backported to 1.10? Would be nice to backport this as well, if so |
This wasn't backported (and it would be a somewhat risky backport imo #52119) |
Since types can't really be deleted and the hash of a type is already being cached inside of the type object itself, it should be legal to mark the
ccall
retrieving that hash as:total
, permitting hashing of types to be concretely evaluated.I'm unsure if the test I've added is good as written, or whether this should be done differently.