logoalt Hacker News

9rxyesterday at 4:01 PM1 replyview on HN

> However if you ask the same question in the same session, output will be different.

When isn't that true?

    int main() {
        printf("Continue?\n");
    }
and

    int main() {
        printf("Continue?\n");
        printf("Continue?\n");
    }
do not see the compiler produce equivalent outputs and I am not sure how they ever could. They are not equivalent programs. Adding additional instructions to a program is expected to see a change in what the compiler does with the program.

Replies

troupoyesterday at 7:26 PM

If you ask the compiler to compile the same input, it will produce the same output.

With LLMs the output depends on the phases of the moon.

show 1 reply