From: Paolo Donadeo <p.donadeo@gmail.com>
To: "Török Edwin" <edwintorok@gmail.com>
Cc: OCaml List <caml-list@yquem.inria.fr>
Subject: Re: [Caml-list] Binding the Lua library [was: adding a scripting language to an ocaml program]
Date: Wed, 7 Jul 2010 23:11:15 +0200 [thread overview]
Message-ID: <AANLkTikNbiNTwuWzwGB6dkIT6Jth8xhgd0KbFLM8bdIy@mail.gmail.com> (raw)
In-Reply-To: <20100707234806.17b77e82@debian>
> How about translating a program in lua (or lua bytecode) to OCaml
> sourcecode automatically? Would that be possible?
I see two problems with an approach like this:
1) it's complicated: consider that Lua was designed in the first place
to be extremely simple to be embedded in a C program, and also simple
to exchange data to and from the host program. The *only* problem I
found was the interaction with the OCaml GC which of course is not a
problem in C;
2) can the Lua program, statically translated into OCaml, be loaded
and reloaded at run time? I need a scripting language to give a user a
configuration/simple plugin language to be loaded and executed at
runtime, and Lua is ideal because it's trivial to sandbox it.
--
Paolo ⠠⠵
prev parent reply other threads:[~2010-07-07 21:11 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-07-05 22:32 Paolo Donadeo
2010-07-06 21:28 ` [Caml-list] " Guillaume Yziquel
2010-07-07 13:50 ` Sylvain Le Gall
2010-07-07 16:30 ` [Caml-list] " Martin DeMello
2010-07-07 21:01 ` Paolo Donadeo
2010-07-07 22:03 ` Paolo Donadeo
2010-07-07 20:36 ` [Caml-list] " Paolo Donadeo
2010-07-07 20:48 ` Török Edwin
2010-07-07 21:11 ` Paolo Donadeo [this message]
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=AANLkTikNbiNTwuWzwGB6dkIT6Jth8xhgd0KbFLM8bdIy@mail.gmail.com \
--to=p.donadeo@gmail.com \
--cc=caml-list@yquem.inria.fr \
--cc=edwintorok@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