Month: June 2012

  • The PhD Grind, and Why Research Isn’t Like Sex

    Phil Guo’s short online book, The PhD Grind, is the best description of the modern PhD experience in CS that I know of. People working on, or thinking about working on, a PhD in CS should read it. In this post I just want to comment on a few things. Phil vividly describes the sinking feeling that…

  • Maybird

    [nggallery id=55] Over the weekend my friend Derek and I did a short backpacking trip into Maybird Gulch, a minor sub-drainage of Little Cottonwood Canyon near Salt Lake City. Amazingly, on a Friday night our only company was a pack of coyotes (or perhaps this isn’t so amazing—most of Maybird is very steep and/or rocky…

  • Burning in a Module with Random Unit Testing

    Sometimes a class or subsystem makes us uneasy; when something goes wrong in our software, we’ll immediately suspect the shady module is somehow involved. Often this code needs to be scrapped or at least refactored, but other times it’s just immature and needs to be burned in. Randomized unit testing can help with this burn-in process,…

  • Slightly More Sensible Signed Left-Shifts in C11 and C++11

    Left-shift of signed integers in C99, C11, and C++11 is difficult to use because shifting a 1 bit into or past the sign bit (assuming two’s complement, of course) is an undefined behavior. Many medium and large C and C++ programs do this. For example, many codes use 1<<31 for INT_MIN. IOC can detect this…

  • The Central Limit Theorem Makes Random Testing Hard

    I believe that the central limit theorem provides a partial explanation for why it can be very difficult to create an effective random tester for a software system. Random testing is carpet bombing for software: the more of the system you can hit, the better it works. The central limit theorem, however, tells us that…

  • 1500+ Bugs from One Fuzzer

    This metabug links to all of the defects found in Firefox’s JavaScript engine by jsfunfuzz. The surprise here isn’t that bugs were found, but rather that more than 1500 bugs were found in a single language runtime by a single test case generator. I’m interested in exactly what is going on here. One possibility would be…

  • PLDI in Beijing

    [nggallery id=53] PLDI 2012 was in Beijing earlier this week. Unfortunately I had only one full day to be a tourist; it would have been nice to bail out of the conference for another half day to see more stuff but that didn’t end up happening. My student Yang Chen went to college in Beijing and…

  • Announcing C-Reduce: A Better Test-Case Reducer for C/C++ Compiler Debugging

    Test-case reduction means taking a large input to a computer program (for compiler debugging, the input is itself a program) and turning it into a much smaller input that still triggers the bug. It is a very important part of the debugging process. Delta, an excellent open-source implementation of the delta debugging algorithm ddmin, has been the test-case reduction…

  • Street Fighting Computer Science

    One of my favorite recent books is Street Fighting Mathematics: a collection of techniques and heuristics for rapidly and roughly estimating the solutions to problems that may be very difficult to solve exactly. The book is important because estimation is incredibly useful for understanding the world and because our education system does not do a very…