Re:Effective Rust
by CyberDildonics on Thursday June 15, 2023 @06:42PM
(#36347773)
I think you mean that CPUs have low level exceptions/interrupts. 'Panic' in this case is a rust specific term and is higher level.
[ Parent
| on HN ]
Re:Effective Rust
by yencabulator on Thursday June 15, 2023 @08:08PM
(#36348962)
And you'll find equivalent panics in e.g. Linux.
panic 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.
Re:Effective Rust
by compscigirl on Sunday June 18, 2023 @05:29PM
(#36384697)
Panic 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.