Skip to content

Comment on Reddit, Stumbleupon, Del.icio.us and Hacker News Algorithms Exposed

Comments

These are not the algorithms but an overview of the formulas.

For example the HN algorithm is outlined in several places e.g. http://news.ycombinator.com/item?id=38704 and on the pg Arc site, and the reddit algorithms is

  def hot(ups, downs, date):
  s = score(ups, downs)
  order = log(max(abs(s), 1), 10)
  sign = 1 if s > 0 else -1 if s < 0 else 0
  seconds = epoch_seconds(date) - 1134028003
  return round(order + sign * seconds / 45000, 7)
AboutSource Built by g1lg1l

Hackerly is an independent reader for Hacker News, built on the public HN API. Not affiliated with Y Combinator.