From: Paul Pelzl <pelzlpj@gmail.com>
To: OCaml Mailing List <caml-list@inria.fr>
Subject: Re: [Caml-list] Invoking Java programs from an OCaml program
Date: Mon, 14 Dec 2015 21:21:11 -0800 [thread overview]
Message-ID: <CANk_VL+bq9ukB_HXtoJ1wAegKTAy+tBx05YPzeqhC8AA6OY93w@mail.gmail.com> (raw)
In-Reply-To: <8D722630-1CB1-413B-9F90-1F975FA5B64B@gmail.com>
[-- Attachment #1: Type: text/plain, Size: 790 bytes --]
On Mon, Dec 14, 2015 at 9:25 AM, Chan Ngo <chan.ngo2203@gmail.com> wrote:
> An alternative, if you want to do as follows:
> - Compile Java program to an executable (not jar file)
> - Call this executable and get the return values from it
>
> So you can think about Unix module in OCaml, you can use the standard I/O
> to realize a communication channel between your OCaml code and the
> executable Java.
> https://ocaml.github.io/ocamlunix/ocamlunix.html
>
>
If the data to be exchanged is structurally complex, then this technique
becomes difficult; a cross-platform serialization library can be very
helpful for generating appropriate serialization code in multiple
languages. As one example, Cap'n Proto has bindings for both Java and
OCaml: https://capnproto.org/otherlang.html
Paul
[-- Attachment #2: Type: text/html, Size: 1385 bytes --]
next prev parent reply other threads:[~2015-12-15 7:07 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 [this message]
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
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=CANk_VL+bq9ukB_HXtoJ1wAegKTAy+tBx05YPzeqhC8AA6OY93w@mail.gmail.com \
--to=pelzlpj@gmail.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