caml-list - the Caml user's mailing list
 help / color / mirror / Atom feed
From: Jacques Garrigue <garrigue@kurims.kyoto-u.ac.jp>
To: frisch@clipper.ens.fr
Cc: caml-list@inria.fr
Subject: Re: [Caml-list] OCaml runtime system and Java
Date: Fri, 06 Apr 2001 09:27:54 +0900	[thread overview]
Message-ID: <20010406092754K.garrigue@kurims.kyoto-u.ac.jp> (raw)
In-Reply-To: <Pine.GSO.4.04.10104052354270.4942-100000@clipper.ens.fr>

From: Alain Frisch <frisch@clipper.ens.fr>

> It seems than a few OCaml users have considered various approaches for
> running Caml programs on the Java VM. Has there been some attempt to do
> it the other way round, that is to run Java on the OCaml runtime system ?
> 
> It could be with the full OCaml VM, or maybe more realistically, with a
> specialized VM using only the OCaml memory model (GC and block layout)
> and thread scheduling. Would it be difficult to implement (in C for
> instance) a Java VM on top of the OCaml runtime system ?

You do not need C. What appeared from experience is that ocamlopt is
more than enough for practical use: for a project we had a programmer
write a full fledge Java VM in ocaml, able of running an XML parser
for instance. He did it in about a month, and the speed was about a
factor 3 of the Java JDK VM (without JIT, of course). If speed is not
your main concern (it shouldn't be if you're using Java anyway :-)),
then it should be enough.

It is only a VM, and does not contain extra runtime extensions, like
the GUI, and does not implement the bytecode checker, but I suppose
some people might have a use for that anyway.

We plan to release this code, but this may take some time as the
project was with a company, and they must agree. However the company
is used to open sourcing, and I see no reason they would refuse.

Jacques

-------------------
To unsubscribe, mail caml-list-request@inria.fr.  Archives: http://caml.inria.fr


  reply	other threads:[~2001-04-06  0:28 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2001-04-05 22:08 Alain Frisch
2001-04-06  0:27 ` Jacques Garrigue [this message]
2001-04-06  1:30 David Gurr

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=20010406092754K.garrigue@kurims.kyoto-u.ac.jp \
    --to=garrigue@kurims.kyoto-u.ac.jp \
    --cc=caml-list@inria.fr \
    --cc=frisch@clipper.ens.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).