Re: [racket] web server: module servlets

2014-09-26 Thread Jay McCarthy
Hi George, I suggest that all Racket web-server apps not use the dynamic features of serve/servlet either, but instead write the servlet as the single "request -> response" function that serve/servlet provides. This would ensure that all the libraries are loaded the one time and has the best perfo

Re: [racket] web server: module servlets

2014-09-25 Thread George Neuner
On 9/25/2014 6:26 PM, Jay McCarthy wrote: web-server/servlet is NOT shared, nor is any net library or common racket library like racket/list. They are all totally unique per servlet. This, by the way, is part of why I don't recommend using dynamic servlets at all and suggest using serve/servlet.

Re: [racket] web server: module servlets

2014-09-25 Thread Jay McCarthy
On Thu, Sep 25, 2014 at 4:34 PM, George Neuner wrote: > Hi Jay, > > On 9/25/2014 1:04 PM, Jay McCarthy wrote: > >> If a Racket library is deliberately put into the servlet-namespace, does >> that streamline linking? > > Your assumption about the purpose of this is not correct. Anything in > the se

Re: [racket] web server: module servlets

2014-09-25 Thread George Neuner
Hi Jay, On 9/25/2014 1:04 PM, Jay McCarthy wrote: > If a Racket library is deliberately put into the servlet-namespace, does > that streamline linking? Your assumption about the purpose of this is not correct. Anything in the servlet-namespace will be shared between all servlets, and thus not l

Re: [racket] web server: module servlets

2014-09-25 Thread Jay McCarthy
On Thu, Sep 25, 2014 at 12:51 PM, George Neuner wrote: > Hi Jay, > > On 9/23/2014 10:03 PM, Jay McCarthy wrote: > > The command-line tool is basically deprecated and only provided for > backwards compatibility. There is a huge amount that it can't do at > all and it hasn't been the primary way tha

Re: [racket] web server: module servlets

2014-09-25 Thread George Neuner
Hi Jay, On 9/23/2014 10:03 PM, Jay McCarthy wrote: The command-line tool is basically deprecated and only provided for backwards compatibility. There is a huge amount that it can't do at all and it hasn't been the primary way that we recommend using the Web server for a very long time. I'm not

Re: [racket] web server: module servlets

2014-09-23 Thread Jay McCarthy
On Tue, Sep 23, 2014 at 9:19 PM, George Neuner wrote: > Hi Jay, > > On 9/23/2014 6:04 PM, Jay McCarthy wrote: > > On Tue, Sep 23, 2014 at 4:42 PM, George Neuner wrote: >> >> 1) Is there any way to speed up initial [module] servlet loading? > > This is why I recommend that new users use serve/serv

Re: [racket] web server: module servlets

2014-09-23 Thread George Neuner
Hi Jay, On 9/23/2014 6:04 PM, Jay McCarthy wrote: On Tue, Sep 23, 2014 at 4:42 PM, George Neuner wrote: > > 1) Is there any way to speed up initial [module] servlet loading? This is why I recommend that new users use serve/servlet, which is much faster because it does not use namespaces or liv

Re: [racket] web server: module servlets

2014-09-23 Thread Jay McCarthy
On Tue, Sep 23, 2014 at 4:42 PM, George Neuner wrote: > Hi, > > I'm using 6.0.1 and I have a couple of questions regarding module > servlets. I'm new to the server side of Racket so please be gentle. > > > 1) Is there any way to speed up initial servlet loading? Even for a > very simple servlet