logoalt Hacker News

slopinthebagtoday at 4:55 AM1 replyview on HN

Ok but how does that change the behaviour of the program?


Replies

dparktoday at 5:09 AM

Depends on what you mean.

Assuming you write code that does not take advantage of undefined behavior, then in general you would expect the correctness of your program to be consistent. But you would not expect the performance, for example, to be consistent. An optimizing JIT compiler might certainly run the 3rd invocation of code path way faster than the first.