Search:

Type: Posts; User: Trace; Keyword(s):

Page 1 of 2 1 2

Search: Search took 0.01 seconds.

  1. Thread: Counting

    by Trace
    Replies
    112
    Views
    83,510

    Re: Counting

    Ok, I finally got around to re-writing the Java program. The times are almost identical to what they were earlier, crenn.

    But I am getting an out of memory error. When I go higher then 10,000,000...
  2. Thread: Counting

    by Trace
    Replies
    112
    Views
    83,510

    Re: Counting

    I'll come up with some ideas and post a poll in the chatterbox for you programmers to vote on.
  3. Thread: Counting

    by Trace
    Replies
    112
    Views
    83,510

    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.
  4. Thread: Counting

    by Trace
    Replies
    112
    Views
    83,510

    Re: Counting

    Oops, my mistake on the loop.
  5. Thread: Counting

    by Trace
    Replies
    112
    Views
    83,510

    Re: Counting

    Well, apparently the Java compiler didn't lol.
    And on the loops, I think that you would find a:



    For x = 1 to CountTo
    'Loop
    Next x
  6. Thread: Counting

    by Trace
    Replies
    112
    Views
    83,510

    Re: Counting

    Wait, I think that's the one I entered. I'm not completely sure actually.
  7. Thread: Counting

    by Trace
    Replies
    112
    Views
    83,510

    Re: Counting

    Well, who won?
    My code is below.
    I entered the second 1.

    If you want my VB6 code let me know.(PM)

    Java (with output):


    import java.io.File;
  8. Thread: Counting

    by Trace
    Replies
    112
    Views
    83,510

    Re: Counting

    Can't wait!
  9. Thread: Counting

    by Trace
    Replies
    112
    Views
    83,510

    Re: Counting

    Ok, sweet. Well, I figured out how to make my program run on 4 threads. It was able to do 100 Million in 57 seconds for the longest thread :D
  10. Thread: Counting

    by Trace
    Replies
    112
    Views
    83,510

    Re: Counting

    K, sounds good guys
  11. Thread: Counting

    by Trace
    Replies
    112
    Views
    83,510

    Re: Counting

    Thanks!
    I'm thinking that after the winner is announced, we should release source code to both learn from how each other did it and so that we can get a group effort going to get the quickest...
  12. Thread: Counting

    by Trace
    Replies
    112
    Views
    83,510

    Re: Counting

    (I didn't produce the VB6 Portable. Considering I have a license, I use it as a utility at school.)

    So it has to display all of them? That takes longer then writing a file
  13. Thread: Counting

    by Trace
    Replies
    112
    Views
    83,510

    Re: Counting

    I can give you a portable VB6 program that will work for all intents and purposes. PM for it if you want it.
  14. Thread: Counting

    by Trace
    Replies
    112
    Views
    83,510

    Re: Counting

    If we are sending the source to XcOM to run, he should be able to verify that it isn't doing a 1, 2 skip a few sort of thing.
  15. Thread: Counting

    by Trace
    Replies
    112
    Views
    83,510

    Re: Counting

    So, I could write to a variable and that would count? Does it have to print them out afterwards?
  16. Thread: Counting

    by Trace
    Replies
    112
    Views
    83,510

    Re: Counting

    1Bill isn't a problem, heck I've done it. (With one of the worst programming languages ever)

    I sent mail. My java is so slow. 84 Seconds for 5 million. My VB6 is faster. Still optimizing, trying...
  17. Thread: Counting

    by Trace
    Replies
    112
    Views
    83,510

    Re: Counting

    Maybe, people should post an exe of their program and XcOM can run them so its all on the same machine. And of course they send the source with it so it can be judged.
  18. Thread: Counting

    by Trace
    Replies
    112
    Views
    83,510

    Re: Counting

    I'm thinking for classes, we should do Language with output file and Language without Output file so that it is even and then it is just about the code itself.
  19. Thread: Counting

    by Trace
    Replies
    112
    Views
    83,510

    Re: Counting

    Is it assembly?
  20. Thread: Counting

    by Trace
    Replies
    112
    Views
    83,510

    Re: Counting

    No, it's more for the best code. I just was trying my hand at some Java. So, it ended up running quite quickly
  21. Thread: Counting

    by Trace
    Replies
    112
    Views
    83,510

    Re: Counting

    System.currentTimeMillis()

    Thats all you'll need to take a time
    One at the beginning and one at the end set in variables. Subtract the first variable from the second and you have your time in...
  22. Thread: Counting

    by Trace
    Replies
    112
    Views
    83,510

    Re: Counting

    Oh, that could be it haha
    Like I said before, I just started today
  23. Thread: Counting

    by Trace
    Replies
    112
    Views
    83,510

    Re: Counting

    It doesn't output to a file, I wish I could get it to.

    If you want the source, PM me
  24. Thread: Counting

    by Trace
    Replies
    112
    Views
    83,510

    Re: Counting

    I see "TBCS" in the code.
    No idea what language though
    I've got a Java code working that does to 1000000000 quite quickly. Only displays the last number though. I also have to get file writing...
  25. Thread: Counting

    by Trace
    Replies
    112
    Views
    83,510

    Re: Counting

    I figured that C++ would beat out VB6 no problem. I'm going to try my hand at Java and see what I can come up with. Do we have an "Official" end to this contest?
Results 1 to 25 of 28
Page 1 of 2 1 2