Re: Ring: A Web application library for Clojure.

2009-01-13 Thread James Reeves
On Jan 14, 12:35 am, "Mark McGranaghan" wrote: > For Ring, the HttpServlet API is a means to an end, not an end in > itself. The interface that Servlets present for parameter parsing and > session handling are too flawed to merit their inclusion as default > choices for Ring apps and the binding

Re: Ring: A Web application library for Clojure.

2009-01-13 Thread Mark McGranaghan
> It seems to me that Ring's approach works well if there's the > possibility of implementing Ring using technology other than Servlets. > In this case, it makes sense for Ring to act as a minimum common > interface. But if this isn't your goal, then you're just removing > functionality for aesthe

Re: Ring: A Web application library for Clojure.

2009-01-13 Thread James Reeves
On Jan 13, 9:56 pm, "Mark McGranaghan" wrote: > I choose not include the parameters, cookies, and sessions features > from the Servlet API because I'm not confident that the interfaces > presented by Servlets in these cases will be acceptable to all Ring > applications. For example, different Rin

Re: Ring: A Web application library for Clojure.

2009-01-13 Thread Mark McGranaghan
Hi James, Thanks for taking the time to check out Ring. > The HttpServlet API provides methods for > parameters, cookies and sessions, but these are absent from Ring. I > notice that in your weld framework, you implement these pieces of > functionality in Clojure, but why? I can understand keepi

Re: Ring: A Web application library for Clojure.

2009-01-13 Thread James Reeves
On Jan 13, 4:45 am, Mark McGranaghan wrote: > In terms of Clojure web frameworks, I think that there is a lot to be > gained by leveraging the Ring interface, especially from the modular > functionality provided by Ring middleware. I'd like in particular to > be able to run Compojure apps in Ring

Re: Ring: A Web application library for Clojure.

2009-01-13 Thread Meikel Brandmeyer
Hi Kees-Jochem, Am 13.01.2009 um 12:41 schrieb Kees-Jochem Wehrmeijer: This looks really cool. I've actually been experimenting with exactly the same thing. One thing I thought about (but didn't implement), was using some kind of lazy hash map, for the request, so that it only calls the methods

Re: Ring: A Web application library for Clojure.

2009-01-13 Thread Kees-Jochem Wehrmeijer
This looks really cool. I've actually been experimenting with exactly the same thing. One thing I thought about (but didn't implement), was using some kind of lazy hash map, for the request, so that it only calls the methods (like getServerPort) if you need them. I don't really know how hard or ea