From: David Allsopp <dra-news@metastack.com>
To: Diego Olivier Fernandez Pons <dofp.ocaml@gmail.com>
Cc: caml-list <caml-list@inria.fr>
Subject: Re: [Caml-list] JavaScript interpreter in OCaml
Date: Wed, 25 Jul 2012 15:40:23 +0000 [thread overview]
Message-ID: <DA89D1DF-0557-4CDF-8A69-F9075A9E740D@metastack.com> (raw)
In-Reply-To: <CAHqiZ-K9w1e79mMUs1t_oAg-iPVJgxbg96pmCw1rftk1g17N5w@mail.gmail.com>
On 25 Jul 2012, at 14:38, "Diego Olivier Fernandez Pons" <dofp.ocaml@gmail.com> wrote:
> Does anyone have a JavaScript interpreter in OCaml ? Doesn't need to
> be 100% compliant, the user can always rewritte some parts of the
> JavaScript. And we discourage using weird / complex JavaScript
> constructions anyway. Alternatively, a JavaScript -> OCaml source to
> source translator could be good as well.
I don't know whether you mean written in pure OCaml or just usable from OCaml. For the latter, I've used Alain Frisch's SpiderCaml: http://alain.frisch.fr/soft.html#spider
Personally, I'd say that linking to a well-maintained interpreter is a better solution than yet another implementation of JavaScript with all the warts that go with doing that.
HTH,
David
next prev parent reply other threads:[~2012-07-25 15:51 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-07-25 13:38 Diego Olivier Fernandez Pons
2012-07-25 15:22 ` Pierre-Alexandre Voye
2012-07-25 15:40 ` David Allsopp [this message]
2012-07-25 18:32 ` Stéphane Glondu
2012-07-25 20:21 ` Alan Schmitt
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=DA89D1DF-0557-4CDF-8A69-F9075A9E740D@metastack.com \
--to=dra-news@metastack.com \
--cc=caml-list@inria.fr \
--cc=dofp.ocaml@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