About Haskell

Advantages of Haskell for Maths

A few things about Haskell that make it particularly nice for maths:

But the main thing is that it is much quicker to write code in Haskell than in an imperative language like C++. See for example this study - in which expert Haskell, Ada and C++ programmers were asked to tackle the same programming task - the Haskell code came out about 10 times shorter than the Ada / C++ code, and took significantly less time to develop.

For experimental maths programming, I tend to write the code, run it a few times, then move onto something else. So speed of development is far more important than speed of execution. (However, I don't want to give the impression that Haskell is slow - it isn't.)

Where to get Haskell

The Haskell website is at http://www.haskell.org/. There are two very good Haskell development environments - Hugs and GHC - both of which are free. I tend to use Hugs for development, and GHC if I need speed. Hugs is interpreted, GHC includes both a compiler and an interpreter. Both these packages can build executable files, but I find it much easier to work in the interactive environment.

What I would change about Haskell

Nothing's perfect, and that includes Haskell. There are two main things I would change about Haskell:

However, there are workarounds for both these problems, so I'll stick with Haskell for the moment.