News for hackers. Stuff that matters.
Re:Unison Programming Language by the-smug-one on Sunday June 27, 2021 @05:50PM (#27655781)
What's the point of detecting that 1 + x + 1 is the same as x + 2 anyway? If I wrote it in one way, I meant it to be that way for a reason. Should it also be able to prove arbitrary code is semantically equivalent? Well, it can't do that for obvious reasons.
Re:Unison Programming Language by ballenf on Monday June 28, 2021 @12:01AM (#27658025)
Why not use hashing with locality for similarity? That is if the two samples above "hashed" to a similar value it might be helpful to find similar code.

Hashing was created to prevent collisions and ensure small changes have big differences in result. The first requirement makes sense here, but not sure how the second helps.