From mboxrd@z Thu Jan 1 00:00:00 1970 Received: (from majordomo@localhost) by pauillac.inria.fr (8.7.6/8.7.3) id SAA16432; Wed, 11 Jul 2001 18:00:04 +0200 (MET DST) X-Authentication-Warning: pauillac.inria.fr: majordomo set sender to owner-caml-list@pauillac.inria.fr using -f Received: (from weis@localhost) by pauillac.inria.fr (8.7.6/8.7.3) id SAA16372 for caml-list@pauillac.inria.fr; Wed, 11 Jul 2001 18:00:04 +0200 (MET DST) Received: from nez-perce.inria.fr (nez-perce.inria.fr [192.93.2.78]) by pauillac.inria.fr (8.7.6/8.7.3) with ESMTP id LAA04490 for ; Wed, 11 Jul 2001 11:10:01 +0200 (MET DST) Received: from nef.ens.fr (nef.ens.fr [129.199.96.32]) by nez-perce.inria.fr (8.11.1/8.10.0) with ESMTP id f6B99uX15153 for ; Wed, 11 Jul 2001 11:09:56 +0200 (MET DST) Received: from clipper.ens.fr (clipper-gw.ens.fr [129.199.1.22]) by nef.ens.fr (8.10.1/1.01.28121999) with ESMTP id f6B99tm01893 ; Wed, 11 Jul 2001 11:09:55 +0200 (CEST) Received: from (heriard@localhost) by clipper.ens.fr (8.9.2/jb-1.1) Date: Wed, 11 Jul 2001 11:09:55 +0200 From: Samuel Heriard Dubreuil To: Jimmie Houchin Cc: Alain Frisch , Caml list Subject: Re: [Caml-list] Web Development with OCaml Message-ID: <20010711110955.A21333@clipper.ens.fr> References: <3B4BE8CE.B246A7E8@texoma.net> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2.5i In-Reply-To: ; from frisch@clipper.ens.fr on Wed, Jul 11, 2001 at 08:19:08AM +0200 Sender: owner-caml-list@pauillac.inria.fr Precedence: bulk > > Is there any interest in a mod_ocaml or a fast-cgi module for OCaml? > > I haven't a clue on how to develop either but could possibly learn. :) > > After learning OCaml (at least some) first. > > If I understand correctly what you mean by mod_ocaml (packaging > OCaml runtime environment in a Apache module, in order to avoid to > load it for every request), Samuel Heriard (in Cc) > started such a project; I don't know how the progress status. That's right, I started to write a mod_caml (a la mod_perl). I've not been working on it since six months, but it does work under apache 1.3 (at least "Hello world !"). I didn't worry too much about performance issues because I wrote it in one afternoon mainly to learn the apache api. But I'd like to restart working on it. The principle was to associate the caml handler to .cmo files, dynamically load $DocumentRoot/bar.cmo on a request to http://foo.com/bar.cmo, let the cmo do the job, and then unload it. The goal was to create something like jsp. I know it's pretty inefficient, but with a cache system, you would not have to load/unload a .cmo for each request. > The GC should'nt be a big problem: between two requests, the runtime > environment can completely flush the heap (excepted for the > connection/persistency manager). But I may miss some important issues. The connection manager is an orthogonal problem. A connection may use several instances of the runtime (several apache process) so I think it has nothing to deal with the garbage collector (one can use files, shared memory or db to store the connection informations). So if you're interested in working an a mod_ocaml, let me know, I'll send you the code (actually not more than a hundred lines of caml/C if I remember). -- Samuel ------------------- Bug reports: http://caml.inria.fr/bin/caml-bugs FAQ: http://caml.inria.fr/FAQ/ To unsubscribe, mail caml-list-request@inria.fr Archives: http://caml.inria.fr