mIRC Home    About    Download    Register    News    Help

Print Thread
Page 2 of 3 1 2 3
#49555 15/09/03 04:24 PM
Joined: Dec 2002
Posts: 2,809
C
Hoopy frood
Offline
Hoopy frood
C
Joined: Dec 2002
Posts: 2,809
I don't doubt that, however, what I'm more inclined to believe is, you ran it to output 5000 iterations, and 4999 said while was faster and only one said goto was faster.

#49556 15/09/03 05:42 PM
Joined: Jan 2003
Posts: 3,012
Hoopy frood
Offline
Hoopy frood
Joined: Jan 2003
Posts: 3,012
lmfao codemastr... And kudos to using the word "iterations" as well >:D Not many know the term


-KingTomato
#49557 15/09/03 05:46 PM
Joined: May 2003
Posts: 2,265
P
Hoopy frood
Offline
Hoopy frood
P
Joined: May 2003
Posts: 2,265
including me;\


new username: tidy_trax
#49558 15/09/03 05:51 PM
Joined: Jan 2003
Posts: 3,012
Hoopy frood
Offline
Hoopy frood
Joined: Jan 2003
Posts: 3,012
An interation, to the layman, is one run through a repetative statement. Meaning if you wanted to do:

var %a = 0
while (%a < 3) {
...
}

that runs 3 iterations. There, now you can tell your parents and sound like a computer geek.

The Few. The Proud. The Geeks.


-KingTomato
#49559 15/09/03 08:03 PM
Joined: Mar 2003
Posts: 1,271
L
Hoopy frood
Offline
Hoopy frood
L
Joined: Mar 2003
Posts: 1,271
There is a simple point in all this: things that are reported to be true are not accepted until the same results can be reproduced by others. So until someone other than you can produce output which produces the results you give (heck, until YOU can give such code to begin with), your claim has no value whatsoever. This has nothing to do with opinion, it's the way the scientific world works. Remember a while back some guys discovered nuclear fusion (or fission) at room temperatures? No one belueves they did, cause no one could reproduce it. the same principle applies here.

Second - others have reported the same results as me, backup up my claim.

Thirdly, (again) - until you can back your claim with data, it has no meaning. You still have not made a singler attempt to back up your statement.

PS: CODEMASTER: I did check that the amt of iterations in my code is the same, in both loops it is exactly 50,000.


DALnet #Helpdesk
I hear and I forget. I see and I remember. I do and I understand. -Confucius
#49560 15/09/03 08:26 PM
Joined: May 2003
Posts: 2,265
P
Hoopy frood
Offline
Hoopy frood
P
Joined: May 2003
Posts: 2,265
ive still not been proven wrong.....


