Hi everyone.
Thanks again for all the replies.
David, would you mind sharing your code so we can have a look at it.
I will be primarily concerned with writing code on Linux, not Windows, so the idea is to get it working on Linux first and then on Windows. Both platforms will be supported. Its just that Linux has priority for any platform-specific (non-portable) code.
I would like to know what Linux distros are used by everyone else. This is just something interesting. I am using Zenwalk and Arch Linux.
I am familiar with OOP because most of the languages I use regularly support OOP. I would like to do things the Scheme way for the web framework. Are there any suggestions as to what paradigm the framework should support by default. I don't have any particular attachments to OOP. I believe in the right tool for the right job. But I am interested in doing everything the Scheme way, so if there is a better way to do something in Scheme, I will do it that way :) .
I have also had a look at Meroon (an object system for Scheme ;) ). I like the MVC pattern because it is suited especially for web development. This is the pattern that I had in mind for the web framework. Any ideas in this are are also much appreciated.
I have also had a look at HOP. It is very interesting and I think I can learn a lot from them and have a look at how they do things. They seem to be on the track that we are on (or the other way around :) ). But it seems that porting the code might be an issue as the code is very Bigloo-specific. I think we can use their ideas, but we are going to do our own implementation.
As far as javascript libraries go, I have been working with Scriptaculous and Prototype for a while now. Prototype is very straight-forward to work with. This is also the same javascript libraries used by Rails. Any suggestions here are much appreciated. The web framework should make it easy for anyone to hook-in their own javascript library of choice.
On the name of the web framework, I do like the name "Scheme on Skis", but I have to agree with Guillaume. We should try to keep things original. So any suggestions on naming our web framework are welcome. However, I do like the word-play in Scheme on Skis.
I will be creating a document describing the decisions that are made regarding the web framework. I will post this on the website which I will be finishing in the next week or so. I use OpenOffice for all my documentation.
On a totally different note, how can I read user input from the console in Gambit. I am using *read-line* to read the input, but I need a function that blocks and waits until the user enters some text. I then need the entire input text as a string to work with it.
Thank you so much for everyone's quick responses and interest in this project.
Rouan
___________________________________________________________ Yahoo! Answers - Got a question? Someone out there knows the answer. Try it now. http://uk.answers.yahoo.com/
Afficher les réponses par date
On 11/3/07, Rouan van Dalen rvdalen@yahoo.co.uk wrote:
David, would you mind sharing your code so we can have a look at it.
Probably. I want to finish the CGI interface module first so that I can run a complete "Hello World" behind my shared-hosting service's Apache. This is really a required configuration (along with FastCGI) for real-world web-app deployment in smaller organizations (e.g. my current project). I'm hoping to finish that today, so I'd imagine releasing it by Wednesday perhaps. I *so* hate to commit to anything other than Real Soon Now when I'm not getting paid :)
david rush
On 3-Nov-07, at 11:48 AM, David Rush wrote:
Probably. I want to finish the CGI interface module first so that I can run a complete "Hello World" behind my shared-hosting service's Apache. This is really a required configuration (along with FastCGI) for real-world web-app deployment in smaller organizations ( e.g. my current project). I'm hoping to finish that today, so I'd imagine releasing it by Wednesday perhaps. I *so* hate to commit to anything other than Real Soon Now when I'm not getting paid :)
What is your "CGI interface module"? For your information there is a CGI interface package for Snow, and a MIME package. They are not 100% complete, but there is enough there to do lots of useful stuff (in fact the Snow web site uses them and most of the other Snow packages).
Marc
Hey Guys
I came in a little late on the web framework discussion, so please excuse me, but I am very interested in a Scheme web framework. I've got a project going called "Zen Garden" which is a webserver that is based on the example packaged with Gambit.
Currently I have MySQL bindings, templating (with a ported version of text-template), and a simple rules engine to deal with requests. I am working on some more concrete examples, and some better and more useful rule engines.
The design of the framework is to be as rest/http-friendly as possible from the get-go. I also want to make a very developer friendly framework that does things like store a continuation during an error state so that it can be inspected later. Most of my design is outlined in this blog entry: http://blog.jonnay.net/archives/769-Imagine-a-webserver....html
I have everything up on a SVN repository: http://www.bunny.jonnay.net/zengarden/trunk so feel free to have a look.
On Tue, Nov 06, 2007 at 11:16:36AM -0800, jonnay@jonnay.net wrote :
Hey Guys
Hi dee ohh !
project going called "Zen Garden" which is a webserver that is based on the example packaged with Gambit.
Would it be possible to have someone develop a webserver which would accept SXML instead on HTML to describe content of webpages ?
I always use S-exprs to write my webpages, then I convert them with a simple S-expr->HTML transducer. I think that a pure Scheme webserver with Scheme webapages would be nice. And it could be very dynamic if every treatment functions were modifiable by the webpage itself, in order to use a renderer instead of another, to upgrade the server with zero downtime...
Is this approach Zen-Friendly ? Would it be a killer app ?
Reguards,
P!
On Nov 11, 2007 6:04 PM, Adrien Pierard pierarda@iro.umontreal.ca wrote:
On Tue, Nov 06, 2007 at 11:16:36AM -0800, jonnay@jonnay.net wrote : Would it be possible to have someone develop a webserver which would accept SXML instead on HTML to describe content of webpages ?
I have an s-expression based template system which should work on any R5RS Scheme. Unfortunately I have not yet completed testing it on Gambit, but I am posting it here anyway, since I said I would earlier. I actually have rather more of a framework available, but I just haven't yet finished porting and checking everything. Additionally, there is a certain amount of dead weight (like 6KLOC) code in the package as I am sending it due to library dependencies - mainly on SRFIs, but also on some of my private libraries (primarily an Aho-Corasick multi-pattern string matcher which is overkill here, but since it works it saved me some time writing a lighter weight parser). I am working towards a trimmed down version, but I thought I should get this out sooner rather than later.
In addition to the original source modules (2 files, eval-code.s2 and template.s2), there are also a few test data files and a test harness program in the tarball. There is no documentation. I hope that y'all might find it useful anyway.
david rush
What a mess of fractured syntax - just shows to go what happens when you tke more than 5 hours to write an email. The code I included has been tested on Gambit 4.0.1 and works. There were 2 portability issues: CALL-WITH-OUTPUT-STRING and EVAL. Unfortunately the CALL-WITH-OUTPUT-STRING issue is solved rather brutishly by redefining it to a form that is more widely compatible across existing Scheme implementations. The EVAL portability issue was able to be handled in a way that does not affect any other code.
I am still working on a cleaner version of the entire system, but I thought I should make more clear what I had actually posted.
- drr
On Nov 12, 2007 12:39 PM, David Rush kumoyuki@gmail.com wrote:
On Nov 11, 2007 6:04 PM, Adrien Pierard pierarda@iro.umontreal.ca wrote:
On Tue, Nov 06, 2007 at 11:16:36AM -0800, jonnay@jonnay.net wrote : Would it be possible to have someone develop a webserver which would accept SXML instead on HTML to describe content of webpages ?
I have an s-expression based template system which should work on any R5RS Scheme. Unfortunately I have not yet completed testing it on Gambit, but I am posting it here anyway, since I said I would earlier. I actually have rather more of a framework available, but I just haven't yet finished porting and checking everything. Additionally, there is a certain amount of dead weight (like 6KLOC) code in the package as I am sending it due to library dependencies - mainly on SRFIs, but also on some of my private libraries (primarily an Aho-Corasick multi-pattern string matcher which is overkill here, but since it works it saved me some time writing a lighter weight parser). I am working towards a trimmed down version, but I thought I should get this out sooner rather than later.
In addition to the original source modules (2 files, eval-code.s2 and template.s2), there are also a few test data files and a test harness program in the tarball. There is no documentation. I hope that y'all might find it useful anyway.
david rush
Once you label me, you negate me
- Soren Kierkegaard