<?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/07/b97a84514d31d180e34e1f35f8f36992"
  from="Stefano Zacchiroli &lt;zack@c...&gt;"
  author="Stefano Zacchiroli"
  date="2002-07-05T08:07:09"
  subject="Re: [Caml-list] XML, XSL, eXcetera"
  prev="2002/07/fd96e17392e942b917cc96c3fa5051c0"
  next="2002/07/00fb705ed9a16fca4d7ec6fcdd19a976"
  prev-in-thread="2002/07/5478ade2356480a6560d0e146e89d82a"
  next-in-thread="2002/07/9f71f3e8bf6baa5ce38e39fb13e04284"
  prev-thread="2002/07/a953a7886e03a4bf3b4720f57360714c"
  next-thread="2002/07/bdd946e270849705a3a7e2f39ff61625"
  root="../../"
  period="month"
  listname="caml-list"
  title="Archives of the Caml mailing list">

<thread subject="Re: [Caml-list] XML, XSL, eXcetera">
<msg 
  url="2002/07/742672565244316ae0d90aeefcf7d334"
  from="forsyth@c..."
  author="forsyth@c..."
  date="2002-07-04T08:45:18"
  subject="Re: [Caml-list] XML, XSL, eXcetera">
<msg 
  url="2002/07/3de4e7a22cc0c59c1c912dc2ff2c6cc9"
  from="Alessandro Baretta &lt;alex@b...&gt;"
  author="Alessandro Baretta"
  date="2002-07-04T18:37:17"
  subject="Re: [Caml-list] XML, XSL, eXcetera">
<msg 
  url="2002/07/da9c64efeb1382bf9af0bec89e67a2d5"
  from="Gerd Stolpmann &lt;info@g...&gt;"
  author="Gerd Stolpmann"
  date="2002-07-04T21:51:49"
  subject="Re: [Caml-list] XML, XSL, eXcetera">
<msg 
  url="2002/07/5478ade2356480a6560d0e146e89d82a"
  from="Alessandro Baretta &lt;alex@b...&gt;"
  author="Alessandro Baretta"
  date="2002-07-04T22:37:20"
  subject="Re: [Caml-list] XML, XSL, eXcetera">
<msg 
  url="2002/07/b97a84514d31d180e34e1f35f8f36992"
  from="Stefano Zacchiroli &lt;zack@c...&gt;"
  author="Stefano Zacchiroli"
  date="2002-07-05T08:07:09"
  subject="Re: [Caml-list] XML, XSL, eXcetera">
<msg 
  url="2002/07/9f71f3e8bf6baa5ce38e39fb13e04284"
  from="Alessandro Baretta &lt;alex@b...&gt;"
  author="Alessandro Baretta"
  date="2002-07-06T14:09:17"
  subject="Re: [Caml-list] XML, XSL, eXcetera">
</msg>
</msg>
</msg>
<msg 
  url="2002/07/efbccf2948fc97802e181fc5bfd67f65"
  from="Henrik Motakef &lt;henrik.motakef@w...&gt;"
  author="Henrik Motakef"
  date="2002-07-04T22:38:33"
  subject="Re: [Caml-list] XML, XSL, eXcetera">
</msg>
<msg 
  url="2002/07/cbec09021d56233041ce70f8aa3b40da"
  from="Alain Frisch &lt;frisch@c...&gt;"
  author="Alain Frisch"
  date="2002-07-05T00:15:30"
  subject="Re: [Caml-list] XML, XSL, eXcetera">
<msg 
  url="2002/07/d35cfad39ad5a95044585490bdc86185"
  from="Claudio Sacerdoti Coen &lt;sacerdot@c...&gt;"
  author="Claudio Sacerdoti Coen"
  date="2002-07-05T16:36:30"
  subject="Re: [Caml-list] XML, XSL, eXcetera">
<msg 
  url="2002/07/905e2118bb1242c688e9904a4ace9afc"
  from="Alessandro Baretta &lt;alex@b...&gt;"
  author="Alessandro Baretta"
  date="2002-07-06T14:16:29"
  subject="Re: [Caml-list] XML, XSL, eXcetera">
<msg 
  url="2002/07/4d3d90399b5d02aacc1097cf0afe66fd"
  from="Claudio Sacerdoti Coen &lt;sacerdot@c...&gt;"
  author="Claudio Sacerdoti Coen"
  date="2002-07-08T12:29:13"
  subject="Re: [Caml-list] XML, XSL, eXcetera">
</msg>
</msg>
</msg>
</msg>
</msg>
</msg>
</msg>
</thread>

<contents>
On Fri, Jul 05, 2002 at 12:43:42AM +0200, Alessandro Baretta wrote:
&gt; How would you do that? With a sort of "toplevel server" 
&gt; waiting for connections and dynamically compiling and 
&gt; linking into its environment the code sent to it? Is 
&gt; anything like this already around?

Sure, it's named "/usr/bin/ocaml" :-)

Try this script:

  #!/usr/bin/ocamlrun /usr/bin/ocaml
  print_endline "Hello, world!"

You can use all toplevel directives so you can also use libraries that
support dynamic loading. BTW, if you want to use a library that doesn't
support dynamic loading you have to use a relinked ocaml interpreter or
you will be in trouble.

Maybe I've misunderstood your question ...

Cheers.

-- 
Stefano Zacchiroli - undergraduate student of CS @ Univ. Bologna, Italy
zack@cs.unibo.it | ICQ# 33538863 | http://www.cs.unibo.it/~zacchiro
"I know you believe you understood what you think I said, but I am not
sure you realize that what you heard is not what I meant!" -- G.Romney
-------------------
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>

