r/technology • • Dec 10 '13

By Special Request of the Admins Reddit’s empire is founded on a flawed algorithm

http://technotes.iangreenleaf.com/posts/2013-12-09-reddits-empire-is-built-on-a-flawed-algorithm.html
3.9k Upvotes

2.2k comments sorted by

2.4k

u/[deleted] Dec 10 '13

That was a really nice write up. I know fuck all about programing but understood the author. Nice find OP

476

u/misnamed Dec 10 '13 edited Dec 10 '13

Thanks, I try! Here's the enhanced version for anyone interested!

272

u/[deleted] Dec 10 '13

That scared the fuck out of me

103

u/misnamed Dec 10 '13 edited Dec 10 '13

It can be slightly intense. But hey, US Redditors can at least be thankful they aren't at the office at this hour :D

91

u/[deleted] Dec 10 '13

I didn't even know I had my laptop sound on...

→ More replies (2)
→ More replies (11)
→ More replies (4)

52

u/sinister_exaggerator Dec 10 '13

I don't know if anyone stayed as long as I did, but it seems the longer you stay the more there is and the bigger they get.

65

u/misnamed Dec 10 '13

They also multiply, respawn and expand if you click on them.

51

u/[deleted] Dec 10 '13

I did all this. This is a game with no winners.

→ More replies (6)
→ More replies (11)

45

u/Hongofrias Dec 10 '13 edited Dec 10 '13

I wanted the Nyan cat to grow as big as it could, but I couldn't read any article cause the background music is fantastic. Now I have one gigantic cat and four others.

I can't stop.

Edit: Pic related http://imgur.com/4OQZfNm

→ More replies (1)

3

u/Diznatch52 Dec 10 '13

Bahahaha. I wish I'd learned about nyaning things sooner.

9

u/misnamed Dec 10 '13

It's never too late to start nyaning things!

3

u/Navevan Dec 10 '13

At first I was: imgur.com/8zSyzQ1

But then I was: imgur.com/lU6vomW

3

u/misnamed Dec 10 '13

We have a winner!

15

u/[deleted] Dec 10 '13

"Aahh!" -me

→ More replies (1)
→ More replies (37)

628

u/CarolinaPunk Dec 10 '13

It really was, I'm amazed a reddit developer can't fix this problem though easily by not counting votes for a period of time after a link is submitted. If I am interpreting this correctly.

1.0k

u/forcefielddog Dec 10 '13

It's more of a "won't" than a "can't."

535

u/maxximillian Dec 10 '13

Agreed. I just had a software engineering exam. There was a question about Egoless Programming, a concept discussed by Gerald Weinberg. I think a lot of people should read up on it.

Some developers have a tendency to hear any criticism about their code as though someone said their baby is ugly.

→ More replies (71)
→ More replies (176)

167

u/LostBob Dec 10 '13

I believe the author's intent is that this: return round(order + sign * seconds / 45000, 7) should be this: return round(order * sign + seconds / 45000, 7)

→ More replies (147)
→ More replies (23)

4

u/chadwicked Dec 10 '13

I could see this being part of the design for sure. If something has been around for less time yet has more downvotes doesn't that say something about the content? So less time + equal upvotes = higher ranking and less time + equal downvotes = lower ranking. Downvotes have the opposite effect of upvotes.

6

u/sje46 Dec 10 '13

If something has been around for less time yet has more downvotes doesn't that say something about the content?

Absolutely the hell not. It amazes me that people still think that way.

A downvote occuring in the first second shouldn't be any more powerful than a downvote occuring in the 15th hour. People often just downvote all new submissions just to give their submission an advantage.

20

u/TylertheDouche Dec 10 '13

This has been posted here before.

I think a redditor originally came up with this. It might actually be a top post, all time.

→ More replies (6)
→ More replies (30)

288

u/[deleted] Dec 10 '13

TIL Reddit has an empire.

32

u/doombrain Dec 10 '13

Wait till the IPO.

16

u/misnamed Dec 10 '13

IPO? It's already owned by a larger company.

→ More replies (3)
→ More replies (34)

336

u/CraftPotato13 Dec 10 '13

It's a procrastiNATION

67

u/[deleted] Dec 10 '13

With the capital sitting in the state of Denial?

→ More replies (3)
→ More replies (5)

17

u/[deleted] Dec 10 '13

Dibs on being emperor

→ More replies (18)

3

u/reputable_opinion Dec 10 '13

why do you think votes are for sale?

→ More replies (7)

1.6k

u/IndoctrinatedCow Dec 10 '13 edited Dec 10 '13

InB4 removed by mods for being "irrelevant"

Edit: wow I was right... Removed for "Not Appropriate" but up again by request of the admins...

Edit 2: Mods in this sub need to really dial back their extremely biased views on what deserves to make the front page. Browse /r/undelete and you'll see how much stuff with thousands of upvotes gets removed from the front page.

549

u/woknam66 Dec 10 '13 edited Dec 10 '13

Plug for /r/undelete, where this post will probably end up.

Edit: God fucking damnit it's already been deleted. I think I'm going to post this to /r/SubredditDrama.

Edit 2: here's the post on /r/undelete

Edit 3: And now it's back up!

109

u/misnamed Dec 10 '13 edited Dec 10 '13

I was sure it was heading for /r/spacedicks next

Edit: Since we're plugging things: /r/features and /r/vignettes are are more relaxed about things too

→ More replies (5)
→ More replies (12)

44

u/TrustworthyAndroid Dec 10 '13

This is why /r/Reddit needs to return. There is no place for posts about reddit itself.

→ More replies (6)

66

u/[deleted] Dec 10 '13

removed for being "Not Appropriate"

115

u/Poopy_Pants_Fan Dec 10 '13

A post in /r/technology that the mods actually deem irrelevant? That'll be the day.

Until then, I'm sure there are more posts this sub needs to see about copyright laws.

58

u/irondeepbicycle Dec 10 '13

I'd use my Galaxy S4 to buy a Tesla vehicle with bitcoins, but the NSA would watch me do it.

→ More replies (3)

104

u/ablebodiedmango Dec 10 '13

piracy piracy piracy piracy NSA NSA NSA piracy

With so much innovation out there you'd think there'd be some in here.

→ More replies (5)
→ More replies (2)

6

u/Grizzalbee Dec 10 '13

You know what this sub really needs? A post about a Samsung phone catching fire!

→ More replies (1)
→ More replies (44)

841

u/CarolinaPunk Dec 10 '13

This makes the gaming (by vested political interest) usually seen in r/politics r/news r/worldnews far more plausible if it is true. This is cancerous.

238

u/alienth Dec 10 '13 edited Dec 10 '13

It doesn't exactly apply to those subreddits. Brand new things are very unlikely to show up immediately on the hot listing of popular subreddits because of the huge amount of content on those subreddits. As a result, new posts are almost always only on the /new page, which isn't affected by the hot algorithm in any way. Simply put, if your brand new post is going to be seen on a popular subreddit, it's only going to be seen in /new anyways.

Very small subreddits are the main area where things like this can be a problem. In those cases, things that aren't on the hot listing are much less likely to ever get seen.

Edit: As a side note, consider the parent's comment before downvoting him/her. While I do not agree with their assessment, it is a valid question which is a common point of confusion.

112

