1. The forums will be archived and moved to a read only mode in about 2 weeks (mid march).

《Game》Count to 1000

Discussion in 'Off-Topic' started by Ragnok123, Nov 19, 2016.

  1. Ragnok123

    Ragnok123 Silverfish

    Messages:
    22
    GitHub:
    Ragnok123
    Just counting to 1000. Let's go?))
     
  2. Ragnok123

    Ragnok123 Silverfish

    Messages:
    22
    GitHub:
    Ragnok123
  3. Sandertv

    Sandertv Zombie Pigman Poggit Reviewer

    Messages:
    786
    GitHub:
    Sandertv
    Okay this is waaaay 2 edgy for me :p
     
  4. Thunder33345

    Thunder33345 Moderator Staff Member

    Messages:
    2,137
    GitHub:
    Thunder33345
    okay 3 even tho this kind of bumping thread is boring then the last attempt i will take it!
     
  5. AnkitM252

    AnkitM252 Spider Jockey

    Messages:
    29
    GitHub:
    AnkitM252
    This post id should be 4 but its 5
     
  6. SOFe

    SOFe Administrator Staff Member PMMP Team Poggit Admin

    Messages:
    1,968
    GitHub:
    sof3
    I spent less than 6 10-seconds to finish this.
    Now let's start counting backwards!
     
  7. Sandertv

    Sandertv Zombie Pigman Poggit Reviewer

    Messages:
    786
    GitHub:
    Sandertv
    Omg that's not cool :p Now we have to start at 1001.
     
  8. Thunder33345

    Thunder33345 Moderator Staff Member

    Messages:
    2,137
    GitHub:
    Thunder33345
    kilo?
    reference to kg? since 1000g = 1 kg?
    oh yeah i could write a script that counts from 1002 to the infinity and beyond since there no limits
     
  9. Primus

    Primus Zombie Pigman

    Messages:
    749
    Is it event correct to say "to the infinity"? Infinity is not a number so $i can not be infinity as null won't ever be boolean. "and beyond" is false statement. Whenever referencing the positive infinity, the plus sign is always trailing because the infinity is abstract concept of something without bounds.
     
  10. xBeastMode

    xBeastMode Shog Chips

    Messages:
    0
    Who doesn't like the C++ speed? :cool:
    Code:
    #include <iostream>
    
    int main(){
       for(unsigned j = 0; j <= 1000; ++j){
          std::cout << j << std::endl;
       }
       std::cout << "While you count a second I already finished :p" << std::endl;
       return 0;
    }
     
  11. SOFe

    SOFe Administrator Staff Member PMMP Team Poggit Admin

    Messages:
    1,968
    GitHub:
    sof3
    It is faster on PHP using `php -r`.
    Code:
    php -r 'for($i=11;$i<1001;$i++) echo $i,PHP_EOL;' | clip # Windows clipboard command
     
  12. xBeastMode

    xBeastMode Shog Chips

    Messages:
    0
    That didn't answer my question...
     
  13. SOFe

    SOFe Administrator Staff Member PMMP Team Poggit Admin

    Messages:
    1,968
    GitHub:
    sof3
    What question?

    Since you are only generating the data once, coding speed is much more important than the application's performance.
     
  14. xBeastMode

    xBeastMode Shog Chips

    Messages:
    0
     
  15. xBeastMode

    xBeastMode Shog Chips

    Messages:
    0
    What the... the interpreter is faster than it's parent?
     
  16. SOFe

    SOFe Administrator Staff Member PMMP Team Poggit Admin

    Messages:
    1,968
    GitHub:
    sof3
    I don't like the speed of typign the commands to compile C++.
     
  17. xBeastMode

    xBeastMode Shog Chips

    Messages:
    0
    Oh, I forgot about that, I was talking about the running speed not the compilation speed.
     
  18. SOFe

    SOFe Administrator Staff Member PMMP Team Poggit Admin

    Messages:
    1,968
    GitHub:
    sof3
    Considering the time required to code the program + the time required to compile the program + the total time that the program spends to run before its last copy gets deleted, or before Homo sapiens becomes extinct, PHP < C++.

    In a macroscopic view for humanity, PHP is more beneficial to humans!
     
  19. xBeastMode

    xBeastMode Shog Chips

    Messages:
    0
    That's what I thought, boi!
     
  20. archie426

    archie426 Baby Zombie

    Messages:
    130
    GitHub:
    archie426
    Ugh, this thread turned into code. BORING. Just joking, xD
     
  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.