Category Archives: Computers

How Haskell helped me write a correct algorithm I didn’t understand

Here’s a toy problem with a goofy setup: at a certain company, everyone tries to avoid responsibility, so whenever anyone gets any kind of request, they just pass it along.  Each person has a fixed list of people to whom … Continue reading

Posted in Haskell, Programming | Leave a comment

Ubuntu on a netbook screen — revisited

In my very first post (other than that abortive book review), I gave what I thought was a very clever way of getting xrandr panning to work in Ubuntu with the Unity desktop. Like all good solutions, it worked as much … Continue reading

Posted in Computers, Netbook, Ubuntu | 8 Comments

Ten thousand reputation

If you read my recent post about TeX, you will know that I am a more than casual contributor to tex.stackexchange.com and have a possibly-obsessive interest in that typesetting language, largely from a programming perspective.  In the last month alone I have … Continue reading

Posted in Computers, TeX | Leave a comment

TeX is a terrible programming language

Recently, on the TeX Q&A site, there was a question about whether learning TeX is helpful for learning other programming languages.  You (gentle reader) may not know that I am a serious TeXpert: it is by far the language with … Continue reading

Posted in Computers, Programming, TeX | Leave a comment

Birthday operators

Today’s exercise in C++ is to implement various kinds of matrix products. Of course, since this is a C++ exercise, I must implement a matrix class (I feel that this is somehow a rite of passage). Naturally I’ve got mine … Continue reading

Posted in C++, Computers, Programming | 3 Comments

Memory management issues

I think the typical progression of one’s concern for memory management issues is like this: What’s memory management?  (Alternatively: What’s memory?) How is malloc() (or new) any different from declaring a new variable? If I can free() (or delete) a … Continue reading

Posted in C++, Computers, Programming | Leave a comment

How to make a pointer to a reference

In my previous post, I complained that one cannot make a reassignable reference in C++. Corollary to this is that a reference can never be uninitialized, since it is only in the statement that declares the reference can the compiler … Continue reading

Posted in C++, Computers, Programming | Leave a comment