About The Contest

The first ever Olympiad of Misguided Geeks contest at Worse Than Failure (or OMGWTF for short) is a new kind of programming contest. Readers are invited to be creative with devising a calculator with the craziest code they can write. One lucky and potentially insane winner will get either a brand new MacBook Pro or comparable Sony VAIO laptop.



Entry #100120: The Theoretically Efficient Calculator

by Marc Gabriele
All arithmetic operations are implemented using only ++, --, and the efficiency of functional recursion. In addition, calculation results are cached for later retrieval, for even more efficient operation. Unfortunately, several compromises needed to be made in the design, as present-day computers are incapable of handling the level of efficiency produced by this code without adverse effects.

Download0 Comments