freenode/#lisp - IRC Chatlog
Search
19:38:47
beach
pyc: When the last thing before a `)' is a comment, the `)' must be on a separate line.
19:42:59
warweasle
In defmethod, I can I specify a particular array size? Like an array of matrices? Would that make the code faster?
19:48:27
Josh_2
You could define a type that is an array of a certain size and then use that as a type specifier in defmethod I suppose
19:52:22
Alfr
warweasle, but you can still write an optimized function (declare (type ..) ..) and arrange to call it if the type is correct (see typep).
20:00:12
warweasle
Alfr: I might do that later... If I need more speed. It's just a simple IIR filter so...
6:28:48
lukego
I've been trying to pick a unit testing framework. Just makes my head hurt with all the options and trying to interpret the reviews over time. Going to try 1am to start with.
6:30:05
beach
My theory is that the idea of an abstraction such as a "unit testing framework" is nonsensical, and that this is why there are so many of them and none of them can do everything that is needed.
6:33:30
beach
Take Flexichain, for instance. With most testing frameworks, I would have had to enumerate all possible situations, but the number of combinations that can happen between resizing, rotation, moving the gap is truly huge, and it would not be humanly possible to figure that out manually so that every combination is tested.
6:35:39
beach
So instead, I wrote a trivial implementation of the same protocol, and I generate random operations using sort of a first-order Markov model.
6:35:44
lukego
Yeah. I'm thinking of starting with a combo of a dumb/convenient test-runner that can then call into a more "combinatorial" kind of a test case generator. I was thinking check-it but leaning towards just giving Screamer <duration> to find a bad case
6:36:01
beach
I then compare the result of the trivial implementation to the result of the real one.
6:37:28
beach
OK, so now give me the name of a testing framework that would give me support for this way of testing things, which I find way superior to enumerating individual tests maually.
6:39:39
beach
ASSERT is an excellent testing framework that has the additional advantage that it is in the Common Lisp standard.
6:43:37
fiddlerwoaroof
But, I'm more interested in "oracle" tests: for the sort of code I write, I don't usually care if the tests are exhaustive as long as they run quickly and cast common mistakes I make when I write code.