From: Hendrik Boom <hendrik@topoi.pooq.com>
To: caml-list@inria.fr
Subject: Re: [Caml-list] Make OCaml library available to Java
Date: Wed, 3 Aug 2016 08:43:17 -0400 [thread overview]
Message-ID: <20160803124317.GB24923@topoi.pooq.com> (raw)
In-Reply-To: <20160802172122.GA14641@xinutec.org>
On Tue, Aug 02, 2016 at 05:21:22PM +0000, Pippijn van Steenhoven wrote:
> On Tue, Aug 02, 2016 at 07:51:11AM -0400, Arlen Cox wrote:
> > Has anyone considered writing a source-to-source translator from OCaml to Scala?
>
> I don't think this is reasonable. The OCaml and Scala type systems differ
> massively. This would not be a source to source translation, but rather
> just a compiler that targets Scala, which doesn't seem like a very useful
> thing to do.
There's soomething I've been wondering about. OCaml keeps a minimum
of type information at run-time -- one bit in each machine word tells
whether it's a pointer or not. Is OCaml's intermediate code stable
enough that it could be used as intermediate code for another
language, and compiled further using the usual OCaml toolchain?
-- hendrik
next prev parent reply other threads:[~2016-08-03 12:43 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2016-08-02 4:02 Arlen Cox
2016-08-02 10:56 ` Malcolm Matalka
2016-08-02 11:51 ` Arlen Cox
2016-08-02 16:34 ` Gerd Stolpmann
2016-08-02 16:48 ` Arlen Cox
2016-08-02 17:21 ` Pippijn van Steenhoven
2016-08-02 17:34 ` Arlen Cox
2016-08-03 12:43 ` Hendrik Boom [this message]
2016-08-03 12:46 ` Jeremy Yallop
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=20160803124317.GB24923@topoi.pooq.com \
--to=hendrik@topoi.pooq.com \
--cc=caml-list@inria.fr \
/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).