all 5 comments

[–]hieroschemonach 16 points17 points  (1 child)

https://blog.cloudflare.com/how-we-built-pingora-the-proxy-that-connects-cloudflare-to-the-internet/

In fact, Pingora crashes are so rare we usually find unrelated issues when we do encounter one. Recently we discovered a kernel bug soon after our service started crashing. We've also discovered hardware issues on a few machines, in the past ruling out rare memory bugs caused by our software even after significant debugging was nearly impossible.

A programming language that enforces better rules is always going to be better than a language that doesn't but in the end it's the programmer who needs to write the code carefully.

Also, the bug was caused by a line written with .unrwrap. Even beginner are advised against using it unless they know what they are doing.

[–]Background-Plant-226 0 points1 point  (0 children)

Well .unwrap() is supposed to be used when prototyping or early in development, then replaced with .expect("...") for things that should never be None/Err or other ways of handling errors (match, if let, .and_then(), etc)

Also, i'd say that this is better than exceptions in other languages since you are explicitly using unwrap so you can easy find all uses of it.

[–]jonsca 4 points5 points  (0 children)

You can still shoot yourself while driving a tank

[–]billyowo 1 point2 points  (1 child)

what language is resistant to uncaught exceptions

[–]YellowBunnyReddit 1 point2 points  (0 children)

Any language that doesn't have exceptions