freenode/#lisp - IRC Chatlog
Search
18:39:42
markasoftware
If :lambda-list is passed to ensure-generic-function, and an :argument-precedence-order was previously set, is the argument-precedence-order discarded?
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.