News for hackers. Stuff that matters.
Re:How can C Programs be so Reliable? (2008) by AceJohnny2 on Thursday December 05, 2013 @04:29PM (#6857397)
The thing is, the "more" links are specific to each user and generated page. They're not just "page 3 at the time you click on the link", but the actual next 30 links following the 30 it's previously shown you. As a result, it needs to store state for each of these links it's created (IIRC, the fnid is a reference to the closure containing that state). For obvious memory management purposes, these need to be expired after some time.

I agree that it's an odd implementation choice though. I guess it made sense when HN was smaller and it could grant more ressources to each user. Nowadays, Reddit's simpler system (with risks of duplicates or missing rising links as you go deeper) would probably make more sense.

Re:How can C Programs be so Reliable? (2008) by mikeash on Thursday December 05, 2013 @04:49PM (#6857522)
I understand that it's a tough problem and can totally understand solving it by just making the links quit working like that. But that sort of thing doesn't strike me as "good", even if it is highly pragmatic.
Re:How can C Programs be so Reliable? (2008) by pkolaczk on Friday December 06, 2013 @07:30AM (#6860750)
And why not store that state on the client? 30 serialized ids is not that much.