Version française
Home     About     Download     Resources     Contact us    
Browse thread
Re: [Caml-list] Future of labels
[ Home ] [ Index: by date | by threads ]
[ Search: ]

[ Message by date: previous | next ] [ Message in thread: previous | next ] [ Thread: previous | next ]
Date: -- (:)
From: Xavier Leroy <Xavier.Leroy@i...>
Subject: Re: [Caml-list] ocaml, java, rmi and jini
> hi there, i'm interested in integrating java and jini with ocaml. i 
> understand that executing ocaml bytecode on JVMs might not be a 
> good idea, but what about the other way around: executing java (byte
> code) in an ocaml environment?

As Jacques Garrigue said, it is feasible to write a JVM interpreter in
OCaml.  However, performance will not be great, and more importantly
most of the Java API libraries will be missing (because the JVM
interpreter will not be able to deal with native methods).

> and what about integrating java RMI with ocaml? 

That's not a bad idea.  I think it makes more sense to
interoperate between languages at the level of RPC/RMI, e.g. using Sun
RPC, CORBA, Java RMI, SOAP, or whatever, rather than interoperating at
the level of the virtual machines.  The problem here is that there are
so many standards to choose from...  Also, while, say, CORBA or SOAP are
relatively language-neutral, I don't know how Java-specific Java RMI is.

For completeness, let me mention a third possibility that I've been
working on and off (mostly off lately): interface OCaml and Java
through the OCaml/C interface and through Java's native interface.

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