News for hackers. Stuff that matters.
Re:Ask HN: "Unknown or expired link." by hasenj on Friday April 15, 2011 @09:00AM (#2450373)
PG mentioned somewhere that when he was doing Viaweb, he was storing functions on the server side in a hash table, so that most urls work by invoking these functions. This was his way of remembering state between url visits.

It seems that functions expire from this hashtable after a while.

I think that might have seemed like a good idea in 1998, but these days I think it's just pointless.

http://people.csail.mit.edu/gregs/ll1-discuss-archive-html/m...

http://lib.store.yahoo.net/lib/paulgraham/bbnexcerpts.txt

  > One of the problems with using Web pages as a UI is the inherent
  > statelessness of Web sessions.  We got around this by using lexical
  > closures to simulate subroutine-like behavior.  If you understand
  > about continuations, one way to explain what we did would be to
  > say that we wrote our software in continuation-passing style.

There are no comments on this comment yet.