How can an posting dated from 2005 with only 19 points (at time of writing) reach number 2 on Hacker News? Does anyone know how the ranking algorithm works?
Time since submission is an important factor. Take a look at /newest; this is by far the most upvoted article on it, and most articles there have 1-3 points.
19 points are worth exponentially more the younger the post is, and exponentially less the older it is. If you're trying to understand why a post is where it is, age is just as important as votes.