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...

Function composition in C#3.0 (Stay calm, gather information and then do the right thing)

12 May 2007 In the last post I was talking about how we could create the natural Haskell function composition operator into C# and my first solution (also contained as the Functional assembly in the attached solution) was one based on the possibilities provided by the 2.0 Version of the .NET framework. It...

How much Haskell can I squeeze out of C#?

10 May 2007 You know all this talk about a new language every year and that it should be something different, etc. Since functions are playing a more & more important role in C#, I thought that it would make sense to have a look at a language that has been functional all...