caml-list - the Caml user's mailing list
 help / color / mirror / Atom feed
From: Samuel Heriard Dubreuil <heriard@clipper.ens.fr>
To: Jimmie Houchin <jhouchin@texoma.net>
Cc: Alain Frisch <frisch@clipper.ens.fr>, Caml list <caml-list@inria.fr>
Subject: Re: [Caml-list] Web Development with OCaml
Date: Wed, 11 Jul 2001 11:09:55 +0200	[thread overview]
Message-ID: <20010711110955.A21333@clipper.ens.fr> (raw)
In-Reply-To: <Pine.GSO.4.04.10107110812390.18263-100000@clipper.ens.fr>; from frisch@clipper.ens.fr on Wed, Jul 11, 2001 at 08:19:08AM +0200

> > 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


  reply	other threads:[~2001-07-11 16:00 UTC|newest]

Thread overview: 30+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2001-07-10  0:01 Jimmie Houchin
2001-07-10  7:10 ` Jean-Christophe Filliatre
2001-07-10  7:15 ` Tom Hirschowitz
2001-07-10  8:19   ` David Mentre
2001-07-10  9:38   ` Alain Frisch
2001-07-11  5:49     ` Jimmie Houchin
2001-07-11  6:03       ` Alexander V. Voinov
2001-07-11 14:47         ` Jimmie Houchin
2001-07-12  1:58           ` John Max Skaller
2001-07-11  6:19       ` Alain Frisch
2001-07-11  9:09         ` Samuel Heriard Dubreuil [this message]
2001-07-11 14:11           ` Jimmie Houchin
2001-07-11 15:35       ` Francois Rouaix
2001-07-11 20:44         ` Gerd Stolpmann
2001-07-12  2:32         ` Jimmie Houchin
2001-07-13  5:37       ` William Chesters
2001-07-13 10:29         ` Alain Frisch
2001-07-13 11:16           ` Vitaly Lugovsky
2001-07-13 14:04             ` Xavier Leroy
2001-07-13 17:08               ` [web-caml] " Vitaly Lugovsky
2001-07-15 18:03               ` Ari Heitner
2001-07-15 20:19                 ` Gerd Stolpmann
2001-07-16  8:23                 ` wakita
2001-07-17 16:18                 ` John Max Skaller
2001-07-17 18:50                   ` Ari Heitner
2001-07-18 22:24                     ` John Max Skaller
2001-07-13 16:12           ` Lyn A Headley
2001-07-13 17:50             ` William Chesters
2001-07-13 16:51           ` Miles Egan
2001-07-13 18:12           ` Jimmie Houchin

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

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20010711110955.A21333@clipper.ens.fr \
    --to=heriard@clipper.ens.fr \
    --cc=caml-list@inria.fr \
    --cc=frisch@clipper.ens.fr \
    --cc=jhouchin@texoma.net \
    /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 NNTP newsgroup(s).