Re: Difference between .NET and Java
From: Chris Smith (cdsmith_at_twu.net)
Date: 07/08/04
- Next message: Thomas Weidenfeller: "Re: Converting a String to date"
- Previous message: Thomas Weidenfeller: "Re: analyzing core file of frozen application"
- In reply to: Jeremy Deats': "Re: Difference between .NET and Java"
- Next in thread: Tor Iver Wilhelmsen: "Re: Difference between .NET and Java"
- Reply: Tor Iver Wilhelmsen: "Re: Difference between .NET and Java"
- Reply: Roedy Green: "Re: Difference between .NET and Java"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Date: Thu, 8 Jul 2004 11:40:30 -0600
Jeremy Deats' wrote:
> I've seen diagrams that show .NET being compiled to byte code prior to MSIL,
> since I don't have this reference handy I'll just assume it was incorrect,
> however my understanding of the JIT process used by .NET is quite a bit
> different than the Java2 approach, see:
> http://www.gamespp.com/csharp/usingNETJITCompiling.html
It's quite unfortunate that such a thing exists on the web, but it
merely proves the adage that you can't trust everything you read or
hear. The article describes .NET JIT compilers just fine, without even
realizing that Java's JIT compilers work in *exactly* the same way.
Replace every .NET JIT statement with an equivalent Java one (i.e.,
replace references to MSIL with bytecode), and you get a bunch of true
statements.
The last paragraph of that article is wrong; no other way to put it.
It's not debatably wrong, and it's not a matter of interpretation, and
it's not merely misleading; it's pure unadulterated wrong! Java JIT
compilers take bytecode as INPUT and produce native machine code as
OUTPUT, in the same way that .NET JIT compilers do.
What is different is that .NET offers the potential to precompile a .NET
application to native code, whereas no well-known Java environment
provides that same option. This might have some impact on startup time,
but will have no appreciable impact on runtime speed once the program
has been running for any amount of time. The article you cite mentions
the same thing.
> I'd argue the usefulness of code refactoring, but that is subjective..
> IBM's current IDE product fall a bit short on delivering VS.NET style
> "intellisense" functionality and code generation, but the context sensitive
> help is another huge beneift that comes to mind. Not to mention the ease of
> managing solutions, maybe it's just my lack of experience with other IDEs,
> perhaps they should be more intuitive.
This comes down strongly to a matter of not only preference for
interface details, but also whether you develop code according to the
model that Microsoft has chosen to implement in Visual Studio. I've
never worked with VS.NET, but I have worked for years with prior
versions of Visual Studio. I consider code generation to be its
greatest weakness. The environment decides for you how you are going to
structure your code, and if that's not appropriate for your project then
too bad. (Part of this is also a complaint about class libraries that
assume you will be generating your code with VS, and therefore require
vast amounts of boilerplate code to set up a framework for the app.)
It's probably along a similar vein that I consider simple refactoring
support critical (at least renaming with references, and extracting and
inlining methods and fields; the rest are more rarely used).
I can say that having used Visual Studio 6 for about 2 years, and
Eclipse for about 2 years, I would gladly toss out Visual Studio for
Eclipse any day of the week. Perhaps VS.NET is a better product in
these regards; I'd love to be enlightened.
-- www.designacourse.com The Easiest Way to Train Anyone... Anywhere. Chris Smith - Lead Software Developer/Technical Trainer MindIQ Corporation
- Next message: Thomas Weidenfeller: "Re: Converting a String to date"
- Previous message: Thomas Weidenfeller: "Re: analyzing core file of frozen application"
- In reply to: Jeremy Deats': "Re: Difference between .NET and Java"
- Next in thread: Tor Iver Wilhelmsen: "Re: Difference between .NET and Java"
- Reply: Tor Iver Wilhelmsen: "Re: Difference between .NET and Java"
- Reply: Roedy Green: "Re: Difference between .NET and Java"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Relevant Pages
|