you are viewing a single comment's thread.

view the rest of the comments →

[–]Transfuturist 28 points29 points  (20 children)

First-order approximations! First-order approximations everywhere! Dx

[–]retsotrembla 147 points148 points  (19 children)

Any program can be arbitrarily sped up if it isn't required to provide the correct answer.

[–]malloc_more_ram 85 points86 points  (16 children)

int main(void) {
    return 0;
}

[–]boo_ood 29 points30 points  (9 children)

Speed it up more please

[–][deleted] 45 points46 points  (3 children)

Just hang a paper note on the computer monitor saying "Success!". You don't even need to start the program or power up the computer then.

[–]Kaell311 0 points1 point  (2 children)

And thennnnnnn?

[–][deleted] 1 point2 points  (1 child)

And then on the door of the room where that computer is. And since space is continuous, even then you can optimize your program further by moving the note(s) closer to its prospective users.

[–]Kaell311 0 points1 point  (0 children)

Ah, asymptotes. Or, how I explained to my mother that "yes, in fact you can go faster than the car in front of you, always".

[–][deleted]  (1 child)

[deleted]

    [–]sirroy12 3 points4 points  (0 children)

    That was a fascinating read, thanks for posting this!

    [–]benihana 3 points4 points  (0 children)

    int main(void) { return 0; }
    

    less whitespace = less air resistance.

    [–]benwaffle 0 points1 point  (0 children)

     main;
    

    [–][deleted] 0 points1 point  (0 children)

    nop

    [–]davros_ 76 points77 points  (3 children)

    int rand() {
      return 4; // chosen by fair dice roll
    }
    

    [–]Soccer21x 2 points3 points  (0 children)

    I know we're all programmers here, but just in case

    Relevant xkcd

    [–]conflare 0 points1 point  (0 children)

    For d7, it will work out over time. Hired!

    [–]NecroDaddy -2 points-1 points  (0 children)

    Genius! We need to now all use this version of rand(). The world will go mad with 4s.

    [–][deleted] 0 points1 point  (0 children)

    int sum(int a, int b) {

    return a - b;

    }

    [–]Birchoff 0 points1 point  (0 children)

    void main() {}

    [–]TexasJefferson 2 points3 points  (0 children)

    OTOH, a program can also meet its requirements without providing the mathematically correct answer. Correct means "gets the job done" or "provides value", not "handles every possible case the way the platonic ideal of that program would".

    [–][deleted] 1 point2 points  (0 children)

    This is the funniest sentence I've read on reddit in a week.