Programming language notes, links
Time machine Here is a post for years and years ago that was stuck in drafts. Some of it is still useful, but a lot is amusing to look back on. Oh, those were the days ... General Programming Lots of good multi-language examples at this site. It's nice for comparing how similar algorithms are implemented in different languages. http://en.literateprograms.org/ This is an awesome page, full of useful and interesting bit-twiddling tricks. In particular, with the trick to count set bits in a word, I've been able to reduce by a factor of 50 (!) the amount of time it takes to count bits in a range of memory. http://graphics.stanford.edu/~seander/bithacks.html Lots of information about regular expressions: http://swtch.com/~rsc/regexp/ Programming Challenges Sites to keep you in shape: http://projecteuler.net/ http://www.programthis.net/ Mathematics The Haskell implementation of the Sieve of Eratosthenes is just cryptic. I'm not sure