Comment

Comment by Panzerschrek

> the simplest infinite loop

An infinite loop which does nothing is practically useless. So, compilers optimize it out. That's the whole philosophy of modern compilers - to reduce execution time by preserving semantics. In case of an infinite loop elimination it's an optimization making code infinite times faster.

Discussion

Live from the official Hacker News API

A modern reader for Hacker News · SvelteKit + Skeleton