Version française
Home     About     Download     Resources     Contact us    
Browse thread
[Caml-list] Alternative Bytecodes for OCaml
[ Home ] [ Index: by date | by threads ]
[ Search: ]

[ Message by date: previous | next ] [ Message in thread: previous | next ] [ Thread: previous | next ]
Date: -- (:)
From: Ville-Pertti Keinonen <will@e...>
Subject: Re: [Caml-list] Alternative Bytecodes for OCaml
John Goerzen wrote:

>>2. You now can run python on every platform that supports a Java
>>Virtual Machine
>>    
>>
>
>Yes, this is a key benefit, and would apply to both Python and OCaml.
>
>Let's say you've got an Python program and you'd like to make it easily 
>runnable for as many people as possible.  You know that most of them 
>have a JVM available.  So you could just distribute a .JAR file and 
>poof -- instant app.  Runs on OS X, Windows, Linux, BSD, etc.
>
>Now, s/Python/OCaml/ and perhaps s/JVM/.NET/.  You get the idea.
>
Whaat?

I use far more platforms that don't have Java available (at least a 
decent version thereof) than platforms that don't support Python and OCaml.

In fact, name a single platform that has a complete, up-to-date Java 
implementation available but doesn't have Python or OCaml available.  
I'll name one that has Python and OCaml but not Java, which I'm using 
right now to write this - FreeBSD/amd64 (ok, an i386 FreeBSD native or 
Linux emulated JDK might work in compatibility mode, but Python and 
OCaml are both amd64 native on this machine).

The other reasons for targeting JVM or .NET are valid (I can add one - 
in the case of Python, getting a non-reference-counting garbage 
collector might be a significant advantage), but every time I hear 
someone arguing in favor of Java for portability, I think of the many 
times I've been able to natively compile all C programs I might need but 
have had to give up on using Java programs...

Sure, it may be that a JRE is already installed for most of your users, 
but this isn't really relevant when the alternative could be natively 
pre-compiled (having one distribution file for all architectures is a 
pretty minimal advantage), and I regularly run into programs written in 
Java that are platform-specific and are shipped with their own copy of a 
JRE...  Sometimes because of the specific version required, sometimes 
for no reason, sometimes because the official JREs have bugs that the 
vendor had to fix themselves to get their software to work.

-------------------
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