From: Erik Arneson <erik@aarg.net>
To: Maxence Guesdon <maxence.guesdon@inria.fr>
Cc: caml-announce@inria.fr
Subject: Re: [Caml-list] mod_ocaml
Date: Thu, 12 Dec 2002 11:10:44 -0800 [thread overview]
Message-ID: <15864.57140.849677.64996@sif.musiciansfriend.com> (raw)
In-Reply-To: <20021212101444.44faf508.maxence.guesdon@inria.fr>
On 12 December 2002, Maxence Guesdon <maxence.guesdon@inria.fr> wrote:
> I've been told about a mod_ocaml for apache, available at
> http://www.slacky.de/docs/projects/mod_ocaml/
>
> I have not tested it, but I thought a lot of people might be interested.
> If some of you try it, can you tell us if it works ?
It works just fine! It is a nice module for quick dynamic web pages,
like Mr Gushee pointed out, but I think there are a few changes that
could be made to make it safer and more robust for bigger applications.
First, it would be neat if there were a safer way to grab and validate
the query string. A string replacement just doesn't work very well, and
it prints out an error if certain query string arguments aren't found,
so there's no easy way to just search for their existence. There are
some OCaml modules out there to handle this, though, and I believe the
QUERY_STRING environment variable is still available for parsing.
Second, the OCaml interpreter is called every hit, which probably isn't
very scalable. It would be really neat if the embedded OCaml page were
compiled to byte code and stored in memory somehow, so perhaps the OCaml
bytecode interpreter could only be called once. Mod_perl does something
like this, and it seems to work very well.
The latter is a pretty big project, though. I would have no idea where
to start, and I think mod_ocaml is a pretty neat beginning in any case!
--
;; Erik Arneson <erik@aarg.net> AARG Net <http://www.aarg.net/> ;;
;; GPG Key ID: 2048R/8B4CBC9C <http://erik.arneson.org/> ;;
;; "Resistance to tyrants is obedience to God!" - Thomas Jefferson ;;
-------------------
To unsubscribe, mail caml-list-request@inria.fr Archives: http://caml.inria.fr
Bug reports: http://caml.inria.fr/bin/caml-bugs FAQ: http://caml.inria.fr/FAQ/
Beginner's list: http://groups.yahoo.com/group/ocaml_beginners
next prev parent reply other threads:[~2002-12-12 19:10 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2002-12-12 9:14 Maxence Guesdon
2002-12-12 9:32 ` Matt Gushee
2002-12-13 12:20 ` MikhailFedotov
2002-12-13 18:00 ` MikhailFedotov
2002-12-12 19:10 ` Erik Arneson [this message]
2002-12-12 23:45 ` SooHyoung Oh
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=15864.57140.849677.64996@sif.musiciansfriend.com \
--to=erik@aarg.net \
--cc=caml-announce@inria.fr \
--cc=maxence.guesdon@inria.fr \
/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