<?xml version="1.0" encoding="ISO-8859-1"?>

<!DOCTYPE message PUBLIC
  "-//MLarc//DTD MLarc output files//EN"
  "../../mlarc.dtd"[
  <!ATTLIST message
    listname CDATA #REQUIRED
    title CDATA #REQUIRED
  >
]>

  <?xml-stylesheet href="../../mlarc.xsl" type="text/xsl"?>


<message 
  url="2002/12/6b1f94011590c635c45031badeadf1a3"
  from="MikhailFedotov &lt;mikhail@k...&gt;"
  author="MikhailFedotov"
  date="2002-12-13T18:00:52"
  subject="RE: [Caml-list] mod_ocaml"
  prev="2002/12/bef5070e1bc3ca250bf2f818ad6ff8fa"
  next="2002/12/c95b11021e001a134a0db0118f5d4e6c"
  prev-in-thread="2002/12/7cb0932659a8073f4d6a11bd152262c9"
  next-in-thread="2002/12/75b9ca3454812923f0eb7f72e657adfd"
  prev-thread="2002/12/919e5b9de09938198c2fd0856d238c55"
  next-thread="2002/12/0fbed2333e93811ef610de52c157b9a6"
  root="../../"
  period="month"
  listname="caml-list"
  title="Archives of the Caml mailing list">

<thread subject="[Caml-list] mod_ocaml">
<msg 
  url="2002/12/e9bc0bae209d5d139109989b178cbc85"
  from="Maxence Guesdon &lt;maxence.guesdon@i...&gt;"
  author="Maxence Guesdon"
  date="2002-12-12T09:14:46"
  subject="[Caml-list] mod_ocaml">
<msg 
  url="2002/12/cb2f141f3a65bff4d89e1ee25b3f44fd"
  from="Matt Gushee &lt;mgushee@h...&gt;"
  author="Matt Gushee"
  date="2002-12-12T09:32:11"
  subject="Re: [Caml-list] mod_ocaml">
<msg 
  url="2002/12/7cb0932659a8073f4d6a11bd152262c9"
  from="MikhailFedotov &lt;mikhail@k...&gt;"
  author="MikhailFedotov"
  date="2002-12-13T12:20:36"
  subject="RE: [Caml-list] mod_ocaml">
<msg 
  url="2002/12/6b1f94011590c635c45031badeadf1a3"
  from="MikhailFedotov &lt;mikhail@k...&gt;"
  author="MikhailFedotov"
  date="2002-12-13T18:00:52"
  subject="RE: [Caml-list] mod_ocaml">
</msg>
</msg>
</msg>
<msg 
  url="2002/12/75b9ca3454812923f0eb7f72e657adfd"
  from="Erik Arneson &lt;erik@a...&gt;"
  author="Erik Arneson"
  date="2002-12-12T19:10:59"
  subject="Re: [Caml-list] mod_ocaml">
<msg 
  url="2002/12/7c2aaeb93687a2cdba8374b2642f2399"
  from="SooHyoung Oh &lt;shoh@d...&gt;"
  author="SooHyoung Oh"
  date="2002-12-12T23:42:26"
  subject="Re: [Caml-list] mod_ocaml">
</msg>
</msg>
</msg>
</thread>

<contents>
&gt; &gt;
&gt; &gt; I was a little disappointed because I was hoping for something that
&gt; &gt; allowed using arbitrary OCaml code; mod_ocaml only supports an
&gt; &gt; embedding scripting model:
&gt; &gt;
&gt; &gt;   &lt;?ocml &lt;html&gt; do_stuff () ;; &lt;/html&gt; ?&gt;
&gt; &gt;
&gt; &gt; but it looks like a good tool for quick-and-dirty dynamic Web sites.
&gt;
&gt; It seems that mod_ocaml strips last line of source if there
&gt; is no newline symbol at the end. I.e. if all your html file
&gt; 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-&gt;pool, sizeof(char
*));

Another interesting example that I would not comment:
p-&gt;key = (char**)ap_pcalloc(r-&gt;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

</contents>

</message>

