4 ms·
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 func
by hasenj 16y ago
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/msg00681.html http://people.csail.mit.edu/gregs/ll1-discuss-archive-html/m...
http://lib.store.yahoo.net/lib/paulgraham/bbnexcerpts.txt 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.