This is the mail archive of the guile@sources.redhat.com mailing list for the Guile project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Re: HTTP server


On Sat, Jul 15, 2000 at 05:22:20PM +0300, Ivan Toshkov wrote:
> Is there an HTTP server in Scheme?  Or one which supports scheme for
> scripting?

There have been around 3 or 4 that I know of. I have one at
http://www.pyro.net/~crayc/recluse-0.2.tar.gz.

> Unfortunately, CGIs doesn't work directly for what I'm trying.  Now,
> if I could dump a continuation on the disk and restore it the next
> time CGI starts, that would work.  Is it possible (not only for
> guile)?

That would be a neat trick, but it doesn't work in Guile at least.

(call-with-input-string
 (call-with-output-string
  (lambda (p)
    (call-with-current-continuation
     (lambda (x) (write (x p))))))
 read)

(whatever happened to call/cc?)

-- 
C. Ray C. aka Christopher Cramer
crayc@pyro.net
http://www.pyro.net/~crayc/

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]