Post #2165273
2026-05-07 16:10 UTC
@zwarich@hachyderm.io you could do both unwinding and special ABI like rust is trying to, in order to accommodate panics or other pervasive semi-recoverable failures. but it sounds like a lot of the rust ecosystem is trending toward `panic=abort` as their favored policy? (and of course in C++ land everyone already does -fno-exceptions)
Replies (1)
-
@zwarich@hachyderm.io 2026-05-07 16:21
@joe@f.duriansoftware.com Oh, I didn’t realize that Rust is trying to do the special ABI. Are they basically doing the same thing as Swift? This is one place where using LLVM is really painful. Rust played the masterful gambit of paying the cost of DWARF exceptions without getting any of the benefit of them. The feature was leftover from the days where Rust have more of a runtime, and when there was a minor push to remove it like the other parts of the runtime, the new Ruby migrants argued that they couldn’t embed Rust in Ruby programs without being able to catch all panics on the FFI boundaries.