3 ms·
The architectural model your comment and the initial post assumes to underlay the behavior is incorrect. The reason for 'Unknown or Expired Link' is that HN ru
by brudgers 13y ago
The architectural model your comment and the initial post assumes to underlay the behavior is incorrect.
The reason for 'Unknown or Expired Link' is that HN runs on a webserver that uses continuations to maintain state. The continuations are stored in a table and based on load individual table entries get flushed to make room for new entries as needed. The message is actually always the result of an unknown link because the hash is no longer in the table.
Your experiment worked because the relevant continuation [state reference] was available after disconnect e.g. the 'route' so to speak was still valid.
Now obviously one might wonder why HN works this way. The reason is that the HN codebase came about as a way of field testing Arc [Graham's 100 year language]. Until rather recently, HN ran on a single server. It still uses relatively few lines of code.
- acdha 13y ago> Now obviously one might wonder why HN works this way. The reason is that the HN codebase came about as a way of field testing Arc [Graham's 100 year language]. This is really the key point: continuations are the wrong way to write this kind of application. It's significantly more work and there's no benefit from doing so but it allowed someone to test a pet idea and, having done so, fixing it would mean admitting that doing something because it's cool isn't good engineering.
- brudgers 13y agoThe kind of application is specifically Hacker News, not a generic website or webserver. See the essay linked here for what kind of application this is: https://news.ycombinator.com/item?id=7651525 https://news.ycombinator.com/item?id=7651525
- acdha 13y agoContinuations are a questionable fit for web applications in general, however. HTTP is stateless and it requires a lot of extra work to build an abstraction which pretends otherwise. I prefer to embrace that from the beginning so the entire design matches the nature of the medium.
- brudgers 13y agoThe explanation is mine. It wasn't an argument. The application and implementation decisions are YC's. The essay explains their rationales.
- nwh 13y agoI know, I was demonstrating why that given explanation couldn't be true.