Use a Better Algorithm and Beat Haskell Today!

Note: This refers to the article “Use those extra cores and beat C today! (Parallel Haskell redux)”, and should be viewed as a good-natured ribbing!
I’ll see your sensational headline and raise you a better algorithm!
The Code:

#include "gmpxx.h"
#include
#include
 
using namespace std;
 
mpz_class fib(unsigned int num)
{
mpz_class a(1), b(1);
mpz_class temp;
 
while(num– > 1)
[...]

Android’s Custom Virtual Machine is a Good Thing

The “Open Handset Alliance” (referred to as Google for the remainder of this blog entry) has taken on the task of writing their own home-brewed virtual machine, “Dalvik“, to run Java applications on Android. Sun has publicly stated that this will fracture the Java platform [news.com]. There is little doubt that Sun is attempting to [...]

How To Do Well in Programming Competitions

Contests don’t measure real-world programming skills
You’re not judged on the best refactoring of your solution, and you’re not judged on indentation and neatness. If your result is very maintainable, there’s a good chance you put too much effort in the wrong place. You just need to get the solution correct, and fast! Whenever you make [...]