Page 11 of 12 FirstFirst ... 6789101112 LastLast
Results 101 to 110 of 113

Thread: Counting

  1. #101
    Overclocking Guru Trace's Avatar
    Join Date
    Aug 2007
    Location
    California
    Posts
    2,077

    Default Re: Counting

    Oops, my mistake on the loop.
    Quote Originally Posted by Lothair View Post
    I guess it's just widely used and has had some of the best people in the world work on it, costing a ridiculous amount of money, for no actual reason. :/
    Have you checked out the front page lately?
    Projects:
    Moe's Tavern | Sponsored by: Mimo Monitors, Crucial, Thermaltake
    Book Of Knowledge

  2. #102
    Water Cooled silverdemon's Avatar
    Join Date
    Jun 2006
    Location
    Delft, Netherlands
    Posts
    520

    Default Re: Counting

    Quote Originally Posted by mtekk View Post
    You mean every instruction, characters are 'free', the number of instructions is what is important.
    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?

  3. #103
    Resident EE mtekk's Avatar
    Join Date
    Dec 2007
    Location
    Minnesota
    Posts
    469

    Default Re: Counting

    Quote Originally Posted by silverdemon View Post
    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.
    Quote Originally Posted by xRyokenx View Post
    ...I'm getting tired of not being able to figure this crap out because it's apparently made for computer-illiterate people by computer-illiterate people. lol

  4. #104
    Fresh Paint
    Join Date
    Feb 2006
    Posts
    9

    Default Re: Counting

    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.

  5. #105
    Overclocking Guru Trace's Avatar
    Join Date
    Aug 2007
    Location
    California
    Posts
    2,077

    Default Re: Counting

    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.
    Quote Originally Posted by Lothair View Post
    I guess it's just widely used and has had some of the best people in the world work on it, costing a ridiculous amount of money, for no actual reason. :/
    Have you checked out the front page lately?
    Projects:
    Moe's Tavern | Sponsored by: Mimo Monitors, Crucial, Thermaltake
    Book Of Knowledge

  6. #106

    Default Re: Counting

    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.

  7. #107
    Overclocking Guru Trace's Avatar
    Join Date
    Aug 2007
    Location
    California
    Posts
    2,077

    Default Re: Counting

    I'll come up with some ideas and post a poll in the chatterbox for you programmers to vote on.
    Quote Originally Posted by Lothair View Post
    I guess it's just widely used and has had some of the best people in the world work on it, costing a ridiculous amount of money, for no actual reason. :/
    Have you checked out the front page lately?
    Projects:
    Moe's Tavern | Sponsored by: Mimo Monitors, Crucial, Thermaltake
    Book Of Knowledge

  8. #108
    Ceann na Drochaide Bige! XcOM's Avatar
    Join Date
    Mar 2006
    Location
    Sheffield (UK)
    Posts
    2,990

    Default Re: Counting

    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.


    Mary had a little lamb. It bumped into a pylon. Ten thousand volts went up its arse and turned its wool to nylon!

  9. #109
    Fox Furry crenn's Avatar
    Join Date
    Apr 2005
    Location
    In the shadows behind you
    Posts
    4,067

    Default Re: Counting

    Ooooo.... I like the sound of that.
    Antec Sonata II | Pioneer DVR-212
    Good news! You can follow my website or follow me on twitter!

  10. #110
    Water Cooled silverdemon's Avatar
    Join Date
    Jun 2006
    Location
    Delft, Netherlands
    Posts
    520

    Default Re: Counting

    yeah, me too. I like to program a few simple things every once in a while...

    _count_ me in (pun intended)

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •