When I started out in electrical engineering we were given 8085 kits to play with. It was an 8-bit microprocessor. I used to know the instructions set by heart. I have fond memories of using a ruled college notebook to work out a program to do long division and then keying in the program opcode… Read More Your microprocessor knows π
Using polynomial fits to interpolate data can blow up in your face. To avoid this, use the non-uniformly spaced Chebyshev nodes as your fitting control points.
For extra bonus bucks, use Chebyshev polynomials.… Read More Chebyshev polynomials and Runge’s phenomenon – Computing Orbits (2)
I love Python keyword arguments because I forget what the order of the arguments are, because sometimes I want to leave some arguments at default values, because I hate writing boilerplate. That is why I got so excited when I was going through the source code of samtools (If you are not in bioinformatics, for… Read More c++: the named argument tease
I found the behavior of Objects in STL containers a bit confusing, so I wrote down some notes for myself. (I’ve updated this post after helpful comments from my colleagues Vladimir Semenyuk and Björn Pollex. They pointed out that I hadn’t implemented copy and move constructors in my original code. Hopefully the post now looks… Read More C++: Notes on moves and copies