[gambit-list] found my first "bug" in gambit: web-server example README

Samuel Montgomery-Blinn sam at caveman.org
Tue Mar 14 01:59:37 EST 2006


Well, it has been a week now tinkering with Gambit, and my first "bug", 
found when trying to find a valid example of finding the index of a 
given character in a string, which I found in the web-server example 
directory.

The README stipulates the manner of starting the server:

    gsi html http web-server 8000


However, the continuation-example calculator does not work unless base64 
is also included:

    gsi base64 html http web-server 8000


Hooray. This glorious contribution will live in infamy, I am sure.

I think my pains of learning the "Scheme Way" and Gambit would have been 
much less had I read more of the examples and paid a thorough attention to:

http://www.schemers.org/Documents/Standards/R5RS/HTML/

Instead of playing a guessing game as to which SRFIs are implemented! 
(string-index from SRFI 13 in particular, for which the web-server has 
the example I was seeking as "find-char-pos" -- in other words answering 
my question, "Yes, you do have to write this yourself.").

If nothing else, reading through the http.scm "parse-uri" procedure (and 
others nearby) makes me wonder if this code was generated or if some 
human actually did sit down and write all the states...

-Sam




More information about the Gambit-list mailing list