3 ms·
http://news.ycombinator.com/item?id=1781013 http://news.ycombinator.com/item?id=1781013 quoting from PG's comment on that post: (= gravity* 1.8 timebase* 120
by pelf 16y ago
http://news.ycombinator.com/item?id=1781013 http://news.ycombinator.com/item?id=1781013
quoting from PG's comment on that post:
(= gravity* 1.8 timebase* 120 front-threshold* 1
nourl-factor* .4 lightweight-factor* .17 gag-factor* .1)
(def frontpage-rank (s (o scorefn realscore) (o gravity gravity*))
(* (/ (let base (- (scorefn s) 1)
(if (> base 0) (expt base .8) base))
(expt (/ (+ (item-age s) timebase*) 60) gravity))
(if (no (in s!type 'story 'poll)) .8
(blank s!url) nourl-factor*
(mem 'bury s!keys) .001
(* (contro-factor s)
(if (mem 'gag s!keys)
gag-factor*
(lightweight s)
lightweight-factor*
1)))))
-----
or simplifying a bit:
Score = (P-1) / (T+2)^G
where,
P = points of an item (and -1 is to negate submitters vote)
T = time since submission (in hours)
G = Gravity, defaults to 1.8 in news.arc