News for hackers. Stuff that matters.
Re:A Comparison of Ada and Rust, Using Solutions to the Adve... by Surac on Saturday October 04, 2025 @01:23PM (#45474965)
Very nice text. As i am very sceptical to Rust i apreciate the comarison to a language i know better. I was not aware that there is no formal spec for rust. Isn't that a problem if rustc makes changes?
Re:A Comparison of Ada and Rust, Using Solutions to the Adve... by steveklabnik on Saturday October 04, 2025 @02:03PM (#45475284)
A few things:

1. There is a spec now, Ferrocene donated theirs, and the project is currently integrating it

2. The team takes backwards compatibility seriously, and uses tests to help ensure the lack of breakage. This includes tests like “compile the code being used by Linux” and “compile most open source Rust projects” to show there’s no regressions.

Re:A Comparison of Ada and Rust, Using Solutions to the Adve... by SabrinaJewson on Saturday October 04, 2025 @02:58PM (#45475731)
Ferrocene is a specification but it’s not a formal specification. [Minirust](https://github.com/minirust/minirust) is the closest thing we have to a formal spec but it’s very much a work-in-progress.
Re:A Comparison of Ada and Rust, Using Solutions to the Adve... by steveklabnik on Saturday October 04, 2025 @06:19PM (#45477229)
It's a good enough spec to let rustc work with safety critical software, so while something like minirust is great, it's not necessary, just something that's nice to have.
Re:A Comparison of Ada and Rust, Using Solutions to the Adve... by Ar-Curunir on Saturday October 04, 2025 @06:21PM (#45477243)
Isn’t the Ada spec also not a formal spec?
Re:A Comparison of Ada and Rust, Using Solutions to the Adve... by the_why_of_y on Sunday October 05, 2025 @08:58AM (#45481163)
The most popular language with a formal specification is Standard ML.

I guess this is terminology confusion on behalf of Surac, who probably just wants a specification that is independent of the rustc implementation.

Re:A Comparison of Ada and Rust, Using Solutions to the Adve... by usamoi on Saturday October 04, 2025 @01:39PM (#45475103)
It depends on who you are.

For implementers of third-party compilers, researchers of the Rust programming language, and programmers who write unsafe code, this is indeed a problem. It's bad.

For the designers of Rust, "no formal specification" allows them to make changes as long as it is not breaking. It's good.

Re:A Comparison of Ada and Rust, Using Solutions to the Adve... by Surac on Saturday October 04, 2025 @04:04PM (#45476259)
Medical or Miltary often require the software stack/tooling to be certified following certain rules. I know most of this certifications are bogus, but how is that handled with Rust?
Re:A Comparison of Ada and Rust, Using Solutions to the Adve... by detaro on Saturday October 04, 2025 @04:07PM (#45476276)
Ferrocene provides a certified compiler (based on a spec they've written documenting how it behaves) which is usable for many uses cases, but it obviously depends what exactly your specific domain needs.