Did you know that HN runs on a Lisp based language written by Paul Graham? The algorithm is not published, but is likely karma = upvotes/2 - downvotes where initial karma is below some threshold.
The house always wins except when a black swan comes along and burns it to the ground.
Building Strong AI.