From: Xavier Leroy <xavier.leroy@inria.fr>
To: Lukasz Stafiniak <l_stafiniak@hoga.pl>
Cc: caml-list@inria.fr
Subject: Re: [Caml-list] Caml Machine and GP
Date: Fri, 25 Jul 2003 11:10:52 +0200 [thread overview]
Message-ID: <20030725111052.B31893@pauillac.inria.fr> (raw)
In-Reply-To: <008201c3514d$b88d3760$50ef4dd5@ppp>; from l_stafiniak@hoga.pl on Wed, Jul 23, 2003 at 08:53:11PM +0200
> I work on genetic programming with typed terms. I would like to use
> 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
next prev parent reply other threads:[~2003-07-25 9:10 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2003-07-23 18:53 Lukasz Stafiniak
2003-07-25 9:10 ` Xavier Leroy [this message]
2003-07-25 18:12 ` Lukasz Stafiniak
2003-08-01 14:45 ` Lukasz Stafiniak
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=20030725111052.B31893@pauillac.inria.fr \
--to=xavier.leroy@inria.fr \
--cc=caml-list@inria.fr \
--cc=l_stafiniak@hoga.pl \
/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