Subject: Re: Ruby performance woes
From: rpw3@rpw3.org (Rob Warnock)
Date: Sat, 26 Apr 2008 23:22:31 -0500
Newsgroups: comp.lang.lisp
Message-ID: <usmdnSaFi-oaYo7VnZ2dnUVZ_gWdnZ2d@speakeasy.net>
Robert Maas, <lisp1.3.CalRobert@SpamGourmet.Com> wrote:
+---------------
| Why not LHP (Lisp instead of Perl Hypertext Preprocessor)?
+---------------

Why not, indeed? See:

    http://rpw3.org/hacks/lisp/minimal.lhp
    http://rpw3.org/hacks/lisp/appsrv-demo.lhp

I've been using that filetype since 2000 or so for my "appsrv"
infrastructure [which does dynamic loading/compiling/caching of
Lisp source files which use HTOUT to emit HTML (though CL-WHO
or HTMLGEN should also work as well)].

+---------------
| Or from the other jargon starting point, why not LSP (Lisp instead
| of Java Server Pages)? OK, I see why we can't use LSP because it's
| ambiguous with LSP as alternative to LISP as file-extension for
| Lisp source files on MS-DOS/Windows systems that require
| three-character file-extensions...
+---------------

Well, the reason I avoided it myself is that when I was developing
"appsrv" there was already a Lisp-based server from some SRI folks
that was using[1] that filetype, namely, "Lisp Server Pages":

    http://www.cliki.net/Lisp%20Server%20Pages
    http://sourceforge.net/projects/lsp

Plus, the acronym LSP implies (correctly) that the pages are coded
in a style similar to ASP or JSP, that is, as native HTML with escapes
into code with some sort of "<% ... %>" brackets. I wanted to avoid
that association, since my pages would be "all Lisp" [see first two
URLs above].

So I went with "Lisp-Handled Pages" (LHP) instead.

Note: I certainly have no "lock" on LHP, any more than SRI has a "lock"
on LSP, see [2]; anyone is free to develop anything they want that uses
those filetypes. I *do* think it would be nice if the ones named LHP
used "pure Lisp" and the ones named LSP used "<% ... %>" escapes, just
to avoid confusion. [And, yes, I'm aware that by this convention PHP
should really be called "PSP". Foolish consistency, hobgoblins, etc.]


-Rob

[1] Hmmm... <http://sourceforge.net/forum/forum.php?forum_id=94130>
    says that the project was suspended as of 2001-06-24, though there
    seems to have been at least one more release on 2001-07-06 [to run
    under LispWorks on Windows].

[2] There's an example of coding up a lightweight LSP processor here:

        http://lemonodor.com/archives/000128.html
	http://lemonodor.com/archives/misc-gems/lsp/lsp.lisp.txt

-----
Rob Warnock			<rpw3@rpw3.org>
627 26th Avenue			<URL:http://rpw3.org/>
San Mateo, CA 94403		(650)572-2607