Mailing Lists: Apple Mailing Lists

Image of Mac OS face in stamp
 
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Mac OS X Java Performance



On Thursday, July 31, 2003, at 11:28 AM, Hall, Michael J. wrote:

Should the JVM qualifications include performance requirements as part of the behavior spec?

From my perspective, this would be useful. Of course, to do that, they would need to get experts in the areas of interest. No engineer is an expert in everything - go look at the Java Grande complaints about how they did numerics for an example of what an expert can provide.

What then when the Mac meets it and Windows overachieves it? Some developer moving over from Windows to Mac is still going to be just as badly off when all of a sudden his code slows down.

Sure - but if the spec implies, or says outright, that one should always buffer, then one should. Just like it currently says that println on a socket is not the right way to write code. Sure, it works on Windows without it, but it is not actually correct. Things fail.

Perhaps a better way of saying this is to say that part of the JVM spec should be a set of best practices that are generated for several wildly different platforms. This would go a long way towards helping WORA.

Again, doesn't a+b = c just sort of oversimplify?

It was provided as an example of why primitives existed in Java. For that case, Gosling demanded optimal performance of a+b being one machine instruction. There are other cases, but this one is the use case for primitives.

Scott
_______________________________________________
java-dev mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/java-dev
Be sure to read the FAQ http://developer.apple.com/java/faq/ before posting
Do not post admin requests to the list. They will be ignored.



Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2007 Apple Inc. All rights reserved.