Rust Needs extern "fil-c" to Make C Memory-Safe
I want extern "fil-C"
Rust's C FFI trades compile-time safety for access to legacy code, but Fil-C offers a better deal: recompile C/C++ with runtime checks and GC, making memory violations panic instead of exploit. The author proposes a Rust FFI for the Fil-C ABI, starting narrow, with no escape hatch to unsafe C. Filnix already packages Fil-C for Nix, and Zig is exploring a similar ABI. This could give Rust a safe compatibility path and a performance incentive to rewrite hot paths.
C becomes the safe compatibility path rather than the permanent fast path.