Oops, my mistake on the loop.
Oops, my mistake on the loop.
Have you checked out the front page lately?
Projects:
Moe's Tavern | Sponsored by: Mimo Monitors, Crucial, Thermaltake
Book Of Knowledge
yeah, what I meant was that you want to keep the loop for counting as small as possible. At first I had another line of code in my loop, I believe that was for displaying the number 'líve'. I took a heck of a lot more time then... So like you said, as little as possible instructions in the loop.
btw has anybody started with a refined, better, faster program?
Without devolving into assembly, I'm not exactly sure how to make things any faster. I have implemented Trace's method in C++, which takes 0ms for any number to complete for reasons discussed earlier. There may be slightly faster libraries for C++ dynamic arrays, the boost libraries come to mind. wxWidgets supposedly have a faster dynamic array as well. I guess I could see if they make any difference. Really, what I'd like to see Trace modify his java to store the values (preferably in an array/vector) and see how fast that is.
I knew full well that my program wouldn't win, but I wanted to be able to see how a basic counting vector versus an optimized one would run, and that right there shows you the difference.
mtekk, I'll see what I can do in the way of the java.
Idea: Let's get teams together of the same language and come up with a new challenege to see which language and team is the best.
Have you checked out the front page lately?
Projects:
Moe's Tavern | Sponsored by: Mimo Monitors, Crucial, Thermaltake
Book Of Knowledge
We could always play Perl golf, or something similar with a different language.
Or my favorite, obfuscation.
I'm not creative enough to think of a funny sig. Just quietly laugh to yourself and I'll be happy.
I'll come up with some ideas and post a poll in the chatterbox for you programmers to vote on.
Have you checked out the front page lately?
Projects:
Moe's Tavern | Sponsored by: Mimo Monitors, Crucial, Thermaltake
Book Of Knowledge
i was thinking of making this a monthly thing, every month or 2 months or 3 months or so,
Set a new challange for coders to write a program and then run them on a test platform to see who wins, there may even be a long one with teams for prizes.
Ooooo.... I like the sound of that.
yeah, me too. I like to program a few simple things every once in a while...
_count_ me in (pun intended)