Chasing down a Cython error

My python program segfaulted. When I wrote C++ programs segfaults were no big deal. I would hook into gdb mostly through my IDE's debugger, and dance around the point the program crashed until I had an idea of where I was going wrong. Python gives a wonderful stack trace and tells you where things have …

Advertisements

While x:

This is a cautionary tale about not misusing Python's kindness. Or perhaps a cautionary tale about not trusting even widely used libraries to mirror what Python does. It is a little technical ... I have a program that, for the purposes of this post, operates on a list of pairs of numbers, going through each …

The three switches problem

The light bulb problem is a class of problem often presented at interviews as a test of lateral thinking. Here, in a mischievous spirit taken fromĀ the best subversive traditions we will attackĀ this question by thinking a little too laterally ... There are different versions of the light bulb problem, but they rely on the same …