News for hackers. Stuff that matters.
Re:DARPA project for automated translation from C to Rust (2... by pizlonator on Wednesday October 01, 2025 @06:21PM (#45444259)
Definitely not. Then it wouldn’t be a C implementation.

Fil-C is so compatible that I have a Linux userland compiled with it https://fil-c.org/pizlix

Think of Fil-C as Java-ifying C an C++

Re:DARPA project for automated translation from C to Rust (2... by adastra22 on Wednesday October 01, 2025 @07:20PM (#45444787)
I don’t see the relevance to this discussion then.
Re:DARPA project for automated translation from C to Rust (2... by NobodyNada on Wednesday October 01, 2025 @07:37PM (#45444894)
The discussion is about a project for securing legacy code by machine-translating it to Rust. Fil-C is an alternative way to secure legacy code using a different C implementation. I think that's highly relevant to the discussion.
Re:DARPA project for automated translation from C to Rust (2... by adastra22 on Wednesday October 01, 2025 @08:01PM (#45445058)
The kind of errors being protected against are totally different though.
Re:DARPA project for automated translation from C to Rust (2... by pizlonator on Wednesday October 01, 2025 @08:38PM (#45445259)
Fil-C protects against a superset of the errors that Rust protects against. It just does it dynamically.

And more comprehensively. There’s no `unsafe` statement in Fil-C. There’s no need for it since dynamic checking is vastly more precise.

Re:DARPA project for automated translation from C to Rust (2... by adastra22 on Wednesday October 01, 2025 @10:02PM (#45445689)
Dynamic/runtime checks (and crashes) are VERY different from compile time checks though. Many applications, and especially those that DARPA are focused on, care about ahead-of-time guarantees that code will work correctly, and runtime panic is actually the worst possible failure mode. Think of flight control software, for example.
Re:DARPA project for automated translation from C to Rust (2... by pizlonator on Wednesday October 01, 2025 @11:53PM (#45446191)
This DARPA doc isn’t about flight software.

Rust uses runtime checking for array access bounds, which are the most common kind of memory safety vulnerability.

Re:DARPA project for automated translation from C to Rust (2... by jandrewrogers on Wednesday October 01, 2025 @10:40PM (#45445865)
Checking at compile-time is required for some applications and highly desirable regardless.

This is something recent versions of C++ do really well. It is my main reason for using C++ beyond its unparalleled performance in practice.

Re:DARPA project for automated translation from C to Rust (2... by pizlonator on Wednesday October 01, 2025 @08:37PM (#45445255)
You’re confusing memory safety with Rust’s specific flavor of static checking.

Totally not the same thing.

Like, notice how DARPA is in no hurry to have folks rewrite Java or JavaScript in Rust. Why? Because even JavaScript is memory safe. It’s not achieving that with dynamic checking rather than static checking.