From: Andy Wingo <wingo@pobox.com>
To: Mike Gran <spk121@yahoo.com>
Cc: guile-devel <guile-devel@gnu.org>
Subject: Re: new module: (web uri)
Date: Tue, 19 Oct 2010 20:41:17 +0200 [thread overview]
Message-ID: <m3iq0y81pu.fsf@unquote.localdomain> (raw)
In-Reply-To: <559494.66997.qm@web37901.mail.mud.yahoo.com> (Mike Gran's message of "Sun, 17 Oct 2010 13:05:41 -0700 (PDT)")
Heya Mike,
On Sun 17 Oct 2010 22:05, Mike Gran <spk121@yahoo.com> writes:
> Writing yet another webserver for fun is one thing, but, writing yet
> another webserver for inclusion in Guile is the path of madness, because
> you'd be implying that it is, in some sense, validated. A webserver
> is oh so deceptively simple... But looking at the http11 parser
> in Mongrel2, for example, shows how it is harder than it looks.
Yeah I certainly don't want to bless a web server, or even write a
proper one. It would be nice though if we had a *toy* web server.
For example, as I mentioned I was setting up my web app, and I just
wanted to see if it worked. If I could run a toy server and check that
it worked, that would be great. Then I could choose mongrel2 or nginx or
whatever with fastcgi or mod_proxy or whatever, and I have some freedom
in that respect, because I know that somewhere there is a (lambda
(request) ...) that doesn't care much about how the actual web server is
implemented.
You could be right though, this might be a bad idea. But at the very
least we do need an HTTP client in Guile if we are ever to make an
ELPA-alike (or cpan-alike, if you prefer), and for that we need a URI
lib, an http client, perhaps request and response object, base64 and
mime encoding, etc.
> BTW, I haven't tried it yet, but, a Guile / Mongrel2 could make for
> a great platform, with not too much glue code.
Yeah that sounds like fun! Microhttpd also sounds interesting for toy
usage, will check it out.
Peace,
Andy
--
http://wingolog.org/
next prev parent reply other threads:[~2010-10-19 18:41 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-10-17 19:30 new module: (web uri) Andy Wingo
2010-10-17 20:05 ` Mike Gran
2010-10-19 18:41 ` Andy Wingo [this message]
2010-10-17 20:33 ` Ludovic Courtès
2010-10-19 18:45 ` Andy Wingo
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
List information: https://www.gnu.org/software/guile/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=m3iq0y81pu.fsf@unquote.localdomain \
--to=wingo@pobox.com \
--cc=guile-devel@gnu.org \
--cc=spk121@yahoo.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).