Version française
Home     About     Download     Resources     Contact us    
Browse thread
RE: [Caml-list] F#
[ Home ] [ Index: by date | by threads ]
[ Search: ]

[ Message by date: previous | next ] [ Message in thread: previous | next ] [ Thread: previous | next ]
Date: -- (:)
From: Brian Smith <brian-l-smith@u...>
Subject: O'Caml, JVM, and .NET (was Re: [Caml-list] F#)
I have looked over the archives and I have seen there has been a fair 
amount of discussion on compiling O'Caml to JVM bytecode or the .NET 
intermediate language. The primary advantage cited seems to be reuse of 
.NET and J2SE/J2EE libraries. People have said that compiling O'Caml to 
JVM/.NET is difficult because of mismatches in the .NET/JVM object model 
and the O'Caml object model.

But, would it be easier to reuse Java libraries by:
   * extending the O'Caml runtime to be able to interpret JVM bytecodes
     (i.e. be able to dynamically link to *.class and *.jar files), or
   * cross-compiling JVM bytecode into O'Caml bytecode, or
   * compiling Java source code into O'Caml bytecode

Similar questions apply for .NET, of course.

I would like to do more programming in O'Caml but it is sometimes 
difficult to choose O'Caml over Java when there are _so_ many libraries 
available for Java, with more added seemingly every day.

Thanks,
Brian

Don Syme wrote:
 > I chose to implement a core Caml compiler for .NET partly to test out
 > generics, but also because I want to be able to program against .NET
 > libraries using the language I love to program in, and reuse the
 > libraries and techniques I've developed.  I guess it's possible I'll
 > get a bit of flak from the Caml community about F#.

-------------------
To unsubscribe, mail caml-list-request@inria.fr Archives: http://caml.inria.fr
Bug reports: http://caml.inria.fr/bin/caml-bugs FAQ: http://caml.inria.fr/FAQ/
Beginner's list: http://groups.yahoo.com/group/ocaml_beginners