u/[deleted] Dec 10 '13 edited Dec 10 '13

And the admin finally comes out when you start to talk shit about /r/politics, /r/worldnews, and /r/news

HMMMMMMM.

Edit: Now the post is off the front page. HHHHHHHHHHHHHHHHHHMMMMMMMMMMMMMMMMMMM................

82

u/misnamed Dec 10 '13

It was labeled 'not appropriate' for some reason. Shrug

→ More replies (6)
→ More replies (30)

60

u/[deleted] Dec 10 '13 edited Dec 10 '13

What would be the harm of implementing the recommend remediation and helping curb potential abuse? If it's a better way of doing something, why not do it?

If anyone else stumbles here, /u/ketralnis 's post clears up a lot of the questions

http://www.reddit.com/r/programming/comments/td4tz/reddits_actual_story_ranking_algorithm_explained/c4lp9kp Edit: Any reason why this was removed off the front page?

Edit2: Other than from a 100% biased point of view on the part of the admins, how does this fall in the category of "not appropriate"?

→ More replies (27)
→ More replies (16)

531

u/[deleted] Dec 10 '13

I have a feeling this goes a lot deeper. I would venture to guess most of the major sections of the site are manipulated both directly and indirectly, knowingly and unknowingly.

From Elizabeth Warren and Tesla Motors to Valve and "My Girlfriend's Cat" the site is very, very predictable, and seems far too homogenous for a website that is made up of millions of users all over the world and does not even need an e-mail to sign up for.

76

u/bigbobo33 Dec 10 '13 edited Dec 10 '13

I don't know about calling some massive conspiracy. Those things just appeal to reddit's primary base. The site's first and primary demographic is the 16-34 white male crowd and all those topics fit in their field of interest. It's more a problem of the concept of the site and hivemind problems than someone pushing an agenda.

A 20-something college student is way more likely to spend more time on here than a 50 year old mother who may visit the site once and awhile but is too busy with other stuff.

→ More replies (12)
→ More replies (141)
→ More replies (39)

859

u/J4k0b42 Dec 10 '13

I've had this problem on a subreddit I moderate, people get butthurt and downvote all the new articles, preventing any new content from reaching the users.

415

u/pianobadger Dec 10 '13

Same here. If the first person who gets to a post downvotes it, it's completely gone. I was running an official function of the subreddit before I became a mod and after the first time it happened I started sending the mods a message every week with a link to the post so they could see it and sticky it. I've started browsing by 'new' on small subreddits since I noticed that happens.

120

u/J4k0b42 Dec 10 '13

That was our solution as well, we put up a sticky with links to everything that got downvoted. It's not ideal but at least people can see what got submitted.

They either need to fix this or allow moderators to see who is doing the downvoting and allow us to ban them in a way that they can't do it anymore.

→ More replies (76)
→ More replies (16)

106

u/Dragoniel Dec 10 '13

I got my own tiny subreddit that we use with, like, 4 friends and someone from /all very often immediately downvotes every single post the moment it is submitted (because it's often a well-known repost, I guess, but my friends don't browse reddit like I do, so I repost stuff often).

At least half of my submissions there are burried with 0 total score (1 downvote). And I am pretty much the only one in that subreddit, for fucks sake...

75

u/ThePantsThief Dec 10 '13

I once saw a girl talking about how she and her husband have their own subreddit together that only they know about. "Who the fuck is down voting my submissions? All of yours have 2 karma and mine have 0"

→ More replies (9)
→ More replies (19)

34

u/gimpwiz Dec 10 '13

Same here. /r/tequila is a small sub and a single downvote can completely kill a submission.

→ More replies (13)

26

u/[deleted] Dec 10 '13 edited Dec 10 '13

Shit I realized this is what sometimes happens to my favorite game's subreddit.

A lot of people hate the company, or have moved on to competitors' games, come from those subreddits, or just like to troll, so they downvote all new submissions.

→ More replies (6)

3

u/SeedyOne Dec 10 '13

So if longer posts/videos are already at a disadvantage in the gif/meme world, wouldn't this make it even worse?

It's one thing if a bot can swoop in and downvote while the first legit viewers are reading/watching. It's another if that first downvote is some sort of uber-downvote, sinking it prematurely. This explains a lot...

3

u/Paladia Dec 10 '13

It's the same way on several subreddits I visit. New submissions always end up on the front page since there isn't much content. However, if it is downvoted once in the start then, bam, it is thrown into oblivion to never be seen again.

→ More replies (25)

1.0k

u/avrus Dec 10 '13

One of the key takeaways is just how important the people browsing and voting in /new are.

64

u/Asshole_Perspective Dec 10 '13

I'd say we all kind of had a feel for this. Anyone who's had a downvote within a few minuted of posting knows that their post will likely never recover. I always thought it kinda sucked.

→ More replies (1)

160

u/VOldis Dec 10 '13

And sadly many of those people matter least.

114

u/[deleted] Dec 10 '13

Matter least? So... Who on reddit matters most and why would you think that?

→ More replies (28)
→ More replies (11)
→ More replies (63)

604

u/JarJarBanksy Dec 10 '13

This is what quickmeme did.

120

u/Choralation Dec 10 '13

Link? I remember this but not the details and would like to refresh my memory.

570

u/alltimehigh Dec 10 '13

Guy that had quickmeme basically used a bot to downvote all meme sites that were not quickmeme and upvote all his own ones so he got a ton of traffic.

618

u/jaxspider Dec 10 '13

It goes a level deeper. The guy who ran quickmeme, somehow got on board of the mod team for /r/AdviceAnimals (without disclosing that he ran quickmeme) and then secretly removed all non-quickmeme links and approved all quickmeme links. He was playing the game from the inside.

Another mod caught on to him via the mod logs and thats why his site got banned from reddit.

→ More replies (93)
→ More replies (45)

175

u/Ihavenocomments Dec 10 '13

They would troll the new submissions to AdviceAnimals and downvote all non-quickmeme submissions. It was figured out by a Redditor, and quickmeme was banned.

Kinda crazy. Now, a shit ton of memes are created and posted on imgur, but quickmeme was really the go to site for meme generation before it all happened. Greedy cocksuckers had 5 slices of pie but tried to steal 1 more, now they have a Polaroid of a pie.

A poop pie.

112

u/LancesLeftNut Dec 10 '13

You should write history books.

→ More replies (2)
→ More replies (8)
→ More replies (3)

18

u/alienth Dec 10 '13

The actions of the site which shall not be named have no bearing on this issue. If hot had worked like the article suggested, the adviceanimals situation would have had no different outcome, due to a few factors.

→ More replies (2)

10

u/MundiMori Dec 10 '13

Did what quickmeme did rely on this bug, though? I feel like botting up and downvoting all non-quickmeme posts would still work even with the operational symbols in the right order in the code. If not, they really, really need to fix this.

34

u/test100000 Dec 10 '13

The grammar in your first sentence is, as far as I can tell, entirely correct; but man is it confusing. :D

→ More replies (7)
→ More replies (4)

3

u/Maslo59 Dec 10 '13

Its also what /atheism was subjected to during the 2013 Meme Wars.

→ More replies (9)

275

u/Phaedrus2129 Dec 10 '13