new username: tidy_trax
#49561 15/09/03 08:40 PM
Joined: Mar 2003
Posts: 1,271
L
Hoopy frood
Offline
Hoopy frood
L
Joined: Mar 2003
Posts: 1,271
Yes you have. Several people have posted scri[pting results that prove the while loop to be faster. Until you prove otherwise (backed up by code and test results), you have not made any claim worth anything.

The point of a discussion such as this is to convince the other guy that you are right and he is wrong by the strength of your arguments. So far, I have posed a piece of code with the result, and others have posted results, all supporting my arguments. The only argument you have posted so far is "my computers is different than yours". This is not a valid argument in any discussion.

As said in my previous post - until you can substantiate your claim with a code and results, your claim has no value. If you do not understand this concept - try reading a book on the art of good debating or a good discussion - they will all tell you the principal factor is good arguments. You have not ptovided any. So please provide these arguments (reproducable ones, that's what it's all about) or stop saying the same unsubstantiated thing over and over, as it is not very productive in this discussion.


DALnet #Helpdesk
I hear and I forget. I see and I remember. I do and I understand. -Confucius
#49562 15/09/03 08:44 PM
Joined: May 2003
Posts: 2,265
P
Hoopy frood
Offline
Hoopy frood
P
Joined: May 2003
Posts: 2,265
like i said, you can only prove it works faster on MOST computers... not all :tongue:, thats what ive said from the beginning, goto loops work faster on MY computer, so you cant say "goto loops are slower because they are on most peoples", so therefore i still havent been proven wrong.....


new username: tidy_trax
#49563 15/09/03 09:00 PM
Joined: Dec 2002
Posts: 2,809
C
Hoopy frood
Offline
Hoopy frood
C
Joined: Dec 2002
Posts: 2,809
Thats not true at all. If you think it is, I suggest you purchase a fantastic book called "Introduction to Algorithms."

All x86 processors are fundamentally the same, some are faster than others, but they are all the same. What I mean by this is (to make up some numbers), if a 500mhz takes 1ms to do an add operation and 100ms to do a multiply, then a 1000mhz takes .5ms to do an add and 50ms to do a multiply. The time it takes to do the multiply is less in the 1000mhz than in the 500mhz, but it is and ALWAYS will be more than the time it takes to do an add operation. The same holds true here. If the goto code uses operations that are ALWAYS slower than the ones used in the while loop, then it will ALWAYS be slower. For you to argue against that simply means you don't understand how a computer works. It is 100% possible, and also very common to be able to tell if an algorithm will ALWAYS be slower than another. There is an entire branch of computer science and of math that deals with it.

If you want to disagree, you are welcome to do so, but you are wrong.

#49564 15/09/03 09:02 PM
Joined: May 2003
Posts: 2,265
P
Hoopy frood
Offline
Hoopy frood
P
Joined: May 2003
Posts: 2,265
ok, i must be wrong that: 0.17 seconds is slower than 0.131 shocked


new username: tidy_trax
#49565 15/09/03 09:06 PM
Joined: Dec 2002
Posts: 2,809
C
Hoopy frood
Offline
Hoopy frood
C
Joined: Dec 2002
Posts: 2,809
*sigh* you just don't want to listen do you? You're the guy who argues that flipping a coin is not a 50:50 chance because it has been proven that 1 out of about every 10^230 flips the coin will land on its edge.

#49566 15/09/03 09:07 PM
Joined: May 2003
Posts: 2,265
P
Hoopy frood
Offline
Hoopy frood
P
Joined: May 2003
Posts: 2,265
you cannot say IT IS faster, you can only say IT IS FASTER THE MAJORITY OF THE TIME.


new username: tidy_trax
#49567 15/09/03 09:11 PM
Joined: Dec 2002
Posts: 2,809
C
Hoopy frood
Offline
Hoopy frood
C
Joined: Dec 2002
Posts: 2,809
No I can say it is faster EVERY time. You don't know how a processor works. When the while loop was executing, perhaps your virus scanner was scanning and eating 100% CPU, and when the goto test was running it was not. That means the while loop goes slower because THE CPU IS BUSY DOING OTHER THINGS. IT DOES NOT MEAN THAT THE WHILE LOOP IS SLOWER, IT MEANS THE CPU DIDN'T EXECUTE THE CODE IT WAS BUSY DOING SOMETHING ELSE.

If you can't understand that, then I'll just say, yes goto is faster, always use goto, every single other person agrees that while is faster, but I'm sure you're the one who is right.

#49568 15/09/03 09:16 PM
Joined: May 2003
Posts: 2,265
P
Hoopy frood
Offline
Hoopy frood
P
Joined: May 2003
Posts: 2,265
i didnt say it wasnt right, is it so hard to understand that there is no such thing as an absolute truth?


new username: tidy_trax
#49569 15/09/03 09:25 PM
Joined: Dec 2002
Posts: 2,809
C
Hoopy frood
Offline
Hoopy frood
C
Joined: Dec 2002
Posts: 2,809
Is that a joke? Seeing as how the worlds greatest philosophers have been arguing over the existence of an absolute truth for hundreds of years, YES it is hard to accept you saying there is no such thing as an absolute truth. If the greatest philosophers can't agree on it, why the hell would I assume you are so enlightened that you know the answer that none of them can figure out?

#49570 15/09/03 09:26 PM
Joined: May 2003
Posts: 2,265
P
Hoopy frood
Offline
Hoopy frood
P
Joined: May 2003
Posts: 2,265
because things change, things react differently in different places(goto on my comp...).
edit:
i only go by what i think, not what the 'greatest philosophers' think.


new username: tidy_trax
#49571 16/09/03 04:11 AM
Joined: Mar 2003
Posts: 1,271
L
Hoopy frood
Offline
Hoopy frood
L
Joined: Mar 2003
Posts: 1,271
[deleted by poster]

I had some arguments left and some new ones, but I don't see the point. Sorry for wasting everyone's time going back here to see.


DALnet #Helpdesk
I hear and I forget. I see and I remember. I do and I understand. -Confucius
#49572 16/09/03 02:37 PM
Joined: May 2003
Posts: 2,265
P
Hoopy frood
Offline
Hoopy frood
P
Joined: May 2003
Posts: 2,265
i tried another 10 and while was faster every time;\


new username: tidy_trax
#49573 16/09/03 03:41 PM
Joined: Feb 2003
Posts: 810
C
Hoopy frood
Offline
Hoopy frood
C
Joined: Feb 2003
Posts: 810
LOL, you gotta be kidding. :tongue: smile


* cold edits his posts 24/7
#49574 16/09/03 03:51 PM
Joined: May 2003
Posts: 2,265
P
Hoopy frood
Offline
Hoopy frood
P
Joined: May 2003
Posts: 2,265
my goto massmode is faster than a while massmode though;\


new username: tidy_trax
Page 2 of 3 1 2 3

Link Copied to Clipboard