Software development industry analysis by Larry O'Brien, the former editor of Software Development and Computer Language
Thursday, July 10, 2003

No penalty for programming J#.

Contrary to rumors that I've heard, I can find no runtime penalty for code written in J# as opposed to other .NET languages and specifically C#. The one significant difference I've seen in IL generated by the vjc (J#) and csc (C#) command-line compilers is that all Java instance methods are (correctly) virtual, while C# methods default (correctly) to non-virtual. That's a difference in the languages' designs that might lead to a measurable performance difference in the speed with which methods are called (perhaps that is what is going on in the Cholesky benchmarks?).

Something I'd heard, which turns out to be incorrect, is that J#'s implementation of inner classes was flawed. Inner classes are real nested classes at the IL level. So, if you prefer anonymous inner classes to delegates, J#-away with no hesitation.

Thursday, July 10, 2003 5:00:27 AM (Hawaiian Standard Time, UTC-10:00) |  Disqus link  | #
Search
About Larry...
Flickr photostream
Subscribe: RSS 2.0 Atom 1.0
Popular Articles
Programming Sabre with Java, C#, and XML
Genetic Programming in C#
15 Exercises To Know A Programming Language
Top 10 Things I've Learned About Computers From the Movies and Any Episode of "24"
Recently Published Articles
HI
KonaKoder
Categories
Archive
Admin Login
Sign In
Toolroll