This is scary to realize how many bugs can be hidden in stdlibs or built-in types. Definitely bugs will always exist but finding them on that low in callstack is indeed a horror story.
It's a bit unclear to me what the "tested 3 million inputs" thing means, and the general strategies applied here
lean-verify seems to focus on small functions (makes sense to me) but then I suppose it tries to run inputs on the lean variant and then the (say) Java variant and compare the results? In that universe are we even really relying on lean properties?
In other words, could I have (for example) python-verify and gotten the same results here?
olegkovalov | 21 hours ago
This is scary to realize how many bugs can be hidden in stdlibs or built-in types. Definitely bugs will always exist but finding them on that low in callstack is indeed a horror story.
icholy | 10 hours ago
I've been shocked to find how many bugs seemingly "very simple" code can have.
daveliepmann | 6 hours ago
https://ask.clojure.org/index.php/15303/persistent-dissoc-from-hash-collision-another-unreachable
https://ask.clojure.org/index.php/15302/reduce-dropped-vector-never-terminates-with-65505-elements
rtpg | 8 hours ago
It's a bit unclear to me what the "tested 3 million inputs" thing means, and the general strategies applied here
lean-verifyseems to focus on small functions (makes sense to me) but then I suppose it tries to run inputs on the lean variant and then the (say) Java variant and compare the results? In that universe are we even really relying on lean properties?In other words, could I have (for example)
python-verifyand gotten the same results here?frogulis | 7 hours ago
I suppose the assumption is that the lean implementation is proven to be correct (for some definition of correct)