|Do we really need virtual machines? Nicola.Musatti@ObjectWay.it (2004-10-02)|
|Re: Do we really need virtual machines? firstname.lastname@example.org (Scott Moore) (2004-10-02)|
|Re: Do we really need virtual machines? email@example.com (Dobes Vandermeer) (2004-10-02)|
|Re: Do we really need virtual machines? Juergen.Kahrs@vr-web.de (=?ISO-8859-1?Q?J=FCrgen_Kahrs?=) (2004-10-02)|
|Re: Do we really need virtual machines? firstname.lastname@example.org (Basile Starynkevitch \[news\]) (2004-10-04)|
|Re: Do we really need virtual machines? email@example.com (Joan Pujol) (2004-10-04)|
|Re: Do we really need virtual machines? firstname.lastname@example.org (Scott Moore) (2004-10-04)|
|Re: Do we really need virtual machines? email@example.com (John Slimick) (2004-10-04)|
|Re: Do we really need virtual machines? firstname.lastname@example.org (2004-10-09)|
|Re: Do we really need virtual machines? email@example.com (Tony Finch) (2004-10-09)|
|Re: Do we really need virtual machines? Nicola.Musatti@ObjectWay.it (2004-10-09)|
|Re: Do we really need virtual machines? firstname.lastname@example.org (Daniel C. Wang) (2004-10-09)|
|[8 later articles]|
|From:||Joan Pujol <email@example.com>|
|Date:||4 Oct 2004 00:40:10 -0400|
|Posted-Date:||04 Oct 2004 00:40:10 EDT|
On 2 Oct 2004 16:35:11 -0400, Jürgen Kahrs <firstname.lastname@example.org> wrote:
> Has anyone ever noticed that the "standard libraries" that come with
> Java and C# are attempts to recreate Unix-like Operating Systems ?
Yes, this is true. But I think that this attempts are very useful.
> Including APIs for memory, file system, scheduler, terminal, printer,
> network, clock, GUI ... O'Reilly publishes dozens of Java books. What
> are they all about ? Library details; most of them becoming obsolete
> if C# succeeds. Stuffing Java library details into my brain seems like
> a waste of brain capacity.
I don't agree with your opinion. I have done some big java
applications and I can run them with Windows, Solaris and Linux with
ANY problems and without needing to compile again. In fact, I don't
need to modify anything. And this is true because Sun has done the
effort to recreate the standard libraries and unify them in the java
And if you use for example C++ , that is possible the most standard
language, with standard libraries you have more problems with
portability. Because the standard libraries don't covers all of the
functionallity you want in most of your programs. And you have to use
system dependent libaries. For example what if you want to do an app
with a GUI? (Yes, you have QT, but...) And also there are compilers
incompatibilities. A lot of times you have some code that runs well
with GNU G++ but not with MSVC.
Well, in conclusion, I think that the simple fact to do a VM don't
solves your portability in a magic way. In every platform you want to
run code, you should battle writting a VM2NativeCode and also portting
libraries if you define them. But I think that this isn't a waste of
And about Nicola:
>I gain from a virtual machine that I don't already get from a good old
>compiler/runtime support/standard library chain.
I think that if you implement this you can get the same functionality
that you can get with a VM (except that you should compile in every
platform). But in constrat you will have more or at least the same
work to do that with a VM. And an advantage of a VM, is that you can
get a VM like JVM that has been already done.
Joan Jesús Pujol Espinar
Return to the
Search the comp.compilers archives again.