It seems like this would take about two minutes to fix, and unless the goal is to actually banish all posts that get a downvote early on (which is ridiculous) would seem to be a no-brainer to fix.

49

u/KumbajaMyLord Dec 10 '13

The problem with fixing it as OP suggested would be that it would seriously mess up the hotness of posts that are older than a day or so.

A post that has a net voting score of -1 would be hotter than a post that scored a net score of +100 but was posted 25 hours earlier.
A post with a -1 score would be hotter than a post with a +10 after 12.5 hours. Especially in small subreddits, that do not get that many votes and post submissions, this would put slightly downvoted post in a much higher position than they are now and would litter the frontpage with recent but bad posts.

From a pure 'mathematical' point of view, I would agree that the algorithm is flawed, but from a practical point of view I'd say it's working quiet well. Not perfect, but it works. The only change that I would consider, would be to add an offset to the calculation of the 'sign' so that a post doesn't disappear with just a -1 score, but rather a -5 or if 55% of all votes are downvotes, or so. This could somewhat limit the effect that a few quick downvotes could do to a new post, but ultimately it would just increase the threshold for this to happen and might have unintended side effects.

→ More replies (16)

51

u/cowvin Dec 10 '13

the reddit developers should put in this fix and let the people see how differently the site works for a week. then we can all vote on whether the site is better with the fix or not.

98

u/[deleted] Dec 10 '13

Allow Redditors to decide how the site is run.

This kills the Reddit.

→ More replies (3)
→ More replies (6)

4

u/rabbitlion Dec 10 '13

Reddit's scoring algorithm was moved out of the open source code years ago. It's secret to make it harder to manipulate votes. This guy stumbled upon an ancient code fragment that haven't been used for a long time, which is also why they're not very bothered to "fix" it. There could still be bugs in the actual algorithm, sure, but to claim that you need a bit more empirical evidence than what he is providing.

→ More replies (33)

193

u/ThePuffinDownvoter Dec 10 '13

My nefarious plan to rid /r/BirdPics of Puffins is ruined! Curse you!

7

u/AlexFightmaster Dec 10 '13

I can't believe I had to scroll this far down to find the /r/BirdPics reference.

21

u/randooooom Dec 10 '13

the first vote was a downvote

→ More replies (7)

47

u/Last_Gigolo Dec 10 '13

Gaming the system for advertisement purposes.

I believe this.

Kill all posts for an hour so everyone can only see your garbage.

Pay a few part timers $15 an hour to do it and bam.. Your product is the latest buzz.

18

u/321LetsThrow Dec 10 '13

Pay a few part timers $15 an hour? Automate it for way less.

→ More replies (4)

3

u/geekygirl23 Dec 10 '13

Haha, you can outsource for 50 cents an hour and they would be happy to click all day.

→ More replies (6)

92

u/SwiftSpear Dec 10 '13

If it's there by design it's a remarkably stupid design.

→ More replies (12)

51

u/iatealizard Dec 10 '13

I now downvote everything on the new page, with few exceptions, thereby amplifying my voting power.

7

u/phurled Dec 10 '13

Absolute power corrupts absolutely...

→ More replies (3)
→ More replies (5)

48

u/CarolinaPunk Dec 10 '13

Post has been removed from front page of r/technology as of this comment

ಠ_ಠ

→ More replies (4)

52

u/markevens Dec 10 '13 edited Dec 10 '13

I actually encountered something like this yesterday.

Browsing the /r/hot category I came across an intersting submission, dived into the comments, but found I was unable to comment or upvote the submission or any comments because it was originally submitted over a year ago.

/r/wtf

edit: yeah, I didn't really mean /r/hot. I just meant the hot category.

7

u/fredwilsonn Dec 10 '13

uhh

you do realize that /r/hot is a subreddit right? It has nothing to do with the hot page algorithm.

It's a very unpopular subreddit, it's normal that old posts would be there.

3

u/the_balla_koala Dec 10 '13

I have never had this problem in /r/hot. How deep were you post wise when it showed up?

→ More replies (5)

7

u/SirPsychoS Dec 10 '13 edited Dec 10 '13

Pasting this comment at the top level, because I originally posted it in the middle of nowhere:

People seem to be misunderstanding a few things.

First, a post's score won't change over time in the absence of new voting activity, so there's a false dichotomy between old and new posts in some comments. However, the score of untouched brand-new posts is constantly increasing, because the post dates are increasing. This is how newer posts are rated higher, not because old posts' scores are decaying, but because of score "inflation". Side note: this has the nice property that posts' scores only change if their votes do. Reddit doesn't have to re-score every post whenever a user loads the front page; just compute the score on voting, stick it in a DB column, and query by the highest values.

For clarity, here's the simplified formula as an expression: score(net_votes, create_date) = log(abs(net_votes)) + signum(net_votes)*create_date

The simplifications were:

  • Omitted the max(..., 1) because that just makes sure we don't try to evaluate log(0)
  • replaced create_date - 1134028003 with just create_date, since it doesn't affect how the scores work, just what date they count from.

So, for posts created all at the same time:

Positive net votes:

  • The post gets log(net_votes) points for being positively voted. Good! Upvotes should improve a post's rank.
  • The post gets create_date points for being posted when it was. Good! Newness should improve a post's rank.

net votes = -1:

  • The post gets 0 points for its vote magnitude (log(1) = 0). Fine.
  • The post gets -create_date points for being posted when it was and having negative net score. This is the worst score a post its age or older can have. An older post will be less penalized for having -1 points than a newer post, because of the magnitude of create_date. So, for posts with the same number of negative net votes, older posts are rated higher.

Net votes << -1:

  • The post gets log(abs(net_votes)) points for being strongly downvoted. Also bad. See the second-last paragraph.
  • The post gets -create_date points again. Same deal as before.

Now, time passes, say 1000 seconds, and more posts are created and are voted exactly the same as before; let old_time be the create date of the last set of posts:

Positive net votes: log(net_upvotes) + old_time + 1000. This post is 1000 seconds newer with the same net votes, and has 1000 more score. Good!

net votes = -1: 0 - create_date - 1000. What? This post is newer; it should be higher than an older equally-voted post.

net votes << 0: log(abs(net_votes)) - old_time - 1000. Okay, let's look at create_date here. At the time of writing, the Unix timestamp is about 1386664202. 1386664202 - 1134028003 = 252636199. So, for this highly downvoted post to beat a post with 1 net positive vote (i.e. new and untouched), log(abs(net_votes)) must be greater than twice the score contribution from create_date. So, log(net_downvotes) = 2*252636199/45000 = 11228; 1011228 = net_downvotes. That's still an insane number. To make it out of the hole of negative voting, you have to have far, far more than billions of downvotes. Never going to happen; it's more downvotes than there ever have been humans. For all practical purposes, a negative-net-vote post cannot out-score a positive-net-vote one.

Edit: Replaced part of the above paragraph. Old text: So, log(net_downvotes) = 2*252636199 = 505272398; 10505272398 = net_downvotes. That's an insane number. It takes more than 1515817194 bits to count that high. That's 180 MB. That's more votes than all posts ever on Reddit have accumulated (I haven't done the math on that claim, but I feel comfortable with it anyway, and will work it out if you so demand.) For all practical purposes, a negative-net-vote post cannot out-score a positive-net-vote one. This is wrong; I missed the constant 45000.

