? mod_newlisp

Started by nigelbrown, July 18, 2004, 07:10:32 PM

Previous topic - Next topic

nigelbrown

I see scheme has a flavour:



[032] - mod_scheme 0.3.3

  by rahul (http://freshmeat.net/users/bluFox/">http://freshmeat.net/users/bluFox/)

  Fri, Jul 16th 2004 14:03



Internet :: WWW/HTTP :: HTTP Servers



About: mod_scheme is a Scheme module for Apache. It embeds  the Tinyscheme interpreter, and makes the functions  exported by the Apache Web server available to Scheme  programs.



Changes: The Scheme interpreter used by mod_scheme has been updated to the 1.35 release of tinyscheme. Issues with Unix compilation have been resolved. There are other minor bugfixes and cleanups.



License: The Apache License



URL: http://freshmeat.net/projects/mod_scheme/">http://freshmeat.net/projects/mod_scheme/



Would it be worth NewLisp being able to do that?



Regards

Nigel

nigelbrown

#1
I see a mod_lisp for common lisp exists

http://www.fractalconcept.com/asp/EZr2/sdataQ0cwRSxMcqxqDM==/sdataQuvY9x3g$ecX">http://www.fractalconcept.com/asp/EZr2/ ... vY9x3g$ecX">http://www.fractalconcept.com/asp/EZr2/sdataQ0cwRSxMcqxqDM==/sdataQuvY9x3g$ecX



perhaps it will interact with a newlisp server just as well as cl?

(I've not looked at the protocol yet - someone may like to)



Nigel

Lutz

#2
It may not bring much speed improvement for newLISP because of its fast load time.



Lutz

nigelbrown

#3
I was thinking  just of visibility to web developers rather than technical advantage.

Nigel

Lutz

#4
I understand, will have a look



Lutz

Lutz

#5
I was looking into it this evening ... too involving, not something for me to think of in the near future, perhaps somebody else comes along and does it.





Lutz

nigelbrown

#6
I'll have a further look. My initial impression of mod_lisp was that the example code on the site was too strongly full Common Lisp (CL) with protect-unwind's etc but perhaps a lot of that could go.



I'm also considering a "Common Lisp Compatibility Layer" maybe as a CLCL context that would be syntactic sugar mainly to let newlisp's slightly differently named functions to provide CL named functions (eg map vs mapcar). Not the whole of CL, of course, but maybe enough to let most of one of the major introductory CL textbook's examples run - this could help towards reusing mod_lisp example code.



Regards

Nigel



PS If anyone has a wish list of newlisp to CL name mappings feel welcome to put them in a reply in this thread

Lutz

#7
I am not sure if newLISP can (should) ever please CL programmers, philosophically there are worlds between the two :).



Lutz

nigelbrown

#8
I think beginners could find newlisp less daunting - I own a copy of Corman Common Lisp and have Clisp installed but usually use newlisp which more suits my scale of programming. Newlisp has a vocabulary (sounding a bit FORTHy there) that fits comfortably into my memory (head).

Regards

Nigel

newdep

#9
I think a mod version of newlisp for apache sounds good but perhpas we could start with a more protected newlisp cgi version (running in a chroot environment).. That way its also able to run with other webservers in a more

secure way...



Bringing newlisp to the world is a great adventure and i think newlisp will

be discovered because it has great potention as a scripting/programming

language... more advertisement this year is my motto ;-)



Just a tought... Norman.
-- (define? (Cornflakes))

stevegio

#10
Quote from: "Lutz"It may not bring much speed improvement for newLISP because of its fast load time.



Lutz


You have to think of it in terms of what it does to the overall system environment.  Just because you have a fast startup time doesn't mean its virtually free for each invocation.  Starting a simple C application is fast but having a CGI written in C being called hundreds of times a second on a web server starts to make the OS cranky.  That's why things like FastCGI were invented. Then when Perl showed up we got mod_perl. Sorry I'm showing my age here.