Thursday 24 October 2013

Testing yet again!

I grew tired of the polluted profiling output and performance degradation of my invariant-testing, and started looking into unit testing yet again. And I found Catch, which is pretty nice, just a bit too "much" for me. So I took my old testing framework, hotted it up with some ideas from Catch (only the expression extraction bit really) and I'm now using that with a smile on my face. Turned out the source code got even smaller, exactly 400 SLOC of C++. I already found some bugs and inconsistencies, my run-time profiling output is a lot cleaner, and the performance is where where it should be. Plus the source code is a lot nicer without all the invariant-test objects in every method.

Turns out std::thread::join() deadlocks after WinMain on Windows. Just make sure you destroy every std::thread before getting out of main (exceptions alert!).

HWM still not finished, I decided to move from Xlib to XCB and that was quite a big boring job.

Life's pretty boring overall right now. And I'm thinking too much again... It's a good thing I have friends to pull me out into real life now and then.

Wednesday 9 October 2013

Eye of the storm!

Went to Leuven and Brussels to visit a fellow Ph.D. end of September, looks to be a good place to stay. Life's pretty tough as a post-doc at Leuven though... And that new buddy icon comes from Brussels, in front of the Atomium, for the curious minds out there.

During the actual trips (airport, plane, train), I got bored enough that I ordered a netbook in the middle of Leuven, during the last days of my student discounts. For browsing and reading books you inquire? Hah, I scoff at the idea; for hacking! Got myself a little 11.6" Lenovo E130 because I'm too cheap and too much of a tinkerer to be happy with a Macbook Air. I've been working away on it to reduce power-usage and optimize the boot-time, not quite happy with the 5+ s that I have right now, I can do better. And supend and hibernation works for once. That's what you get when you buy proper stuff. And right now I'm writing HWM from scratch so that I can fix a few bugs that I've been living with since 2008/2009 or whenever I started running the DWM-fork version fo HWM.

Been hotting up my bike recently, only thing left is to bleed the hydraulic brakes. And then to see how far I can go in Alandsryd.

And kind of looking for a job. And here ends the post. *organ music*