I have written some sample codes that you can download there:<a target="_blank" rel="nofollow" href="https://11462506672224665538-a-g.googlegroups.com/web/date-to-week_schemedemo.tar.bz2?gda=NG9A-VEAAAC9ndr1Z8o0b0uTApg2U4-wA7ogqAb8mTD66COxjSQE2Mi2vCbyU7oeSbd2-_8TjcViliHgCTIOr1-jmw_h8uDrUwk_6Qi3BU8HCN0q6OYwM5VxXgp_nHWJXhfr7YhqVgA">date-to-week_schemedemo.tar.bz2</a> <a target="_blank" rel="nofollow" href="https://11462506672224665538-a-g.googlegroups.com/web/tcp-server-output.tar.bz2?gda=yyJjDksAAAC9ndr1Z8o0b0uTApg2U4-wqmREnFlJFpJZbieJJO9BGgV649tRpMK-9cHJ_MAl76alzxq9cExplKT6xVxNIvSaBkXa90K8pT5MNmkW1w_4BQ">tcp-server-output.tar.bz2 </a><br>
<br>hope can help!<br><br><div class="gmail_quote">On Mon, Mar 15, 2010 at 10:51 AM, Reginaldo J. S. Filho <span dir="ltr"><<a href="mailto:xregis@gmail.com">xregis@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">
<div><div>Hi. I'm somewhat new to Scheme, but not a complete newbie. I've gone</div><div>through HtDP and read many parts of the Guide and Reference that come</div><div>with PLT Scheme. In practical terms, I'm reasonably comfortable with</div>
<div>writing small to mid-sized programs with PLT, like command-line</div><div>utilities, games and the like.</div><div><br></div><div>Currently, I'm in the process of developing a web app to run on the</div><div>PLT web server. The main benefit for me is the fine-grained control</div>
<div>supplied by the continuation-based framework, which allows me to think</div><div>as if I was doing "regular" programming (no inversion of control</div><div>because of HTTP).</div><div><br></div><div>I've seen (and implemented on my on) many of the examples I could</div>
<div>find, which means:</div><div><br></div><div>1) The blog app from the "Continue" tutorial;</div><div>2) ListIt, by Jens Axel Søgaard;</div><div>3) pltwitter.plt, by Jay McCarthy</div><div><br></div><div>They are all fine examples, but aren't enough to give me a feeling,</div>
<div>for instance, how I should structure code that will be deployed to</div><div>production.</div><div><br></div><div>For instance, the blog app and ListIt (as shown in MacCarthy's blog)</div><div>all produce html, using xexpr format, straight from the controller</div>
<div>code. In principle I have nothing against it, but I suspect that for</div><div>big applications it wouldn't work so well. Besides, one can't easily</div><div>output doctypes using the standard xexpr only, and the code is not</div>
<div>"pretty-print" in the browser. I was able to find a way around the</div><div>doctype issue using tips from the following posts:</div><div><br></div><div><a href="http://www.topmost.se/personal/articles/web-programming-with-plt-scheme/serving-xhtml.htm" target="_blank">http://www.topmost.se/personal/articles/web-programming-with-plt-scheme/serving-xhtml.htm</a></div>
<div><a href="http://www.topmost.se/personal/articles/web-programming-with-plt-scheme/custom-dispatchers.htm" target="_blank">http://www.topmost.se/personal/articles/web-programming-with-plt-scheme/custom-dispatchers.htm</a></div>
<div><br>
</div><div>Anyways, for bigger application I'm sure it would be better to use</div><div>templates, but still have some questions.</div><div><br></div><div>* In practical terms, how do I use apache with the plt-web-server?</div>
<div> Should I just proxy the requests or use apache to serve static files</div><div> too? I suspect apache's performance is better for static files, but</div><div> don't have means to know if the added complexity (in terms of</div>
<div> configuration) pays off.</div><div><br></div><div>* Are there any bigger open source web apps written for PLT that you</div><div> can point me to?</div><div><br></div><div>* Are there any practical guides on how to deploy an application to</div>
<div> production? It seems the server can be configured in many different</div><div> ways, and that's a good thing. On the other hand, as a beginner, I</div><div> feel overwhelmed with so many options.</div><div><br>
</div><div>* Are there any connection-pool-style packages that let me connect to</div><div> PostgreSQL with minimal hassle?</div><div><br></div><div>* How well do JQuery, prototype, and the like, fit together with Scheme </div>
<div> code?</div><div><br></div><div>Thanks from Brazil,</div><div><br></div><font color="#888888"><div>Reginaldo</div></font></div>
<br>_________________________________________________<br>
For list-related administrative tasks:<br>
<a href="http://list.cs.brown.edu/mailman/listinfo/plt-scheme" target="_blank">http://list.cs.brown.edu/mailman/listinfo/plt-scheme</a><br>
<br></blockquote></div><br><br clear="all"><br>-- <br>GNU powered it...<br>GPL protect it...<br>God blessing it...<br><br>regards<br>HFG--Shawn the R0ck<br>