caml-list - the Caml user's mailing list
 help / color / mirror / Atom feed
From: forum@x9c.fr
To: Seungcheol Jung <scjung.hyu@gmail.com>
Cc: OCaml Mailing List <caml-list@inria.fr>, forum@x9c.fr
Subject: Re: [Caml-list] Invoking Java programs from an OCaml program
Date: Mon, 21 Dec 2015 09:53:51 +0100	[thread overview]
Message-ID: <7ec2cb73247b8680e241c1baa44cb5c9@x9c.fr> (raw)
In-Reply-To: <CAARf2izyr6+6Zhto9bsnMz0W-fe1EHcU7mgEzLEOz8gTZoETug@mail.gmail.com>

Le 18.12.2015 11:25, Seungcheol Jung a écrit :

(...)


> 1. OCaml-Java
> From my understanding, OCaml-Java[1] compiles OCaml code into byte code 
> and
> packs the byte code, interpreter, and Java code into one Java 
> application. It
> looks more like embedding OCaml code in Java, not getting some help 
> from
> Java. So it does not satisfy my pro-OCaml taste. I am also concerned 
> about
> slowdowns due to byte code and interpreter.

OCaml-Java actually compiles OCaml code to *Java* bytecode, meaning that 
no
OCaml interpreter is involved. Of course, the ocamljava-compiled 
programs are
slower than ocamlopt-compiled ones; however, the factor is heavily 
dependent
on the kind of computation.

Currently the rule of thumb is that ocamljava-compiled code is roughly 3 
times
slower, with numerical code on par and "massively functional code" much 
slower
(sometimes 10x slower).


Hope this helps,

Xavier

  parent reply	other threads:[~2015-12-21  8:54 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-12-14 16:40 Soichi Sumi
2015-12-14 17:25 ` Chan Ngo
2015-12-15  5:21   ` Paul Pelzl
2015-12-16 13:29     ` Chan Ngo
2015-12-18 10:25       ` Seungcheol Jung
2015-12-18 22:55         ` Sebastien Ferre
2015-12-21  8:53         ` forum [this message]
2015-12-15  9:06 ` forum

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=7ec2cb73247b8680e241c1baa44cb5c9@x9c.fr \
    --to=forum@x9c.fr \
    --cc=caml-list@inria.fr \
    --cc=scjung.hyu@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).