News for hackers. Stuff that matters.

edsko

Re:Falsify: Hypothesis-Inspired Shrinking for Haskell on Monday April 21, 2025 @04:30AM (#43749569)
(Author of falsify here.) You are absolutely correct that the empty string isn't always the best counter-example. The goal of shrinking is to shrink to the _simplest_ possible value (this is true for all approaches to shrinking). What constitutes "simple" is very much domain specific. It would certainly be possible to write a generator that would shrink to, say, "foo", as the canonical "simplest" example of a simple string. Indeed, since we are working in a lazy language, you could (with a bit of effort) shrink to `undefined` if the other arguments are not used at all.
Re:Speeding up PHP with the HipHop VM on Saturday December 01, 2012 @11:33AM (#4858106)
Wow, thanks! John and I spent a long time thinking about it :)