Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsWhite Papers
Discussion GroupsFirst AidDatabasesJavaBeansGUIJava 3DVirtual MachineCORBASecurityToolsGeneral
Java DirectoryOpen Source ProjectsSample Book ChaptersUser GroupsWeb Resources
Related Topics
Databases.NETMore Topics ...

Java Forum / Virtual Machine / October 2007

Tip: Looking for answers? Try searching our database.

JVM vs .NET

Thread view: 
Jon Harrop - 06 Oct 2007 06:37 GMT
I'm relatively new to both the JVM and .NET and am learning Scala and F#. I
was under the impression that .NET was essentially a later and greater
reimplementation of the JVM in a Windows-specific form. However, I've just
discovered some nasty caveats in .NET.

Specifically, if you generate and use regular expressions the obvious way
then .NET leaks memory because it performs run-time compilation to improve
performance but fails to garbage collect the generated code when it is no
longer needed. There are workarounds but I've yet to see a solution that
can even garbage collect code under .NET properly, let alone an elegant
solution.

So I'm wondering what the JVM crowd have to say about the relative
deficiencies of the JVM and .NET. Does the JVM garbage collect code
correctly? Are there glaring flaws in the JVM?

I'm aware of the array covariance problem in the JVM.

Signature

Dr Jon D Harrop, Flying Frog Consultancy
http://www.ffconsultancy.com/products/?u

EricF - 07 Oct 2007 05:34 GMT
>I'm relatively new to both the JVM and .NET and am learning Scala and F#. I
>was under the impression that .NET was essentially a later and greater
[quoted text clipped - 13 lines]
>
>I'm aware of the array covariance problem in the JVM.

The JVM does a good job of garbage collecting, though 1 can write code with
memory leaks. At my previous company, our Java app servers ran 24 by 7 for 3
months bewfore being bounced, and that was because we relased new applications
quarterly. This was on Solaris.

There is a 2 gig memory limit on Windows for a Java process. This is a Windows
constraint.

Eric
Roedy Green - 11 Oct 2007 02:19 GMT
> can write code with
>memory leaks.

do you mean leaks or packratting?

See http://mindprod.com/jgloss/packratting.html
Signature

Roedy Green Canadian Mind Products
The Java Glossary
http://mindprod.com

Roedy Green - 11 Oct 2007 02:18 GMT
>So I'm wondering what the JVM crowd have to say about the relative
>deficiencies of the JVM and .NET. Does the JVM garbage collect code
>correctly? Are there glaring flaws in the JVM?

.net's main problem is it single source. You are trusting a company
with a bad record of betraying trust.

.net's big advantage is you can also do low level unsafe code in it.
With the JVM you must revert to C++ and native code.

.net is designed for compilation.  Java is designed for interpreting
and hotspotting. Java allows elaborate dynamic run time tricks.

Both are in theory multiplatform, but JVMs have been much more widely
implemented.

.net was designed to support a wide variety of languages.  Java was
designed specifically for Java, though it supports many others too.
Signature

Roedy Green Canadian Mind Products
The Java Glossary
http://mindprod.com

Gordon Beaton - 11 Oct 2007 17:34 GMT
> Both are in theory multiplatform, but JVMs have been much more widely
> implemented.

Mono, an open source implementation of .NET, runs on more platforms
than Java judging from the long list of OS and HW platforms they list.

http://www.mono-project.com

/gordon

--
Nikolaus Wagner - 12 Oct 2007 22:41 GMT
>> Both are in theory multiplatform, but JVMs have been much more widely
>> implemented.
[quoted text clipped - 3 lines]
>
> http://www.mono-project.com

Well, it would be fine if Mono ran anything with a GUI :-(
(Well, a Windows.Forms GUI, not Gtk# or whatever)
Paint.net or Sharpdevelop running on Mono would be nice, but may never
be.


Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.