News for hackers. Stuff that matters.
Re:The future of .NET by Raphael_Amiard on Sunday October 21, 2012 @06:36AM (#4679417)
> Second, performance is as good or better than pretty much anything else that is not optimized C or C++

You are kind of overlooking the JVM here.

Also Mono is kind of portable, and .Net on windows is fast, but you can't really have both (even if Mono performance is decent)

Re:The future of .NET by migueldeicaza on Sunday October 21, 2012 @12:55PM (#4680056)
In Mono we cheat.

We cheat, because we are able to use the work of the brilliant hackers over at LLVM.

So in addition to Mono's code gen, you can opt into using LLVM, like this:

mono --llvm myBenchmark.exe

It take a lot longer to start, compared to Mono's fast-JIT, but for any long-running HPC, financial simulation or physics simulation, you can not get better than this.

The speed of LLVM, the safety and productivity of C# (or F#)

Re:The future of .NET by qznc on Sunday October 21, 2012 @06:43AM (#4679424)
Theoretically, the CLR-VM should be able to reach better performance than the JVM, since it has value-types. Within the JVM an array of some objects is really an array of references, which is bad for your hardware caches and requires an additional pointer dereference. The question is how significant that is for non-numerical applications.
Re:The future of .NET by Someone on Sunday October 21, 2012 @08:37AM (#4679569)
Theoretically, your sufficiently advanced compiler and/or JVM will figure out where they can replace objects by value types. So, theoretically, that does not matter.

The difference should be visible in practice, though. AFAIK, it is not really visible, though. That probably is because the JVM has been tuned longer.

Re:The future of .NET by migueldeicaza on Sunday October 21, 2012 @12:50PM (#4680038)
In practice, value types are a huge performance differentiator.

That is why even the simplest benchmarks involving value types tend to beat Java's optimized code gen.

Re:The future of .NET by azth on Sunday October 21, 2012 @05:51PM (#4680968)
Isn't Scala 2.10 introducing value types that are beneficial for situations like this? I don't know about any potential limitations though.
Re:The future of .NET by codewright on Sunday October 21, 2012 @06:38AM (#4679419)
>You are kind of overlooking the JVM here

I did criticize OP too, but you'll note that he made a point of saying that C# was nicer than Java. The fact that he isn't aware the JVM has more than just Java, is an issue I attempted to redress.

Re:The future of .NET by throwAway7936 on Sunday October 21, 2012 @07:07AM (#4679451)
How can you claim that I'm not aware that the JVM is more than Java? I did not even mention the JVM.