@eddyb_r @Gankro Can we just make node_ids in rustc pseudorandom sequences to begin with and then make the hash the identity function? Do node_ids have to be sequential?
-
-
Replying to @pcwalton
NodeId's aren't used that much anymore. this approach would be interesting for DefId (which types also contain) though!
2 replies 0 retweets 3 likes
I've definitely thought about this for `DefId`. Actually I had planned to make a `DefId` be literally a cryptographic hash of its contents, I don't know that I had considered *random* hashes assigned on creation. The former persists across incremental sessions, which is nice.
1:21 PM - 29 Nov 2018
0 replies
0 retweets
1 like
Loading seems to be taking a while.
Twitter may be over capacity or experiencing a momentary hiccup. Try again or visit Twitter Status for more information.