News for hackers. Stuff that matters.
Re:Poll: petition for HN improvements by axod on Wednesday May 21, 2008 @01:15PM (#196253)
I don't understand why there should be any timeout for #1.
Re:Poll: petition for HN improvements by mojuba on Wednesday May 21, 2008 @01:43PM (#196308)
Here is my guess: because it's Arc with closures and web closures have a timeout. It can be long or short, but hardly infinite.
Re:Poll: petition for HN improvements by axod on Wednesday May 21, 2008 @01:51PM (#196316)
If that's the case, closures don't seem like a good idea in this sort of context.
Re:Poll: petition for HN improvements by mojuba on Wednesday May 21, 2008 @01:56PM (#196320)
But you are not going to write a comment infinitely, are you? Wouldn't 12 hours be OK, for example?

It's about memory allocated for the hash table. If they add some RAM and change the timeout to 12 hours you won't even notice what's going on under the hood.

And closures are nice from programming perspective. Should I say it's almost definitely the future of server-side development... ;)

Re:Poll: petition for HN improvements by ken on Wednesday May 21, 2008 @02:15PM (#196352)
This isn't about closures. This is about using continuations on the server to store client state.

Surely they could come up with some way to store trivial state in the URL's GET params, without making life too miserable for the programmers.

Nearly 10 years ago, Nielsen wrote about "URL as UI" <http://www.useit.com/alertbox/990321.html>. URLs that break after an indeterminate time are not good UI.

Re:Poll: petition for HN improvements by mojuba on Wednesday May 21, 2008 @02:23PM (#196365)
You are right, I meant continuations, sorry.

HN is using URLs for passing those hash keys (if they are hash keys of course), but they need to store them on the server as well. So URLs themselves don't solve the problem in this case.

It's actually that HN doesn't use databases, where they could keep session-specific data much longer.

Re:Poll: petition for HN improvements by natrius on Wednesday May 21, 2008 @02:19PM (#196358)
If you look at the URLs for voting on comments, they aren't using continuations. I don't see any reason why comments should.
Re:Poll: petition for HN improvements by mooneater on Wednesday May 21, 2008 @02:53PM (#196403)
The reply link I used to add this comment, had timed out, which seems wrong.

Have continuations just moved the the complexity -- making some aspects more elegant, while resulting in undesired side effects like expiring reply links?

I find that often happens when I'm designing abstractions - complexity moves somewhere else, and I later get unexpectedly bitten.

Re:Poll: petition for HN improvements by run4yourlives on Wednesday May 21, 2008 @02:18PM (#196357)
It's a trade off for running the entire app in memory.