4 ms·
First off, I like the elegancy of the CPS approach, however... The continuation-passing approach doesn't scale. Not only to multiple machines, as papersmith p
by ralph 19y ago
First off, I like the elegancy of the CPS approach, however...
The continuation-passing approach doesn't scale. Not only to multiple machines, as papersmith points out, but on a single machine. news.yc has (had?) problems with a theoretical DoS which pg has acknowledged in email: http://news.ycombinator.com/comments?id=18083 http://news.ycombinator.com/comments?id=18083 (post formatting corrupted by pg hiding then unhiding the post).
Dave Roberts has an interesting write-up of the approach: http://www.findinglisp.com/blog/2004/11/web-application-design-rest-of-story.html http://www.findinglisp.com/blog/2004/11/web-application-design-rest-of-story.html In email he said that talking about it with pg one time, pg made clear that for Viaweb it was only used for the web site the merchants accessed, not the many hoards of customers who accessed "normal" links, and only the links on the current page for that merchant worked, i.e. if you pressed the browser's Back button all the links on that old page were broken and the server would just present you with the current page again. In summation Dave said if your site is small enough continuations may work fine, but if it's meant to be the next big thing use REST and I agree.