FastCGI for SBCL?

Discussion of Common Lisp

FastCGI for SBCL?

Postby findinglisp » Sat Jun 28, 2008 8:52 am

Does anybody know if there is a FastCGI library for SBCL? I looked on Cliki (http://www.cliki.net/FastCGI) and there appear to be two options, one for CLISP and one for CMUCL. I believe the CLISP option is pretty CLISP-specific. Given the socket differences between CMUCL and SBCL, I'm guessing that won't work right out of the box either. Has anybody used anything successfully with SBCL? If not, it seems like the best option would be to port Teemu Kalvas's CMUCL version to SBCL.

I'm sure that somebody will quickly point out that I don't need FastCGI because mod_lisp exists. Well, yes, but that's only an option if you're running Apache. For what it's worth, I think mod_lisp was a bad idea. It isn't really mod_lisp in the style of mod_perl or mod_python where you're actually running the language interpreter inside the Apache process. It's little more than yet-another-CGI-like interface, except it implements its own protocol and doesn't work with anything other than Apache. Or am I missing something?

-- Dave
Cheers, Dave
Slowly but surely the world is finding Lisp. http://www.findinglisp.com/blog/
findinglisp
 
Posts: 440
Joined: Sat Jun 28, 2008 7:49 am
Location: Austin, TX

Re: FastCGI for SBCL?

Postby jmbr » Sat Jun 28, 2008 9:02 am

There's http://tehran.lain.pl/stuff/fcgi-current.tar.bz2 (currently unreachable for me) which is described as "FastCGI app protocol implementation for Common Lisp. Works at about 75% of libfcgi's performance for native code compilers."

Hope this helps
User avatar
jmbr
 
Posts: 3
Joined: Sat Jun 28, 2008 2:57 am
Location: Madrid, Spain

Re: FastCGI for SBCL?

Postby findinglisp » Sat Jun 28, 2008 9:11 am

Perfect! That's just what I was looking for. I'll see if the site comes back shortly and try to nab it. Thanks much. :D
Cheers, Dave
Slowly but surely the world is finding Lisp. http://www.findinglisp.com/blog/
findinglisp
 
Posts: 440
Joined: Sat Jun 28, 2008 7:49 am
Location: Austin, TX

Re: FastCGI for SBCL?

Postby nklein » Sat Jun 28, 2008 9:49 am

I was looking for the same a few months back. That site's been down every time I have checked.

I started to roll my own, but got sidetracked by shinier problems.
nklein
 
Posts: 12
Joined: Sat Jun 28, 2008 9:13 am
Location: Minneapolis, Minnesota, USA

Re: FastCGI for SBCL?

Postby rsynnott » Sun Jun 29, 2008 8:49 am

Another option would be to use Hunchentoot or something, and then have your frontend server proxy requests.
rsynnott
 

Re: FastCGI for SBCL?

Postby Wodin » Sun Jun 29, 2008 9:10 am

Wodin
 
Posts: 56
Joined: Sun Jun 29, 2008 8:16 am

Re: FastCGI for SBCL?

Postby findinglisp » Sun Jun 29, 2008 11:01 am

Wodin wrote:I think you can use mod_lisp with lighttpd too.

See also:
http://objectmix.com/lisp/256388-mod_lisp-over-cgi.html
http://xach.livejournal.com/144475.html


Hmm... I might investigate whether mod_lisp works for lighttpd. It boggles my mind, however, that the rest of the world is moving to FastCGI for just about everything out-of-process on the web server and there doesn't exist a good FastCGI library.
Cheers, Dave
Slowly but surely the world is finding Lisp. http://www.findinglisp.com/blog/
findinglisp
 
Posts: 440
Joined: Sat Jun 28, 2008 7:49 am
Location: Austin, TX

Re: FastCGI for SBCL?

Postby ryepup » Mon Jun 30, 2008 7:07 am

We use apache and mod_proxy to send some requests to a running sbcl (running ucw listening on a 127.0.0.1 port), and use apache to serve other static content (images, css, js) and handle LDAP auth. We started out with mod_lisp, but found it gave little performance benefit over using mod_proxy, and introduced extra complexity, so we dumped it.

Xach has a post on his blog on this topic that has a lot of useful comments:
http://xach.livejournal.com/144475.html
ryepup
 
Posts: 2
Joined: Mon Jun 30, 2008 6:28 am

Re: FastCGI for SBCL?

Postby xma » Mon Jul 28, 2008 3:10 pm

I am curious how you did that: I am struggling hard with lighttpd and mod_proxy. Currentyl it is just a no-go for me :( mod_lisp and apache2 are overkill for my needs.

Would you mind explaing how you did that ?
xma
 
Posts: 14
Joined: Mon Jul 28, 2008 6:36 am
Location: France


Return to Common Lisp

Who is online

Users browsing this forum: Yahoo [Bot] and 3 guests

cron