Category Archives: Computer Science

TestRunner 2.0 now available

I have just posted TestRunner 2.0. New features include Git support and JUnit compatible XML report generation. See the TestRunner page for more details. TestRunner itself is now managed with Git as well. You may clone the master repository at … Continue reading

Posted in Computer Science | Tagged | Comments Off

Centering custom views inside an NSScrollView

In Cocoa, a NSScrollView provides basic functionality for encapsulating a view with a scrolling frame. It provides the appropriate plumbing and hooks it all together so that it ‘just works’. At least in theory. In practice, I encountered a few … Continue reading

Posted in Computer Science | Tagged , , , | 1 Comment

Iterative calculation of lies, er stats

A few weeks ago I wrote about my adventures in cross platform floating point consistency in Avida. The main routine responsible for the deviation at the time was a statistics output function that calculated the skewness and kurtosis for various … Continue reading

Posted in Computer Science | Comments Off

When GCC’s “-ffast-math” isn’t

Performance optimization is often about trade-offs, especially when you get into the implementation details of a program. A routine may go faster if you unroll loops to reduce branching overhead, however program code size increases as a result. If you … Continue reading

Posted in Avida, Computer Science | Tagged , | 1 Comment