|
Prev: Fas->Lsp Decompiler Project
Next: How to xor?
From: Emre Sevinc on 3 Jun 2005 09:39 A friend asks: "Hi, I am trying to write a simple web application in Common Lisp. The first problem was to interact with a database server. Thanks to Haldun Bayhantopcu's help, it is OK using CMUCL + CommonSQL. The second problem is that CommonSQL has support for only few Common Lisp interpreters and compilers. And those supported free ones does interestingly not support Shebang Characters for CGI execution. Thus I tried using modlisp for apache but that does not work as smooth as I expected. Does anyone has an opinion to cope with these problems? Once I get a simple "Hello World" web page through (format t "Hello World~%"), then everything will be simpler. vst" Any suggestions? -- Emre Sevinc eMBA Software Developer Actively engaged in: http:www.bilgi.edu.tr http://ileriseviye.org http://www.bilgi.edu.tr http://fazlamesai.net Cognitive Science Student http://cazci.com http://www.cogsci.boun.edu.tr
From: Fred Gilham on 3 Jun 2005 11:54 > The second problem is that CommonSQL has support for only few Common > Lisp interpreters and compilers. And those supported free ones does > interestingly not support Shebang Characters for CGI execution. Thus > I tried using modlisp for apache but that does not work as smooth as > I expected. If you google for Rob Warnock's postings to comp.lang.lisp you'll see that he has a method for dealing with this with CMU Lisp. I suspect and hope that he will chime in shortly anyway. :-) -- Fred Gilham gilham(a)csl.sri.com Central bankers don't trust each other. They know how easy it is to create money out of nothing. They hold dollar-denominated assets, such as U.S. Treasury-bills, because they can earn interest --- not much these days --- but they settle their final accounts with each other in gold. --- Gary North
From: Edi Weitz on 3 Jun 2005 12:02 On Fri, 03 Jun 2005 16:39:08 +0300, Emre Sevinc <emres(a)bilgi.edu.tr> wrote: > A friend asks: > > "Hi, > > I am trying to write a simple web application in Common Lisp. The > first problem was to interact with a database server. Thanks to > Haldun Bayhantopcu's help, it is OK using CMUCL + CommonSQL. CommonSQL is only available for LispWorks. Maybe he's using UncommonSQL but if that's the case he should switch to CLSQL. (CLSQL is a superset of UncommonSQL and the latter isn't maintained anymore.) > The second problem is that CommonSQL has support for only few Common > Lisp interpreters and compilers. Only a few? Which one are you missing? <http://clsql.b9.com/platforms.html> Jýrg Hýhle has just announced preliminary support for the CLSQL/CLISP combo. > And those supported free ones does interestingly not support Shebang > Characters for CGI execution. See Fred Gilham's reply. You could also use FastCGI with CMUCL: <http://www.cliki.net/FastCGI> > Thus I tried using modlisp for apache but that does not work as > smooth as I expected. > > Does anyone has an opinion to cope with these problems? Once I get a > simple "Hello World" web page through (format t "Hello World~%"), > then everything will be simpler. Try (shameless self-plug) TBNL - maybe it's easier to use than "raw" mod_lisp. (In fact, you don't have to use Apache/mod_lisp at all.) <http://weitz.de/tbnl/> Cheers, Edi. -- Lisp is not dead, it just smells funny. Real email: (replace (subseq "spamtrap(a)agharta.de" 5) "edi")
From: david.tolpin@gmail.com on 3 Jun 2005 14:02 > Does anyone has an opinion to cope with these problems? Once I get a > simple "Hello World" web page through (format t "Hello World~%"), then > everything will be simpler. > Common Lisp is such a great language that it does not need standard libraries. Everyone can write anything easily. I needed simple CGI too, so here is the one I cooked over the last weekend. Uses rfc2388, slightly hacked and fixed, and port (see README.txt) inside. Supports GET, POST/urlencode, POST/multipart. Runs with and includes examples for CLISP, CMUCL, Lispworks, OpenMCL. http://ftp.davidashen.net/misc/cgi.zip David
From: drewc on 3 Jun 2005 14:34
Emre Sevinc wrote: > A friend asks: > > Does anyone has an opinion to cope with these problems? Once I get a > simple "Hello World" web page through (format t "Hello World~%"), then > everything will be simpler. You don't want to use CGI at .. trust me : .. CGI is a hack at best. http://lisp.tech.coop/Web%20Programming lists some resources for web programming in CL .. i strongly suggest using UCW or TBNL with either mod_lisp or aranieda ... you'll never even thing about CGI and hash-bang again : drewc > > vst" > > Any suggestions? > -- Drew Crampsie drewc at tech dot coop "Never mind the bollocks -- here's the sexp's tools." -- Karl A. Krueger on comp.lang.lisp |