4 ms·
Suppose I wanted to crash my computer? See, asking this question doesn't really help in making software more crash-free.
by amelius 5y ago
Suppose I wanted to crash my computer?
See, asking this question doesn't really help in making software more crash-free.
- LanceH 5y agoI would have things like pointer math, programmer responsibility for memory and other resource management. Rust seems to be working exactly along this line of thinking -- at least their obsession with "safety".
- corobo 5y agoGive it a good hard kicking (or I guess more realistically drop your laptop) Solution: replace HDDs with SSDs I think you have to be more specific for it to work faster, there's plenty of ways to crash a computer that doesn't even involve software never mind if you're writing the code too
- thriftwy 5y agoBecause most of precautions are already applied and your computer no longer crashes that often. Things were much, much worse 25 years ago.
- robotresearcher 5y agoI would iterate off the end of a C array. I would have a function call itself recursively a million times deep. I would use a pointer that was set to a random value. I would return the address of an automatic (i.e. stack) variable from a function and use it later. I would allocate resources in a loop and never deallocate them.