3 ms·
To clarify for other readers: I believe he means the JVM, not the Java language. I haven't been keeping up with Mono's development, but if they have C# 3.0, it
by snprbob86 17y ago
To clarify for other readers: I believe he means the JVM, not the Java language.
I haven't been keeping up with Mono's development, but if they have C# 3.0, it blows away Java right there. C# 3.0 is a functional programming gateway drug, but encourages high readability even for non-functional developers. However, that's not a fair comparison, as there are other great JVM languages such as Scala and Clojure.
As for Mono or the CLR vs the JVM, there has been a lot about this written on the net. You can find discussions about garbage collection, module systems, JIT performance, security, library support, etc.
Here's one example: MSIL is more rich than Java Byte Code. This makes writing compilers easier and can lead to better performance via unsigned types, objects on the stack, unsafe pointer use, etc. See: http://stackoverflow.com/questions/95163/differences-between-msil-and-java-bytecode http://stackoverflow.com/questions/95163/differences-between...
I'm not an expert on the CLR by any means, but I do quite a bit of C# development on Windows. I greatly prefer C# to Java, but couldn't really care less about CLR/Mono vs JVM. I'm really more interested in LLVM as a compile target for interop and optimization of open source languages.
- JulianMorrison 17y agoThe "Debian shootout" suggests the JVM is consistently faster, but more of a memory hog. http://shootout.alioth.debian.org/u32q/benchmark.php?test=all&lang=csharp&lang2=java&box=1 http://shootout.alioth.debian.org/u32q/benchmark.php?test=al...
- igouy 17y agoquad core, or not quad core - that is the question: http://shootout.alioth.debian.org/u32/benchmark.php?test=all&lang=csharp&lang2=java&box=1 http://shootout.alioth.debian.org/u32/benchmark.php?test=all...
- JulianMorrison 17y agoThe answer to the question seems to be "doesn't matter much", and the same for 64-bit. Java is always faster, nearly always fatter.
- igouy 17y agoMore of the Java programs have been re-written for quad core, which is partly why those programs faster and fatter.