Originally posted by Jim Yingst:
[QB]And now more recently-written stuff. (Had to split posts; I ran out of smilies.)
[Max]: I find it ironic, given the Goode vs. Eveile thread, that you're supporting arguments that are 'generally true'. Irony makes me laugh, laughter puts me in a good mood, and a good mood makes me tease people.
Ah, I see. From my perspective the difference is:
How about basing it on the premise that it's pretty darn unlikely, and even if it does, it's not as though our architecture has become crippled, it's just not quite as fast as an alternative design which we had discarded based on a premise that turned out not to be true?
[Jim]: Have you given up you wayward ways then, and joined the Forces Of Light?
Couldn't tell what this was in reference to. Though for a good answer is "probably not".
[Max]: How about "In general, I believe that Hashmap.get() is faster then hashmap.containsValue(). I can't prove this, and would never assert it as anything more then my belief..".
Eh, too wimpy. How about "All commonly-available versions of java.lang.HashMap implement containsValue()
OK, that was longer than originally intended. Maybe just the first sentence or two is sufficient for most cases. But you get the idea.
[Max]: Jim's a terrific and experienced developer, and one of the fairest people I've ever met.
Aww, now how am I supposed to stay irritated with Max after that?
"I'm not back." - Bill Harding, Twister
Originally posted by Jim Yingst:
It's not a good idea, IMO, to design for a particular implantation of the JDK.
Agreed. I think of my approach as simultaneously designing to avoid the worst-case allowable behavior on any JDK, while also achieving the best typical behavior on commonly available JDKs (with no known exceptions currently). This should be avoided?
It seems like you're the one pinning your arguments on a particular JDK that doesn't even exist, and if it did, its merits would still be undocumented in the API for HashMap. You prefer to design for undocumented (and currently nonexistant) behavior?
I actually read the above @ Sun, almost verbatim.
Really? Hmmm, maybe I should apply for a job there.
Regardless of the merits of point, your example is in the wrong category here. That is, there is no actual benefit to just slowing FileChannels down. There is, however, a reasonable benefit to a different HashMap implementation in order to offset it's memory usage.
Dunno Max, that sounds dangerously close to applying some of that icky common sense to make an assertion that you don't really know and can't prove.
More seriously, I agree that this sort of FileChannel hacking is even less justified than what you suggest for HashMap.
But I still think you're seriously overestimating the likelihood of Sun ever modifying the main java.lang.HashMap class the way you suggest. If they want to do it, they'll make a new class that also implements Map, but has an API which very clearly states how it's different from a conventional HashMap. Well, unless they accidentally leave off useful info from the API, as sometimes happens.
Yep. (Hah, you do read MD!) But what I meant was that I wasn't sure how this connected to our conversation.
Looked through all of them, have you
Nope, just a few. Find anything to contradict me, or does your research support my assertions?
Are you really irritated? I'd be disappointed.
Well I get irritated at little things all the time; passes quickly and means nothing. This is in that same category. But for most of it, I'm having fun while concocting my responses. You too, I hope. Cheers...
Originally posted by Eugene Kononov:
Well, my hobby is bare knuckle boxing(mouthpiece, cup, all targets open, all techniques legal).
If you were to choose between being a sadist or a masochist, what would you be, Max?
Originally posted by Eugene Kononov:
Max: a pacifist, of course
Good. We need you badly in the popular MD thread as a pacifier, -- some people use bare knuckles there, and no one has either a mouthpiece or a cup.
Originally posted by Eugene Kononov:
heh. You couldn't get me near that crap for all the beer in England.
Just one more question, Max (I know, this discussion doesn't even remotely belong here, but after all you made the first reference to the outside subject). I thought martial arts was as much about the power of body as it is about the power of mind. Do you subscribe to that principle?
Let nothing stop you! Not even this tiny ad:
We need your help - Coderanch server fundraiser
https://coderanch.com/wiki/782867/Coderanch-server-fundraiser
|