Elektrine lite

← Feed

@zwarich@hachyderm.io

Post #2167161

2026-05-07 16:21 UTC

@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.

Replies (1)

  • @joe@f.duriansoftware.com 2026-05-07 16:43

    @zwarich@hachyderm.io i'm not sure about the specifics, or whether they actually followed through on anything, but there was talk about special handling `Result` returns IIRC. since they don't have a uniform single-pointer error repr, i don't think the swift trick would work as is in swift land, there are folks who would like to be able to recover from fatal errors, like for servers, test runners, etc. maybe panics are one of those things where the cat is always on the wrong side of the door

    Open ##2167160