Arc Forumnew | comments | leaders | submitlogin
5 points by akkartik 4884 days ago | link | parent

There is no database. news.arc stores its data in files under newsdir:

http://github.com/nex3/arc/blob/76a61293bc/news.arc#L73

Stories and comments are templates (http://files.arcfn.com/doc/template.html) and each of them is stored in a separate file:

http://github.com/nex3/arc/blob/76a61293bc/news.arc#L166

html is indeed codegenerated. See display-items, newpoll-page, etc.

pg has said in a few places that as load has grown, HN has cached commonly-requested data just enough to keep performance mediocre. Arc helps flexibly-yet-declaratively specify what to cache and when to evict it. Look at instances of defcache, then at its implementation. There's probably other sorts of caching; this code is several years old and we don't know how it's been changed as HN has grown.

"How are requests being handled?"

I don't know enough about what you know to answer usefully. Are you aware of defop?

http://github.com/nex3/arc/blob/76a61293bc/srv.arc#L196

It registers functions to handle different kinds of urls:

http://github.com/nex3/arc/blob/76a61293bc/srv.arc#L234