3 ms·
We (perhaps stupidly) make the assumption that compilers halt all the time, such as in shared CI environments.
by derefr 10y ago
We (perhaps stupidly) make the assumption that compilers halt all the time, such as in shared CI environments.
- eridius 10y agoShared CI environments should always impose some sort of resource limit. Even without turing-complete type systems, you can still make compilation take effectively forever. It's been a while since I tested, but by my recollection, creating a fixed-length array of sufficiently large size in Rust would make compilation hang indefinitely (well, for much longer than I was ever willing to let it run). Of course this particular behavior may have been fixed (or maybe not; I'm not in a position to test right now), but I'm sure there's other ways to produce artificially long compilation times as well.