So, even if Hot were meant to represent "the strength of sentiment on a post, with newer posts rated higher," it doesn't. That would be: score(net_votes, create_date) = log(abs(net_votes)) + create_date. I'd be fine with that fix, too -- heavily downvoted posts might be interesting! And, in that case, slightly-downvoted posts would also be slightly bumped over neutral posts. Weird, but interesting.

Furthermore, I don't think Hot is intended to represent the above. That might be a good ranking if Redditors interpreted upvotes as "I agree" or "I think the thing this post refers to is good", and downvotes as "I disagree" or "I feel negatively about the thing this post refers to". Then, a high score would mean that Reddit is in strong agreement about the content of the post, and also that many people felt strongly enough about it (i.e. were interested enough) to vote on it. So, a high score would mean an interesting post. Great! Where's the problem? Well, that's not how I vote, and that's not how I think other Redditors vote.

My understanding is that upvotes mean "this is interesting" and downvotes "this is uninteresting", which makes strongly-downvoted posts mean "a lot of people thought this was uninteresting." In that case, those are exactly the posts that should disappear -- but not beyond any hope of ever finding them.

Appendix: Variations of the formula and what they mean in English:

  • score(net_votes, create_date) = signum(net_votes)*log(abs(net_votes)) + create_date : Posts are sorted by time, and bumped up or down by votes. Votes must increase exponentially if a post is to remain at the top indefinitely. Downvotes must increase exponentially to push a post far "back in time", i.e. sort it after older posts. This sounds sane, although it might need some tweaking. I'd call it: "Hot" if votes are interest, "Agreed" if votes are agreement.
  • score(net_votes, create_date) = log(abs(net_votes)) + create_date : We discussed this one above. Posts are sorted by time, and a strong consistent sentiment bumps them higher in the sort order. I'd call it: "Landslide" if votes are agreement, and no clue if they're interest.
  • score(total_votes, create_date) = log(abs(total_votes)) + create_date : Posts are sorted by time, and those with lots of votes are bumped up. Interesting. Basically the union of "Landslide" and "Controversial".
  • score(up, down, create_date) = log(abs((up+down)/(up-down))) + create_date : Posts are sorted by time, and those that have lots of votes relative to their total score (i.e. controversial posts, those with lots of disagreement) are bumped up. "Controversial".
  • score(net_votes, create_date) = log(abs(net_votes)) + signum(net_votes)*create_date : Positively-voted posts are sorted by time. Highly-voted posts are bumped up. Negatively-voted posts are sorted in reverse time, with a huge negative starting score. Getting more downvotes slightly improves their strong negative score. Older negative posts are sorted higher. WTF is going on? In no world does it make sense that newer downvoted posts should be sorted below older downvoted posts.

Edit: I upvoted you because you made a contribution to the conversation (interest!), but I think you misunderstood how the time part of the equation is calculated. That was intended for the person to whom I originally was replying. My understanding matches that of the blog's author.

