Experimental IRC log happs-2007-05-17

Available formats: content-negotiated html turtle (see SIOC for the vocabulary)

Back to channel and daily index: content-negotiated html turtle

These logs are provided as an experiment in indexing discussions using IRCHub.py, Irc2RDF.hs, and SIOC.

11:28:23<fxr>is it possible to send a request (r1) to another server and then get response (for r1) from that server?
11:34:57<tuukkah>what do you want to do? as far as i know, happs doesn't have any specialized way to forward requests to another happs
11:36:15<tuukkah>perhaps you could use apache reverse proxy or implement reverse proxying in happs with a http client library
11:41:05<fxr>I'm already using apache with mod-lisp. But after a simple benchmark , I saw that apache with mod-lisp has 260 req/s performance, on the other way, I got 1800 req/s with happs. So I want to implement a mod-lisp like behavour with happs and then slowly migrate my web apps to happs.
11:44:09<fxr>this could be a great application server feature I think.
11:44:51<tuukkah>i'm sorry i still don't understand why you need to send requests and responses between happs servers
11:45:08<fxr>tuukkah: let me explain more
11:47:10<fxr>I have got a bunch of common lisp web programs. A dispatcher gets requests from the mod-lisp module, parses the requests and then dispatches them to applications.
11:47:47<tuukkah>could you run the applications in one server?
11:48:39<fxr>yes, in one server, running apache with mod-lisp and a CL VM.
11:49:07<fxr>I'm thinking of replacing mod-lisp with happs server
11:49:55<fxr>so I'm looking at ways to implement mod-lisp features.
11:49:56<tuukkah>would you have to be able to run both happs and mod-lisp applications in the transition period?
11:51:27<fxr>ofcourse, I have no happs applications at this time
11:51:37<Saizan>so you need a mod-lisp for happs?
11:52:04<fxr>yes call it hs-lisp
11:52:55<fxr>besides, mod-lisp even can't parse request structures
11:53:29<fxr>happs parses them very fast
11:56:11<fxr>I think I need to learn how to make outgoing connections from happs and serialize requests.
11:58:56<Saizan>but mod-lisp is a server on its own? in which format does it accept requests?
11:59:19<tuukkah>mod-lisp seems to be a lot like fastcgi
11:59:45<Saizan>ACTION needs to learn how fastcgi works
12:00:17<fxr>mod-lisp is not a server on its own
12:00:39<tuukkah>i mean, mod-lisp runs within apache and handles requests by forwarding them to application processes
12:01:14<tuukkah>so it really has nothing to do with lisp =)
12:01:37<Saizan>so it spawn a process for each request?
12:01:39<fxr>when a request arrives, it only connects a predefined server:port and forward the request
12:01:53<Saizan>ah
12:02:36<tuukkah>Saizan, the difference of fastcgi to cgi is that it reuses the same process
12:03:22<tuukkah>fastcgi starts the process if there isn't one, but mod-lisp doesn't seem to
12:04:00<Saizan>well you can have hs (Prefix [""]) [GET,POST] $ dispatch, where dispatch () req = respond $ do { send (serialize req); res <- waitresponse; toMessageM res }
12:05:36<Saizan>h, not hs
12:05:53<fxr>hs means multiple dispathcers?
12:06:56<Saizan>no, hs is just a combinator
12:07:12<Saizan>hs :: path -> method -> (path -> method -> res) -> res <-- fully polymorphic
12:09:40<fxr>are there any easy ways to get type signature for a function? I'm using emacs with haskell-mode
12:09:53<Saizan>C-c C-t
12:10:12<Saizan>C-u C-c C-t to insert it over the declaration
12:10:43<Saizan>you ahve to load (C-c C-l) the file first
12:11:01<fxr>thank you
12:29:10<fxr>how can I properly terminate and rerun an application within emacs? I'm loading a file and then type main to start an app, but when I type C-c C-c, it terminates but I cannot restart the application, I got an exception (it says file is locked).
13:01:22<Saizan>maybe handlers are not GC-ed so you still have some file open fro write?

Back to channel and daily index: content-negotiated html turtle