Some testing is always going on

01 Jun 2007 In this case I am trying the Windows Live Writer to figure our whether there is a better way to post to my weblog. Clearly, for simple text this looks pretty straightforward, but it is rather unlikely that my posts containing code could be written with this. On the other hand,...

Haskell decision making

30 May 2007 A few days ago, while I was implementing something in PL/SQL for that dreaded Oracle Forms project I had to code some scary if-else construct spanning two logic checks that depending on the combination gave four different results. if a=true and b=true then 1 elsif a=true and b=false then 2...

Functional Programming and Quantum Computing

24 May 2007 Some effort goes into simulating a Quantum computer on a classical one, omitting the fact that such a simulation becomes arbitrarily slow due to the fact that a qubit encodes more information than a bit. As so often the entry point was an arxiv article from Peter Nyman, Simulation of...

When to jump into the water - with maths

17 May 2007 I once heard that with the following problem dogs had less of an issue than many distinguished people of the human race. Consider the following: There is an object in the water at some distance from you. You have a number of choices of how to get there. You could...

Haunted by PI - changing a number's base in Haskell

15 May 2007 I was looking back at Christoph’s ruby code and was thinking that by now I should be able to implement that algorithm in Haskell. Indeed, one of my solutions looks like that: out x | x >= base = foldl (++) [] $ map (\f -> out $ f x...