4 ms·
Because they take up ram on the server. 20 minutes is standard session timeout for most session based web frameworks.
by gnaritas 19y ago
Because they take up ram on the server. 20 minutes is standard session timeout for most session based web frameworks.
- phaedrus 19y agoI wonder - would it be technically feasible to page the continuations out to temporary files on the server? Kind of like cookies, but on the server instead of the client!
- shiro 19y agoTechnically possible. There are a few Scheme implementations that have persistent continuation (all I know is JVM based ones). Also this page contains a link to the slides that talks about persistent delimited continuation in OCaml: http://logic.cs.tsukuba.ac.jp/Continuation/program.html http://logic.cs.tsukuba.ac.jp/Continuation/program.html Making continuations serializable may cost its implementation, so whether it scales well for yc.news is anothoer question. I don't know the answer for it.
- LogicHoleFlaw 19y agoIn lua at least, continuations have a 1k stack overhead in memory per continuation. I believe they are serializable as well... I'll have to double-check that. At 1k+ a pop they're not cheap, but are manageable. Having my tabs open last for a couple of days instead of 30 minutes would make the site more pleasant for me.
- axod 19y agoReason enough not to use a 'session based web framework'. If PHP can do it...