Postgres for the win!

Anyone who has ever argued against Postgres on performance grounds should go and read this, then eat their hats. Unsurprisingly, the real lesson is the classic: know your tools and know your data.

And something I dislike…

I’ve disabled comments for the moment – I’m getting too much stupid spam which my current filters can’t deal with. I’m in the process of upgrading my blogging software, and I’m hopeful the new version will deal with it better. It’s very annoying… My current filters work really well at preventing the spam from actually getting published – that is, I am not a good target for the spammers. It doesn’t stop them though, and I’m having to wade through tons of junk every day on the offchance that someone has left a real comment I should publish. Oh, the tedium.

I hope I’ll be able to turn this on again over Christmas or in the New Year – but no promises.

Two but not all…

Two things I love: Amelie and biscuits.

Fibonacci series one-liner in Haskell

Here’s a beautiful example of why Haskell is the most advanced programming language on the planet – a one-line definition of the entire fibonacci series:

fiblist = 0 : 1 : (zipWith (+) fiblist (tail fiblist))

Stunning. Note that that is not a function to calculate the nth fibonacci number: it really is a definition of the entire series. If you want the nth fibonacci number, look up the nth element of that list. Let’s see you do that in Java! (Or C#)

(Via the introductory series on Haskell at the rather good Good Math, Bad Math (more on the author here).)