Page 1 of 1

New library: cl-php

Posted: Mon Dec 08, 2008 3:43 pm
by JamesF
I've been promising this for ages, so it's time I got off my butt and published it. Partly, I've been stung into action by Gary King's post: http://metabang.com/unclogit/?p=389

The idea is to abstract away some of the lower-level stuff, so that writing web applications in Common Lisp can become as easy as writing them in PHP, which is currently a fair and valid criticism.
So far, it's been driven entirely by what's needed by the sites I've been writing, so it's only guaranteed to work on SBCL on Linux. There's an awful lot of error-resistance that needs adding, and it's currently totally without documentation or examples, but it's a start and you're welcome to play with it if you wish. It's under the LLGPL; while I'm willing to listen to arguments as to why that should be changed to, say, the BSD license, I'm very keen on the idea of the code staying free.

It's available from: http://www.electronic-quill.net/lisp/

Re: New library: cl-php

Posted: Mon Dec 08, 2008 6:11 pm
by Paul Donnelly
What relationship does it have to PHP?

Re: New library: cl-php

Posted: Mon Dec 08, 2008 7:05 pm
by JamesF
Paul Donnelly wrote:What relationship does it have to PHP?
The domain of web application development, and (in intention, at least) the ease of getting started, particularly wrt database connectivity. Beyond that, nothing whatsoever.

Methinks a name-change is in order; suggestions will be welcomed :)

Re: New library: cl-php

Posted: Tue Dec 09, 2008 12:27 pm
by Paul Donnelly
JamesF wrote:
Paul Donnelly wrote:What relationship does it have to PHP?
The domain of web application development, and (in intention, at least) the ease of getting started, particularly wrt database connectivity. Beyond that, nothing whatsoever.
What I thought. How about LHP (LHP Hypertext Preprocessor)? :|

It's great to see a modern library ecosystem appearing around CL.

Re: New library: cl-php

Posted: Tue Dec 09, 2008 1:01 pm
by mijokijo
Woah woah hey woah!

What about CL-ROR? 8-)

If you are looking for a recursive acronym as proposed above, how about CL-LNP (LNP is no PHP)?

Re: New library: cl-php

Posted: Wed Dec 10, 2008 3:24 pm
by JamesF
Paul Donnelly wrote:How about LHP (LHP Hypertext Preprocessor)?
I'd go for that if I were mixing lisp in with HTML markup, but that's more what CL-EMB (http://common-lisp.net/project/cl-emb/) does. I haven't tried that library yet, but it could well be feasible to add it to this one and get something that lived up to the name LHP much more closely.

Re: New library: cl-php

Posted: Wed Dec 10, 2008 3:28 pm
by JamesF
mijokijo wrote:What about CL-ROR?
Oddly enough, I'm vaguely tempted to head in that direction; could be an interesting counterpoint to Lisp on Lines.
mijokijo wrote:What about CL-ROR?
If you are looking for a recursive acronym as proposed above, how about CL-LNP (LNP is no PHP)?[/quote]
That could work, though I honestly do think the world is amply supplied with recursive acronyms.

I'm actually tempted to follow in the traditions of Napster and Bibble, and name it Elizabeth, after one of our cats (I've already split out two separate libraries called Edgar and Oscar in the same way).