caml-list - the Caml user's mailing list
 help / color / mirror / Atom feed
From: Thomas Fischbacher <t.fischbacher@soton.ac.uk>
To: Martin DeMello <martindemello@gmail.com>
Cc: OCaml List <caml-list@yquem.inria.fr>
Subject: Re: [Caml-list] adding a scripting language to an ocaml program
Date: Mon, 5 Jul 2010 14:14:37 +0100	[thread overview]
Message-ID: <4C31DABD.3060107@soton.ac.uk> (raw)
In-Reply-To: <AANLkTik2ARQc1-Tdkb7flolFrtSSQaLBnrDtKghXgBHW@mail.gmail.com>


Martin DeMello asked:

> Has much work been done on adding a scripting language to an OCaml
> program? I googled about a bit, but no one seems to be even talking
> about this - for example, if I wanted to do something emacslike with a
> core in OCaml and (ideally) some sort of scheme as a scripting engine
> in place of elisp, would that be easily doable?

We (the nmag/nsim dev team - http://nmag.soton.ac.uk) kind-of had the
opposite problem, i.e. we had to extend a scripting language that is 
easy to learn with something that has a bit more steam. We decided to
use Python+OCaml. There's a semi-abandoned debian package, pycaml,
that does this, but that's broken - it has memory management bugs
both oh the Python and OCaml side. Here is a fixed version that also
supports a few nice extensions:

http://nmag.soton.ac.uk/tf/pycaml/

I should say that being able to extend Python with fast code without
having to worry about allocating/destroying things and having the
convenience of simple callbacks both ways is a very nice thing.

-- 
best regards,
Thomas Fischbacher
t.fischbacher@soton.ac.uk


  parent reply	other threads:[~2010-07-05 13:33 UTC|newest]

Thread overview: 24+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-07-03 18:34 Martin DeMello
2010-07-03 18:43 ` Michael Ekstrand
2010-07-03 18:56   ` [Caml-list] " Martin DeMello
2010-07-03 19:06     ` Michael Ekstrand
2010-07-03 19:35     ` [Caml-list] " David Allsopp
2010-07-03 18:52 ` [Caml-list] " Lukasz Stafiniak
2010-07-03 18:53   ` Vincent Aravantinos
2010-07-03 19:05     ` Martin DeMello
2010-07-03 19:02   ` Martin DeMello
     [not found]     ` <AANLkTinIbSSrxtuWrwv16_XIo2MU2hdhjHhrIORSFUPN@mail.gmail.com>
2010-07-03 21:15       ` Martin DeMello
2010-07-03 20:42   ` malc
2010-07-03 19:16 ` David Powers
2010-07-04 19:54 ` Goswin von Brederlow
2010-07-05 12:41   ` Florent Monnier
2010-07-05 13:14 ` Thomas Fischbacher [this message]
2010-07-05 16:13   ` Mehdi Dogguy
2010-07-05 16:30     ` Thomas Fischbacher
2010-07-05 18:02       ` Mehdi Dogguy
2010-07-08 15:22         ` Thomas Fischbacher
2010-07-08 16:00           ` Mehdi Dogguy
2010-07-06 21:01       ` Guillaume Yziquel
2010-07-06 21:08         ` Guillaume Yziquel
2010-07-06 10:38 ` Richard Jones
2010-07-06 12:55   ` Martin DeMello

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=4C31DABD.3060107@soton.ac.uk \
    --to=t.fischbacher@soton.ac.uk \
    --cc=caml-list@yquem.inria.fr \
    --cc=martindemello@gmail.com \
    /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).