News for hackers. Stuff that matters.
Re:Why You Might Want To Consider Java And/Or Clojure For Yo... by bad_user on Thursday July 07, 2011 @12:13PM (#2739049)

     C# actually is quite good in many ways as well, but 
     unfortunately its open source counterpart (Mono) leaves
     it trailing a little bit behind on operating systems 
     other than Windows.
This is just an uninformed opinion. Mono is just better for desktop applications and games, in all ways that count.

Performance wise, Mono is much more predictable. The VM starts faster and doesn't need special warmup. If you don't like the VM, you can always compile ahead-of-time. It has stack-allocated values, unsigned integers and if you're inclined you can always come up with your own special 256-bit integers that are still stack allocated.

I wrote lots of data processing scripts this last year and Mono had better performance characteristics than Java. And that's before I tried plugging in Mono.SIMD which totally blew me away.

Writing bindings to C/C++ libraries using P/Invoke is a piece of cake. That's because Mono has richer primitives; in "unsafe" blocks of code you can even have pointers and pointer arithmetic.

For desktop apps you can create native interfaces with GTK+ on Gnome, Windows Forms / WPF on Windows and Cocoa on OS X. I mean, the bindings for GTK and Cocoa are state of the art as far as bindings go and on Windows .NET is just native.

And some people scoff at the idea of building a specific interface for each platform, but I never seen a Java desktop application that I haven't found nauseating. Qt Jambi is the only hope you have for something decent, but kind of sucks on OS X.

There are no comments on this comment yet.