Hacker News new | past | comments | ask | show | jobs | submit login

Panics have a place in systems programming — all operating systems panic when fundamental guarantees are violated.



I think you mean that CPUs have low level exceptions/interrupts. 'Panic' in this case is a rust specific term and is higher level.


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.


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.


And you'll find equivalent panics in e.g. Linux.




Join us for AI Startup School this June 16-17 in San Francisco!

Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: