<?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="2003/07/80e9a2f2a91f3890b8725c6915cc2f2a"
  from="Xavier Leroy &lt;xavier.leroy@i...&gt;"
  author="Xavier Leroy"
  date="2003-07-25T09:10:58"
  subject="Re: [Caml-list] Caml Machine and GP"
  prev="2003/07/e182587b438c4e8b316436c03a183487"
  next="2003/07/3df9d69f6b18b9279873b911297d0c59"
  prev-in-thread="2003/07/f90a8a17360dae1f3d044706aa82754d"
  next-in-thread="2003/07/9c276348764253994c2c37961633197a"
  prev-thread="2003/07/f582834d5ce738c163661f428986bb25"
  next-thread="2003/07/d9552a523f855e9aec83425fe88835cb"
  root="../../"
  period="month"
  listname="caml-list"
  title="Archives of the Caml mailing list">

<thread subject="[Caml-list] Caml Machine and GP">
<msg 
  url="2003/07/f90a8a17360dae1f3d044706aa82754d"
  from="Lukasz Stafiniak &lt;l_stafiniak@h...&gt;"
  author="Lukasz Stafiniak"
  date="2003-07-23T19:05:47"
  subject="[Caml-list] Caml Machine and GP">
<msg 
  url="2003/07/80e9a2f2a91f3890b8725c6915cc2f2a"
  from="Xavier Leroy &lt;xavier.leroy@i...&gt;"
  author="Xavier Leroy"
  date="2003-07-25T09:10:58"
  subject="Re: [Caml-list] Caml Machine and GP">
<msg 
  url="2003/07/9c276348764253994c2c37961633197a"
  from="Lukasz Stafiniak &lt;l_stafiniak@h...&gt;"
  author="Lukasz Stafiniak"
  date="2003-07-26T10:00:40"
  subject="Re: [Caml-list] Caml Machine and GP">
<msg 
  url="2003/08/919d190c9c79acb03f57f57b3da3743a"
  from="Lukasz Stafiniak &lt;l_stafiniak@h...&gt;"
  author="Lukasz Stafiniak"
  date="2003-08-01T16:27:43"
  subject="Re: [Caml-list] Caml Machine and GP">
</msg>
</msg>
</msg>
</msg>
</thread>

<contents>
&gt; I work on genetic programming with typed terms. I would like to use
&gt; OCaml bytecode-system to run my programs.

If I understand correctly your needs, there are two approaches that
don't involve hacking the OCaml system to death:

1- The pedestrian approach: pretty-print your programs in OCaml syntax
to a file, invoke the "ocamlc" compiler with Sys.command,
then dynamically load the compiled bytecode using the Dynlink library.

2- The principled approach: have a look at MetaOCaml
(http://www.cs.rice.edu/~taha/MetaOCaml/), which provides clean
mechanisms for meta-programming in Caml, i.e. manipulating and
executing Caml code from within Caml programs.

Hope this helps,

- Xavier Leroy

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

