News for hackers. Stuff that matters.
Re:Probably the worst URL scheme ever by gcr on Thursday May 02, 2013 @10:37AM (#5644703)
Racket (arc's host language) keeps continuations on the filesystem, or you can write your own "stuffer" to do what you want with them (store them in a database or whatever). But you have to keep them somewhere or else (assuming the server uses continuations) you can't keep track of the user's path through your code as they click through links and such.

Racket does have an option to serialize the continuations, gzip them, sign them with HMAC, and then send all of that to the client so the server doesn't have to keep track of anything, but HN doesn't use it.

See http://docs.racket-lang.org/continue/#(part._.Advanced_.Cont... for a quick introduction.

Re:Probably the worst URL scheme ever by epochwolf on Thursday May 02, 2013 @11:59AM (#5645341)
HN doesn't use racket. It's a custom lisp based on scheme.
Re:Probably the worst URL scheme ever by gcr on Thursday May 02, 2013 @03:28PM (#5646622)
Sure it does. HN is written in "Arc":

https://github.com/wting/hackernews

Arc runs on Racket:

http://en.wikipedia.org/wiki/Arc_(programming_language)

See the "OS" section where it says "runs on the Racket compiler"

See also the Arc source code, https://github.com/Pauan/ar/blob/arc/nu/arc Note the "#lang racket" at the top.