4 ms·
Panics have a place in systems programming — all operating systems panic when fundamental guarantees are violated.
by compscigirl 3y ago
Panics have a place in systems programming — all operating systems panic when fundamental guarantees are violated.
- CyberDildonics 3y agoI think you mean that CPUs have low level exceptions/interrupts. 'Panic' in this case is a rust specific term and is higher level.
- yencabulator 3y agoAnd you'll find equivalent panics in e.g. Linux.
- jmalicki 3y agopanic is also a linux specific term. When rust panics, it shuts the program down. When linux panics, it halts the machine - for fundamental things like data corruption detected, and we can't continue to operate and risk corrupting the disk. Just like Windows has the BSOD.
- compscigirl 3y agoPanic is not a rust-specific term, it generally refers to software halting intentionally because something has gone so wrong that you can’t reasonably recover. For example, some safety invariant is violated or core data is corrupted. Kernel panics (also called bug checks or BSODs in Windows, same concept) exist in all OSes by necessity.