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 TAA14740; Fri, 13 Dec 2002 19:00:52 +0100 (MET) X-Authentication-Warning: pauillac.inria.fr: majordomo set sender to owner-caml-list@pauillac.inria.fr using -f Received: from concorde.inria.fr (concorde.inria.fr [192.93.2.39]) by pauillac.inria.fr (8.7.6/8.7.3) with ESMTP id TAA14736 for ; Fri, 13 Dec 2002 19:00:51 +0100 (MET) Received: from post.kis.ru (post.kis.ru [195.98.32.206]) by concorde.inria.fr (8.11.1/8.11.1) with ESMTP id gBDI0o905380 for ; Fri, 13 Dec 2002 19:00:51 +0100 (MET) Received: from [195.98.54.162] (HELO heaven) by post.kis.ru (CommuniGate Pro SMTP 4.0.2) with ESMTP id 1182372 for caml-list@inria.fr; Fri, 13 Dec 2002 21:00:49 +0300 From: "MikhailFedotov" To: Subject: RE: [Caml-list] mod_ocaml Date: Fri, 13 Dec 2002 21:00:49 +0300 Message-ID: <001001c2a2d1$91a83620$a917a8c0@heaven> X-Priority: 3 (Normal) X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook, Build 10.0.4024 In-Reply-To: <000001c2a2a2$087a7540$a917a8c0@heaven> Importance: Normal X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1106 Sender: owner-caml-list@pauillac.inria.fr Precedence: bulk > > > > I was a little disappointed because I was hoping for something that > > allowed using arbitrary OCaml code; mod_ocaml only supports an > > embedding scripting model: > > > > do_stuff () ;; ?> > > > > but it looks like a good tool for quick-and-dirty dynamic Web sites. > > It seems that mod_ocaml strips last line of source if there > is no newline symbol at the end. I.e. if all your html file > is in one line, it disappears... BTW, I've looked into the code. I may be wrong, but it seems that there are problems with memory management. Authors think that in C "sizeof(char*)" gives maximum length of string or something like that, so they allocate memory like this: this_arg = (char *) ap_pcalloc(r->pool, sizeof(char *)); Another interesting example that I would not comment: p->key = (char**)ap_pcalloc(r->pool, sizeof (char **) * 255); Nice tool anyway. :-) Mikhail ------------------- 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