Spoken like a true zealot. The difference between us is that I've used
both Java and .NET in a professional capacity, and you obviously have
not. If you did, you wouldn't have any questions about the performance
and stability of CLR.

>> it's also much more primitive than modern JVMs

I'd say it's a bit simpler than modern JVMs, and if anything, that's
an advantage. It's a lot easier to walk if you don't shoot yourself in
both feet to begin with like Sun did. And they need dynamic runtime
for the same exact reason why Sun is adding dynamic extensions in Java
7 - so that dynamic languages would get a bit faster. As a heavy user
of Groovy and an occasional user of IronPython, I'm glad they're
putting in the effort.

Regarding the benchmarks, just for the heck of it, I've grabbed the C#
and Java variants of Manderlbrot benchmark from Language Shootout site
(http://shootout.alioth.debian.org/u32q/csharp.php), compiled them
both for Java (using JDK 1.6.0_17) and .NET (using v3.5 of C#
compiler) and ran them on my Windows 7 box (4GB RAM, 3-core Phenom II
@ 2.8GHz). With identical parameters, .NET version takes 14 seconds,
and Java version takes 16 seconds (yes, I did use the server runtime
in Java's case). I can post the exact command lines and source code,
or you can grab the source code and verify yourself.

Likewise, the Fannkuch benchmark took 22 seconds on CLR vs 24 seconds
on Server JRE, and there's a version of this benchmark optimized for
CLR (using unsafe code, stack allocation and pointer math) that
completes in 15 (!) seconds.

Try it yourself if you have access to a Windows machine, those
microbenchmarks are not that hard to run. So much for CLR being
"nowhere near" JVM. If you want a larger, more realistic "benchmark",
compare Lucene.NET to Lucene. It runs substantially faster, despite
being pretty much a straight, class-for-class port of Java code.

On Dec 14, 10:05 am, Marcin Mielżyński <[email protected]> wrote:
> On 2009-12-14 02:26, DMB wrote:> That's a common misconception among Java 
> folks. Leaving aside the
> > relative merits of the various web frameworks, .NET runtime is about
> > 10% faster on Windows in steady state than Sun Server JRE, and it uses
>
> Back it up by a decent benchmark, otherwise tell me where would .NET end
> up here:http://www.stefankrause.net/wp/?p=6
>
> It's a common misconception among .NET folks that they think what they
> think.> half as much RAM to boot. Mono is slower than JRE (aside from app
> > start-up times, which are faster), but its memory consumption profile
> > is similar to that of Microsoft runtime. It helps when the runtime is
>
> Because .NET is not dynamic enough, it doesnt have runtime profiling
> etc, why did they need DLR then ? (And how much memory does it use ? :)
>
> > actually designed in a way that doesn't make methods virtual by
>
> I cant see the point. Can .NET devirtualize virtual methods ? (JVMs can
> completely devirtualize abstract method callsites too and inline them
> without guards if there's single implementer)
>
> > default, has reified generics, bytecode that's optimized for JIT, and
>
> Generics yest, it's a plus, but .NET jit is NOWHERE near modern JVMs.
>
> > easy to use infrastructure to write your own compilers (which enables,
> > e.g. precompiled ASPX pages and regexes).
>
> Offline compilation kills peak performance.> .NET is not really an option in 
> the open source world (for a variety
> > of well known reasons), but make no mistake -- it is a technically
> > superior runtime in most aspects that matter. I'm hoping LLVM will
> > close the gap on the Linux/UNIX side.
>
> > I think today's Sun JRE does a good job given what it has to work
> > with, but it's crippled from the start by some unfortunate design
> > choices, and I don't see much improvement anywhere on the horizon,
> > aside from the dynamic extensions and OSGI in Java 7. Which is why
> > people are looking at e.g. Scala. Once the developer tries closures
> > and functional programming on sequences, it's kinda hard to go back to
> > Java.
>
> Yes, .NET learned bunch of things from Java and many mistakes has been
> fixed, but it's also much more primitive than modern JVMs, also, it's
> specification isn't that demanding.
> It's also light years behind in terms of optimization tricks, stability
> and portability.
>
> lopex

--

You received this message because you are subscribed to the Google Groups 
"Lift" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/liftweb?hl=en.


Reply via email to