There's nothing stopping you from creating sessions for users who aren't logged in. Photobucket does it for sure.
Except for sanity. Are you sure they do it with server-side sessions, and not with cookies, like every other sane site out there?
I mean, all right, different strokes for different folks, but I would never associate a heavy as shit non-reified persistent activation record of a function with each of several buttons on a page that I show to everyone. That's a fun think to do for your pet rat's homepage, it's "elegant" (in a certain totally divorced from reality kind of way), but that's not how you do things with a public forum dedicated to sucking less at programming, as a community. In my humble opinion.
that's not how you do things with a public forum dedicated to sucking less at programming, as a community. In my humble opinion.
What's the concrete consequence you're concerned about? Every public site gets plenty of traffic from bots, somehow Hacker News survives those and performs fine for its intended purpose, and has done so for years, on a single server - actually, on a single process on a single core.
I would never associate a heavy as shit non-reified persistent activation record of a function with each of several buttons on a page that I show to everyone.
Btw, closures and in Scheme (which is what HN is built on) are, in fact, reified by default; and to obtain a reference to a continuation to use the way you're describing, you have to reify it with the call/cc function. "Unreified" would be something like a raw C-style stack.
1
u/moor-GAYZ Mar 11 '13
You create them only for logged in users, and only one per user.
This shit is just
insaneLisp genius.