Edit: Second appendix: So, you wonder why this bug hasn't destroyed Reddit's popularity? The algorithm as-is works perfectly for positively-scored posts! And, other than the people who post them, nobody really cares too much about the missing negatively-scored posts. People have noticed that Reddit is fickle with new posts (and that's because of the bizarre negative-date-sorting for negative-scored posts), but nothing has exploded.

→ More replies (4)

13

u/Arro Dec 10 '13

Not seeing a post explaining why this is the way it is, but this was cleared up a few hours ago on Hacker News.

The tl;dr is that what the author is describing is only the true of the "hot" sorting algorithm. It is not true on /new.

from /u/Ketralnis:

The thing is, the two most important pages are the front page (or a subreddit's own hot page) and the new page. The new page is sorted by date ignoring hotness, and if something has a negative score it's not going to show up on the front/hot page anyway. The two other main opportunities to get popular (rising and the organic box) don't really use hotness either.

So when it comes down to it, what happens below 0 is pretty moot. Smoothness around the real life dates and scores on the site is more important than smoothness around 0, where we don't really have listings that will display it anyway.

27

u/nedonedonedo Dec 10 '13

I thought everyone already knew this and reddit just used the honor system...

5

u/onehundredtwo Dec 10 '13

I gave you an upvote. But now I don't know if that's going to increase your post popularity or kill it :/

→ More replies (1)

10

u/Myhouseisamess Dec 10 '13

Man I was keeping up with that longer than I thought I would, but it reached a point where I just started to giggle

I am not a smart man

64

u/jermsplan Dec 10 '13

I think the article is wrong, the algorithm is correct, and here's why

TLDR: "hot" <> "popular"

Reddit wants to display links that make people want to comment on them. Reddit doesn't care if people are responding by saying "YES!" or "THIS IS TERRIBLE!" If people are responding, Reddit is happy. The "hotness" of a post is not the same as the "popularity" of a post. Reddit is not r/circlejerk.

Let's look at the 8 possibilities:

Lots of upvotes, new post: the sign is positive, so the (big) upvotes plus the (small) time difference add to a (big) number, thus, new+popular = HOT.

Few upvotes, new post: the sign is positive, so the (small) upvotes plus the (small) time diff add to a (small) number. This post appears on NEW still, waits to get upvotes or die.

Lots of upvotes, old post: the numbers are both big and positive. This is why very popular posts stick around for a (relatively) long time. No one is sad about this. Popular post is popular.

Few upvotes, old post: this is lost to the depths. Both positive numbers, only one big, doesn't show up anywhere.

Lots of downvotes, new post: the sign is negative. The (big) downvotes minute the (small) time diff are a big number. Thus, this hits everyone's frontpage. Why? Because it's HOT. People are talking about it (using talking = "downvoting". Ever hear the saying "there's no such thing as bad publicity"? Any action is good action as far as Reddit is concerned. If people are reacting to it, keep it on the front page! This seems to be the scenario people are calling a "mistake" in the code. But this gets people onto Reddit, commenting on how terrible the post is. Earning gold for dissecting exactly why the post is bad. Cha-Ching! Besides, these posts are constantly turning into......

Many downvotes, old post: as time goes on, the negative time diff will inevitably outnumber the positive number of downvotes. The post will fall off the front page, and eventually fall into the depths, never to be seen. It did it's job, it got people talking, but since it was unpopular it fell away, exactly as intended.

Few downvotes, new post: these are the ones in danger of getting lost. If the first few votes are down, the time diff will be negative and can quickly push the post out of sight to where no one will ever salvage it. Truly, these are the lost innocents of the equation. But guess what? A post is reposted on Reddit every 1.3 seconds (look it up) and they'll be back.

Few downvotes, old post: all negative numbers, who cares, it's gone. No one misses it.

As evidence that this is all exactly as Reddit wants it to work: as the article points out, it's a 2 second change which has been pointed out multiple times. If Reddit wanted it changed, it would be changed! But Reddit is not about pushing the most upvotes onto the front page, Reddit is about pushing the "hottest" post onto the front page. And people talking smack and downvoting a post makes that post just as "hot" as people praising and upvoting a post.

26

u/mexxmann Dec 10 '13

I like the way you broke down the scenarios.

However, I think you might be reading the time portion incorrectly. Newer posts have a larger seconds value because the calculation for seconds is seconds = 'Date of post' - 1134028003 (Thu, 08 Dec 2005 07:46:43 GMT)

However, that being said, I think the scenarios you list are essentially still correct. I think the OP is really only complaining about the "Few downvotes, new post" scenario - these get blasted into purgatory. However, if I understood the article, the proposed fix is to change the formula to: return round(order * sign + seconds / 45000, 7)

While that would help with the perceived problem with this scenario, I think it would cause a bigger problem with the "Lots of downvotes, new post" scenario - and cause these to fall off the hot homepage, like you say.

Also, it might be a matter of opinion whether the "Few downvotes, new post" scenario is really a problem or is working as desired... It could be that this is the way they wanted it to work, although perhaps there could be a clever way to prevent the an attacker gaming the system described in the article.

Upvoted your post btw:)

16

u/SirPsychoS Dec 10 '13 edited Dec 10 '13

Interesting analysis, but I disagree.

First, a post's score won't change over time in the absence of new voting activity, so there's a false dichotomy between old and new posts here. However, the score of untouched brand-new posts is constantly increasing, because the post dates are increasing. This is how newer posts are rated higher, not because old posts' scores are decaying, but because of score "inflation". Side note: this has the nice property that posts' scores only change if their votes do. Reddit doesn't have to re-score every post whenever a user loads the front page; just compute the score on voting, stick it in a DB column, and query by the highest values.

For clarity, here's the simplified formula as an expression: score(net_votes, create_date) = log(abs(net_votes)) + signum(net_votes)*create_date

The simplifications were:

  • Omitted the max(..., 1) because that just makes sure we don't try to evaluate log(0)
  • replaced create_date - 1134028003 with just create_date, since it doesn't affect how the scores work, just what date they count from.

So, for posts created all at the same time:

Positive net votes:

  • The post gets log(net_upvotes) points for being positively voted. Good! Upvotes should improve a post's rank.
  • The post gets create_date points for being posted when it was. Good! Newness should improve a post's rank.

net votes = -1:

  • The post gets 0 points for its vote magnitude (log(1) = 0). Fine.
  • The post gets -create_date points for being posted when it was and having negative net score. This is the worst score a post its age or older can have. An older post will be less penalized for having -1 points than a newer post, because of the magnitude of create_date. So, for posts with the same number of negative net votes, older posts are rated higher.

Net votes << -1:

  • The post gets log(abs(net_votes)) points for being strongly downvoted. Also bad. See the second-last paragraph.
  • The post gets -create_date points again. Same deal as before.

Now, time passes, say 1000 seconds, and more posts are created and are voted exactly the same as before; let old_time be the create date of the last set of posts:

Positive net votes: log(net_upvotes) + old_time + 1000. This post is 1000 seconds newer with the same net votes, and has 1000 more score. Good!

net votes = -1: 0 - create_date - 1000. What? This post is newer; it should be higher than an older equally-voted post.

net votes << 0: log(abs(net_votes)) - old_time - 1000. Okay, let's look at create_date here. At the time of writing, the Unix timestamp is about 1386664202. 1386664202 - 1134028003 = 252636199. So, for this highly downvoted post to beat a post with 1 net positive vote (i.e. new and untouched), log(abs(net_votes)) must be greater than twice the score contribution from create_date. So, log(net_downvotes) = 2*252636199/45000 = 11228; 1011228 = net_downvotes. That's still an insane number. To make it out of the hole of negative voting, you have to have far, far more than billions of downvotes. Never going to happen; it's more downvotes than there ever have been humans. For all practical purposes, a negative-net-vote post cannot out-score a positive-net-vote one.

Edit: Replaced part of the above paragraph. Old text: So, log(net_downvotes) = 2*252636199 = 505272398; 10505272398 = net_downvotes. That's an insane number. It takes more than 1515817194 bits to count that high. That's 180 MB. That's more votes than all posts ever on Reddit have accumulated (I haven't done the math on that claim, but I feel comfortable with it anyway, and will work it out if you so demand.) For all practical purposes, a negative-net-vote post cannot out-score a positive-net-vote one. This is wrong; I missed the constant 45000.

So, even if Hot were meant to represent "the strength of sentiment on a post, with newer posts rated higher," it doesn't. That would be: score(net_votes, create_date) = log(abs(net_votes)) + create_date. I'd be fine with that fix, too -- heavily downvoted posts might be interesting! And, in that case, slightly-downvoted posts would also be slightly bumped over neutral posts. Weird, but interesting.

Furthermore, I don't think Hot is intended to represent the above. That might be a good ranking if Redditors interpreted upvotes as "I agree" or "I think the thing this post refers to is good", and downvotes as "I disagree" or "I feel negatively about the thing this post refers to". Then, a high score would mean that Reddit is in strong agreement about the content of the post, and also that many people felt strongly enough about it (i.e. were interested enough) to vote on it. So, a high score would mean an interesting post. Great! Where's the problem? Well, that's not how I vote, and that's not how I think other Redditors vote.

My understanding is that upvotes mean "this is interesting" and downvotes "this is uninteresting", which makes strongly-downvoted posts mean "a lot of people thought this was uninteresting." In that case, those are exactly the posts that should disappear -- but not beyond any hope of ever finding them.

Appendix: Variations of the formula and what they mean in English:

  • score(net_votes, create_date) = signum(net_votes)*log(abs(net_votes)) + create_date : Posts are sorted by time, and bumped up or down by votes. Votes must increase exponentially if a post is to remain at the top indefinitely. Downvotes must increase exponentially to push a post far "back in time", i.e. sort it after older posts. This sounds sane, although it might need some tweaking. I'd call it: "Hot" if votes are interest, "Agreed" if votes are agreement.
  • score(net_votes, create_date) = log(abs(net_votes)) + create_date : We discussed this one above. Posts are sorted by time, and a strong consistent sentiment bumps them higher in the sort order. I'd call it: "Landslide" if votes are agreement, and no clue if they're interest.
  • score(total_votes, create_date) = log(abs(total_votes)) + create_date : Posts are sorted by time, and those with lots of votes are bumped up. Interesting. Basically the union of "Landslide" and "Controversial".
  • score(up, down, create_date) = log(abs((up+down)/(up-down))) + create_date : Posts are sorted by time, and those that have lots of votes relative to their total score (i.e. controversial posts, those with lots of disagreement) are bumped up. "Controversial".
  • score(net_votes, create_date) = log(abs(net_votes)) + signum(net_votes)*create_date : Positively-voted posts are sorted by time. Highly-voted posts are bumped up. Negatively-voted posts are sorted in reverse time, with a huge negative starting score. Getting more downvotes slightly improves their strong negative score. Older negative posts are sorted higher. WTF is going on? In no world does it make sense that newer downvoted posts should be sorted below older downvoted posts.

I upvoted you because you made a contribution to the conversation (interest!), but I think you misunderstood how the time part of the equation is calculated.

→ More replies (4)

6

u/orangesine Dec 10 '13

I like your thinking but I've never seen a lots of down votes post on the front page.

→ More replies (5)

4

u/SikhGamer Dec 10 '13

So is there an official admin comment? Will they resolve this issue?

4

u/youngian Dec 10 '13

Author here. Thanks for all the interest! I posted a quick follow-up with some corrections and other items of interest that came out of the discussion: http://technotes.iangreenleaf.com/posts/2013-12-10-the-reddi....

And of course, if you would like more articles written by me and an extremely high signal-to-noise ratio (because I post so rarely...), consider subscribing: http://technotes.iangreenleaf.com. RSS is not dead, dammit.

→ More replies (1)

19

u/SethWooten Dec 10 '13

I'm a programmer, seems like a lot of extremely valid pointers are being made. Hopefully the admins aren't so content with the way things work now that they're too lazy to bother trying changes.

25

u/ChemicalRocketeer Dec 10 '13

pointers

6

u/RedditBlaze Dec 10 '13

After working in C long enough, I go a bit crazy*

→ More replies (4)

13

u/01001111 Dec 10 '13

This happens to me every fucking time I post to ITAP.

Reddit, where are your unit tests?

15

u/[deleted] Dec 10 '13

Reddit, where are your unit tests?

It's not a bug

→ More replies (11)
→ More replies (3)

6

u/[deleted] Dec 10 '13

Is this why I always get to threads late?

6

u/laz-y Dec 10 '13

I was so sure that this was common knowledge, having been here long enough and submitting my fair share of links.

Any time I see that the first vote I got was a downvote, I delete it right away, because I know that there's no point of checking for karma/comments later.

8

u/[deleted] Dec 10 '13

who the fuck cares about karma. just post things and be done with it.

→ More replies (4)

3

u/IwantCrisis3 Dec 10 '13

What was your strategy for preventing this from getting immediately down voted to reddit hell?

3

u/Dylangem Dec 10 '13

They're in the EMPIRE business.

3

u/[deleted] Dec 10 '13

I thought the flawed algorithm was the high ratio of assholes in is community.

3

u/pipkinsoup Dec 10 '13

This seems too simple not to fix. This has to be a bit more complicated than it's made out to be.

3

u/[deleted] Dec 10 '13

think of the PUFFINS!!

→ More replies (1)

3

u/archiminos Dec 10 '13

Hypothetical: what happens if a bunch of bots get created that constantly downvote everything in /r/new?

→ More replies (2)

3

u/GeorgianDevil Dec 10 '13

Put a fork in it. It's done. Start a new one.

  1. Fork it
  2. Fix it
  3. ????? / Start a new site
  4. Profit / ?????

3

u/[deleted] Dec 10 '13

I'm sorry, but an article that has 5000 negative votes is 'hotter' than an article that has no votes. If a feature was designed a particular way, it's not a bug. This is coming from someone who has 10 years quality assurance experience. Just because you disagree with implementation doesn't make it a defect.

→ More replies (2)

3

u/masterofpuppets1337 Dec 10 '13

So I'm just gonna throw this into the discussion, could this be a tool that reddit is using to censor at their will or the will of others? It sounds like it's a perfect way to do so.

3

u/davethemoonman Dec 10 '13

How about the devs quit being butthurt cunts about it, acknowledge it's a potential problem, and fix it? I know, crazy, right?

3

u/d3phext Dec 10 '13

TIL if a submission gets a down vote first, delete it and try again. choo -choo!

3

u/aceutosh Dec 10 '13

It would have been rather ironic if this post got down voted on the new page :D

→ More replies (1)

37

u/rats_saw_god Dec 10 '13

Seems like a decent site to me.

64

u/Sulean Dec 10 '13

Nope, it's flawed.

→ More replies (2)

38

u/thirdegree Dec 10 '13

Decent sites can be flawed. Similarly, flawed sites can be decent.

→ More replies (13)

5

u/baconshake8 Dec 10 '13

I wonder if this is the same with comments

5

u/anouroboros Dec 10 '13

Isn't a nice effect of the current system that it heavily rewards those that are browsing new content? Making the downvotes and upvotes for new content incredibly important for the success of the post. It not only encourages dedicated (and hopefully with dedication comes skill) users to sift through the tons of content reddit gets, but also allows content to sift to the top even quicker then in a normal ("moral") upvote/downvote/time system. Constant competing posts versus the current system which quickly separates and focuses the new content. I feel a big focus to any user generated site is 1. encourage the submission of content people may want to see and then 2. figure out (as quick as possible this is the internet) what of that submitted content users want to see.

I totally understand what the author was getting at about it potentially making reddit more vulnerable to being gamed. I just think there are definite benefits for the current way the system is set up and the problems of gaming can hopefully be solved other ways - particularly in being nullified by the multitude of voters that see the post in comparison to the other early upvoted content.

What is their goal? What meets their goal?

Please let me know if i'm not understanding something in the post- really enjoyed the the article.

→ More replies (3)

5

u/cloverhaze Dec 10 '13

Maybe I should spend time on new submissions voting now...

→ More replies (1)

5

u/BrippingTalls Dec 10 '13

Great write up, except the lamenting on the morals of right or wrong at the end. Otherwise, very interesting!

→ More replies (1)

16

u/[deleted] Dec 10 '13

eli5?

75

u/StrangerMind Dec 10 '13

As I understood it.... Anything downvoted early is effectively lost. The effect that first early downvote has can move the post back past submissions that are a month old.

→ More replies (11)

23

u/Death-By_Snu-Snu Dec 10 '13

basically, if someone downvotes a post in the first few seconds after it is posted, it's more than likely completely damned, and this allows for some rigging of the system.

It also causes some unfairness for posts regardless.

4

u/FugitiveDribbling Dec 10 '13

The author offers a more practical explanation in the section labeled "Consequences."

→ More replies (5)

9

u/ketralnis Dec 10 '13

This comes up every six months or so. It's not wrong.

→ More replies (2)

4

u/NuclearFej Dec 10 '13

For once... just this once... we could actually make a difference by upvoting.

Click (or tap) away!

6

u/brownbe Dec 10 '13

Good Guy Op: Downvotes post for science, goes back and upvotes it after

3

u/DanielEGVi Dec 10 '13

Only to find them rotting alone and forsaken, in a mysterious purgatory located past 2,000+ pages of older content behind the front page.

5

u/DiscordPope Dec 10 '13 edited Dec 10 '13

Programmers tend to nurture a definition of justice that revolves around rule conformance. It’s why many of us find worldly realms like relationships or politics so intractable, and why many of us were drawn to computer science in the first place. In computation, everything is strictly deterministic. If something happens that doesn’t make sense, it can only be because our understanding of the system is incomplete7. To be Right, capital-R Right, is a system that is fully understood and executes precisely as expected.

Yes. There is no comprehensive rule book for the world. You have to build your own and you have to constantly be adding to it for the world to make sense. If someone does know all the rules, I don't know, I guess he wins, but I don't think anybody has figured them all at so far and I don't think anybody will.

When we hold this type of worldview, intentional propagation of a bug seems unjust. Myself and the other developer who pressed this issue seem to have a more complete understanding of the algorithm than the Reddit employees who responded to us. We’re certainly correct about the surprising and counterintuitive behavior of the unpatched algorithm. We are Right and Reddit is Wrong. And Reddit has a wildly popular site, a tremendous userbase, and tons of cash flowing in. All built on a foundation with an obviously Wrong component.

You need to add to your rulebook. 'Wrong' is a relative term when requirements are as ill defined as they are in the real world. Reddit gets 80 million hits a month. It would be crazy to change the core algorithm to their site because it's 'wrong'. Clearly, whatever they have, from a business perspective, is working and it'd be wrong to change it without considerable thought.

That said, they could implement the algorithm as another sorting method (like 'Best' or 'Controversial' or 'Rising'), and if successful phase it in as the main algorithm.

2

u/ElGuano Dec 10 '13

So let me ask from a different perspective: What effect would fixing this accomplish? Is the "fixed" code flawless? Not that it needs to perfectly reflect the developers' intent, but perhaps there's a more sinister form of gaming that would be possible if newer posts ranked higher in some cases? Could it be that this is the lesser of two evils?

2

u/ImAWizardYo Dec 10 '13

This needs to be front page all day, every day. Quick, somebody write up a script that looks for this submission and immediately upvotes everytime it is submitted. Or just borrow one from /r/politics or /r/worldnews.

2

u/vinogradov Dec 10 '13 edited Jul 04 '23

Deleted -- mass edited with redact.dev

2

u/mpavlofsky Dec 10 '13

TL;DR- Browse /new.

2

u/wataccount Dec 10 '13

Reddit is the only website that would have a negative story about itself on the front page. I still love you despite you flaws.

→ More replies (1)

2

u/UNisopod Dec 10 '13

This seems like they just didn't want to actually think through the math to come up with a more meaningful function of votes and time. Unless the goal is to have new posts disappear completely if they get a downvote...

What about: B*sigmoid(C*votes+X)*seconds, then if votes > 0 add log(D*votes) to ensure better sorting among posts people actually want to see? (B, C, D, & X being constants tuned to whatever desired particular effect... X in particular being there to soften the blow of the first few downvotes)

Would this be too computationally intensive?

2

u/buriedinthyeyes Dec 10 '13

It’s why many of us find worldly realms like relationships or politics so intractable, and why many of us were drawn to computer science in the first place. In computation, everything is strictly deterministic. If something happens that doesn’t make sense, it can only be because our understanding of the system is incomplete.

TIL that i hold a deterministic view of relationships and that is probably why i feel like i know so much about human interactions but remain doomed to be forever alone.

→ More replies (1)

2

u/[deleted] Dec 10 '13

Wow... That seems like a very easy mistake to make... and a very easy mistake to fix.

2

u/cosmic420brownie Dec 10 '13

"Empire"? Is Reddit cooking meth now?

2

u/[deleted] Dec 10 '13

This is why I browse /new. Repost? Retarded? Self-entitled teen drama? Banished

2

u/oxboxdox Dec 10 '13

I think you've done a really nice job of pointing out a quirk in the way reddit measures "hotness". Can I offer a different interpretation of the algorithm?

I see something that places a premium on votes in terms of importance; by not switching the sign on up vote/down vote inputs, the algorithm, as you rightly point out, will bias against anything that has received early down votes and bias toward anything that has received early up votes. Time will not have this effect.

My interpretation of the design, however, is that it was created to accommodate large streams of incoming users who want to view "quality" content. We can define quality in a number of ways. In an ideal world, we would measure it by goodness of what is posted. But "goodness" isn't a static concept. It's pretty tricky to agree upon a "goodness" value for any one thing that multiple people can agree upon, and that's provided that you have an army of quality control people looking at every single post to determine its "goodness"; in other words, you'd need an editorial board to begin to implement that type of standard. Thus, the developers have settled upon up votes and down votes as a way to measure relative "goodness."

The issue, then, isn't "lonely posts" rotting in purgatory. In any system that's designed to rank content, some items will have to come last. That's the nature of ranking. Similarly, I wouldn't focus your attention on the ability of malcontents to game the system; pretty much any system can be gamed. You just go about it differently, depending on the rules.

The thing that you'd take issue with, instead, is that this algorithm presumes that any given user is representative of the population as a whole. This algorithm is extremely reactive to first up votes and down votes. This is, in theory, fine as long as the users making first contact with posts have the same ideas of "goodness" as the rest of the group. In fact, this reactiveness would end up working in the group's favor, banishing content that everyone would perceive as being poor quality, not useful, or irrelevant for view. Where you run into problems is if this is not the case.

It's an issue related to your concerns about gaming the system, but it raises a series of complicated sort of issues to fix. Who gets to determine what content is seen? Should some users' opinions be prioritized over others? My guess is that you'd say no. Placing a premium on time as opposed to on user votes renders reddit just another message board, with posts degrading in a predictable way, and removes one of the aspects of reddit that makes it great--the site's ability to dynamically respond to user activity. Don't get me wrong--I think there are problems with this algorithm. I'm just not sure that I have a better solution.

tl;dr: Reframing the way we think abut the algorithm as reddit placing a premium on user opinions may shed light on why reddit's "hot" ranking works this way. The problem with the algorithm is not the way it works, but the assumptions it makes about random users.

2

u/gavers Dec 10 '13

Notice footnote 4, he unknowingly mentions vote fuzzing. It could be that that is part of the reason he is seeing such "skewed" results in his tests. I don't understand much about programming, and the problem seems to make sense why it's wrong to me, but it may be slightly deeper than that.

2

u/Khazaad Dec 10 '13

A strong public opinion should should scale ranking upwards regardless of its positive or negative value, while indifference would scale it down.

2

u/SatansBFF Dec 10 '13

make a few bots to troll new submissions with downvotes and then upvote things that manage to survive to mask their behavior.

2

u/[deleted] Dec 10 '13

TIL reddit operates like the government. We know it's broken, but we aren't going to fix it.

2

u/[deleted] Dec 10 '13

I like to discuss based on some data. At least charts. Here's my try to visualize the original and proposed algorithms.

4 images: http://imgur.com/a/FfE6r Time goes from 0 to 1 week, score difference is shown for two ranges: 100 and 4000 points.

Please let me know if I've messed up somewhere.

2

u/chungkaishek Dec 10 '13

reddit ex-admin /u/ketralnis explains here why this post is incorrect.

2

u/mindwandering Dec 10 '13

Well the world needs ditch diggers too.

2

u/Christopher3712 Dec 10 '13

I can't lie, I went in and hated on some 1-vote /r/birdpics to see what would happen.

2

u/GeekFurious Dec 10 '13

I've been complaining about this for a while. If you ever piss off a 12-year old who has nothing better to do with his life, he will simply sit on your account waiting for you to post something, then downvote you immediately after posting, thereby suppressing your articles forever. Just anger a Justin Bieber fan sometime and you'll see.

2

u/vandinz Dec 10 '13

I KNEW all my post were brilliant! DAMN YOU REDDIT DEVS! /Shakes fist.

2

u/rwd916 Dec 10 '13

Where's the ELI5 version of this?

3

u/[deleted] Dec 10 '13

He's saying the way the reddit figures out what posts are "hot" is flawed because it doesn't adjust for downvotes properly. Instead of counting 10 downvotes as -10, the formula automatically makes it a positive number. So 10 downvotes gives a higher "hot" score than 5 upvotes. It's similar to squaring (where you multiple a number by itself) a negative number. -10*-10=100 is a bigger number than 5*5=25.

2

u/Blewedup Dec 10 '13

It's not a bug. It's a feature.

2

u/[deleted] Dec 10 '13 edited Dec 10 '13

reddit's current success is based on "no real competitors" to be honest had Digg not made critical mistakes reddit may not even be in business today.

2

u/large-farva Dec 10 '13

Counterpoint. A lot of the stuff in /r/new is utter garbage. It shouldn't hurt more than one person's eyes

2

u/Meowshi Dec 10 '13

Ugh, now /birdpics/ is filled with sarcastic Puffins. Thanks.

2

u/thatvoicewasreal Dec 10 '13

This is a wonderful metaphor for how American democracy is subverted by interest groups and ideologues. The news, for instance, is filtered by editors who have the power and prerogative to prevent stories from ever seeing the light if day, each with his or her personal prejudices and quite often with a highly partisan agenda. The Internet, we're told, democratizes that information. Except when it doesn't.

2

u/[deleted] Dec 10 '13

Looks like /r/new is the only place a downvote has real power.

2

u/pippinsghost Dec 10 '13

TIL Reddit is broken.

2

u/[deleted] Dec 10 '13

Also, the new mail icon sucks dong.

2

u/flyinghamsta Dec 10 '13

yep. one downvote kills posts. figured it was intentional.

2

u/[deleted] Dec 10 '13

I looked up Reddit's voting algorithm one time and noticed this. I thought that the person who wrote out the code made a typo, and that there was absolutely no way that Reddit had such an obvious flaw in their voting system.

2

u/[deleted] Dec 10 '13

all assholes on reddit today: open /r/new and downvote everything

2

u/__1984__ Dec 10 '13

It's intentionally flawed so the site can be ultimately controlled.

2

u/[deleted] Dec 10 '13

How long before this post is removed I wonder.

2

u/selectorate_theory Dec 10 '13

Can we start a AskReddit thread and, if it's popular enough, hopefully the admin will feel compelled to chime in?

2

u/rasv Dec 10 '13

it's worth reading where the author discovers this doesn't really apply how he's stating it to in the article:

https://github.com/reddit/reddit/pull/583#issuecomment-30226706

2

u/woodenghost Dec 10 '13

this was so beautifully written

2

u/joeymorales Dec 10 '13

I'm just happy I understand the code! College education not wasted, got to use it on reddit!

2

u/johnrgrace Dec 10 '13

Dozens of users thousands in revenue, in practical terms an epic failure. This is why you don't let programmers run companies because maybe it has problems but in practical terms this thing WORKS

2

u/[deleted] Dec 11 '13

Maybe have a system where new links/posts are 'immune' to downvotes for a set period of time?

2

u/Kanerodo Dec 11 '13

Reddit is also susceptible to the Year 2038 problem because of their use of the Unix time stamp.

2

u/Iplaymeinreallife Dec 11 '13

So was Palpatine's, but it still worked out pretty well all the way until he got thrown into a reactor core.

5

u/[deleted] Dec 10 '13

Post was on my front page then an admin commented and it's gone. Weird huh?

→ More replies (4)

4

u/georedd Dec 10 '13 edited Dec 10 '13

Those of who realized long ago that reddit is intended to have censorship have complained about the pergatory zone based on a small number of fast downvotes for years.

Then we figured out that was the way the owners want it.

Do you really think the 7 th largest media family in the world bought s money losing website with huge political influence for any reason other the to control that political influence?

Have you ever wondered why the default landing zone is hot rather than top anyway?

The hot ranking was specifically introduced to keep people away from the more fairly ranked top catagory.

I am just amazed you got a programmer to admit this pergatory zone effect was intended in the code. We have suspected it for years ! Thanks for providing the proof.

Now will you draw the necessary conclusions from the evidence you yourself have uncovered?

Look at the top stories on the banned original main reddit from 6 years ago called now r/reddit.com.

Full of activist political ground swells that literally changed the politics of the united states and countered huge money lobbying efforts by exposing millions of readers to these things they didn't hear about from the news media (by design)

Now look at the front page of reddit today. The new owners neutered reddit. As intended.

Its so overt that now many politcal subreddits specifcally ban "calls to action".

4

u/[deleted] Dec 10 '13

No shit. Reddit has been overrun with shills astroturfing their bullshit and mods censoring anything and everything

→ More replies (1)

3

u/HellfyrAngel Dec 10 '13

I thought it was a (admittedly lame) feature, not a bug, that if a post garnishes downvotes immediately, it's removed.

3

u/boringdude00 Dec 10 '13

God-damn Puffins, or as I like to call them miniature devil penguins.

→ More replies (1)

7

u/plus Dec 10 '13 edited Dec 10 '13

So, leaving interim stuff out, this is how the code reads, roughly:

order = log10(max(abs(s), 1))
if s > 0:
    sign = 1
elif s < 0:
    sign = -1
else:
    sign = 0
return round(order + sign * seconds / 45000, 7)

The author claims this is how it SHOULD read:

order = log10(max(abs(s), 1))
if s > 0:
    sign = 1
elif s < 0:
    sign = -1
else:
    sign = 0
return round(order * sign + seconds / 45000, 7)

Which, I fully admit, makes more sense. However, if the second is what the code is trying to do, it could be simplified considerably by doing the following:

order = log10(s)
return round(order + seconds / 45000, 7)

The fact that this is NOT what the official source code does implies to me that though they appeared to have swapped the '+' and '*' symbols, they actually intended the current functionality. Why else write it in the more complicated (and error-prone) fashion?

As ConeheadSlim2 points out below, you can't take a log of a negative number. Whoops!

20

u/ConeheadSlim2 Dec 10 '13

You do know that you can't take the logarithm of a negative number, right? That's why they test for being greater than 1 - the log of 1 is zero; anything less the log would be negative but the actual value would be positive. Totally not what you want.

→ More replies (5)

6

u/Delicious_Randomly Dec 10 '13 edited Dec 10 '13

The problem is that logarithms of negative numbers return imaginary numbers, all but one of which are undefined for computing purposes. Computers tend to react unpleasantly to non-zero imaginary numbers, hence all the trouble to take the absolute value of s and record the sign.

→ More replies (1)

5

u/Sierra_One Dec 10 '13

log's of negative numbers are undefined (or unreal if you want to do complex logs). Which would make it far more complicated actually.

3

u/[deleted] Dec 10 '13

You can't take the log of a negative number (or 0). What if s is -5? Enter that into a calculator.

That's why they need that if statement and sign variable.

Your code would blow up on any negative-vote submission.

3

u/buddhabuck Dec 10 '13

s is the score. log10(s) is only defined if s > 0 (and, since s is an integer, that effectively means if s is at least 1).

So a new posting, with no up or down votes, would crash reddit with "order = log10(s)". So would any posting with net negative votes.

So before the log, you have to take abs(s) to prevent taking the log of a negative number, and you have to special-case 0 to prevent taking the log of 0. That gives order = log10(max(abs(s),1), as in the code.

Unfortunately, log10(x) is only negative for 0<x<1, which will never be the case with a score that's an integer. So order is always positive.

It's (postulated) that it's desired that the order term should be positive when s is positive and negative when s is negative. Therefore, the sign needs to be computed so the order can be corrected. Hence, the whole rigamarole with the "if s>0..." bit to set the value of sign. Some languages have a sgn(x) function which basically does that, but apparently not the one reddit is written in.

Which basically gets us back to the code the OP claims is correct.

→ More replies (1)
→ More replies (5)