caml-list - the Caml user's mailing list
 help / color / mirror / Atom feed
From: David Teller <David.Teller@univ-orleans.fr>
To: Dawid Toton <d0@wp.pl>
Cc: caml-list@yquem.inria.fr
Subject: Re: [Caml-list] 'Compiler' module (was: embedding ocaml into a windows app: need gcc?)
Date: Sat, 04 Oct 2008 00:23:37 +0200	[thread overview]
Message-ID: <1223072617.6282.16.camel@Blefuscu> (raw)
In-Reply-To: <48E68FD7.7040605@wp.pl>

Have you looked at the CDK's DynEval?

Other than that, it's the kind of thing we'd like to put in Batteries,
so if you write/find a better solution, please make it public.

Cheers,
 David

On Fri, 2008-10-03 at 22:34 +0100, Dawid Toton wrote:
> > I would like an OCaml support library that can compile and execute
> > similar to JaveScript engines, but we don't have that in any practical
> > form.
> > 
> 
> I also need this and I'm thinking about something like this:
> 
> module type Compiler =
> sig
>   val parse : Context.t -> string -> (Context.t * AST.t)
>   val get_type : Context.t -> AST.t -> Type.t;
>   val eval : Context.t -> AST.t -> Context.t * (Type.t * 
> MarshalledValueOrSomething.t)
> end
> 
> Is it really so hard to have it in OCaml? I'm envy of Python's Compiler 
> module.

-- 
David Teller-Rajchenbach
 Security of Distributed Systems
  http://www.univ-orleans.fr/lifo/Members/David.Teller
 Angry researcher: French Universities need reforms, but the LRU act
brings liquidations. 


  parent reply	other threads:[~2008-10-03 22:23 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-09-27 19:27 embedding ocaml into a windows app: need gcc? Joel Reymont
2008-09-27 19:48 ` [Caml-list] " Richard Jones
2008-09-27 19:52 ` David Teller
2008-09-27 22:53 ` Mikkel Fahnøe Jørgensen
2008-10-03 21:34   ` 'Compiler' module (was: embedding ocaml into a windows app: need gcc?) Dawid Toton
2008-10-03 21:58     ` [Caml-list] " Lukasz Stafiniak
2008-10-03 22:23     ` David Teller [this message]
2008-10-04  2:39     ` Jon Harrop
2008-10-06 17:15       ` [Caml-list] 'Compiler' module Dawid Toton

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=1223072617.6282.16.camel@Blefuscu \
    --to=david.teller@univ-orleans.fr \
    --cc=caml-list@yquem.inria.fr \
    --cc=d0@wp.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;
as well as URLs for NNTP newsgroup(s).