TE
TechEcho
Home24h TopNewestBestAskShowJobs
GitHubTwitter
Home

TechEcho

A tech news platform built with Next.js, providing global tech news and discussions.

GitHubTwitter

Home

HomeNewestBestAskShowJobs

Resources

HackerNews APIOriginal HackerNewsNext.js

© 2025 TechEcho. All rights reserved.

Ferrocene: Rust toolchain to safety-critical environments

190 pointsby fofozalmost 3 years ago

7 comments

aganders3almost 3 years ago
Rustacean Station had a great podcast episode with Quentin Ochem from AdaCore and Florian Gilcher from Ferrous Systems. They do a great job explaining what &quot;safety-critical&quot; means and the work that goes into validating software for such applications. I work in a slightly-less regulated field (medical devices) and found the discussion really interesting.<p><a href="https:&#x2F;&#x2F;rustacean-station.org&#x2F;episode&#x2F;067-quentin-ochem-florian-gilcher&#x2F;" rel="nofollow">https:&#x2F;&#x2F;rustacean-station.org&#x2F;episode&#x2F;067-quentin-ochem-flor...</a>
thesuperbigfrogalmost 3 years ago
Ferrocene is an exciting opportunity for the safety critical space which is dominated by MISRA C, Ada &#x2F; SPARK, and similar.<p>Having AdaCore as a collaborator gives me great hope that Ferrocene will succeed and raise the bar for Rust standardization and language maturity.
评论 #32240594 未加载
评论 #32240105 未加载
babyalmost 3 years ago
Link to the spec: <a href="https:&#x2F;&#x2F;spec.ferrocene.dev&#x2F;" rel="nofollow">https:&#x2F;&#x2F;spec.ferrocene.dev&#x2F;</a>
2bitencryptionalmost 3 years ago
one thing I don&#x27;t fully get-<p>this specification is written based on the current behavior of rustc. The page even says that the specification will be updated as rustc is updated:<p>&gt; If there is a mismatch between what the FLS says and how the compiler behaves, the specification will be updated.<p>So, rustc is not written to this specification, but rather this specification is written to match rustc.<p>So if I am writing my own compiler, using this specification, do I have to worry about the specification changing, if suddenly a regression is introduced to rustc, and the specification is updated to cover the regression?<p>mostly I don&#x27;t understand. I&#x27;m sure someone could explain this and it will make sense to me.
评论 #32242942 未加载
评论 #32242968 未加载
评论 #32242920 未加载
评论 #32242993 未加载
inambercladalmost 3 years ago
I&#x27;d just like to see the tooling and compilers improve for Ada. Alire is fantastic, but It&#x27;s still a huge struggle to import C headers (gcc -fdump-ada-spec is the best thing so far) and find the required linker flags for a library.
ameliusalmost 3 years ago
&gt; One of the requirements for qualifying such a toolchain is to describe how the compiler should behave when compiling source code, which means a specification of the programming language.<p>Doesn&#x27;t the reference implementation of the compiler already qualify as such a specification?
评论 #32239775 未加载
评论 #32239628 未加载
评论 #32240116 未加载
philbertyalmost 3 years ago
I&#x27;m personally pretty excited to see where this goes. It could be the best way for gccrs to version itself. There are some immediate aspects I am pretty interested in relation to the spec:<p>1. Method resolution<p>2. Unstable?<p>In particular is it going to define lang items?<p>3. DST&#x27;s<p>Rust has strange things like:<p>```<p>let a:&amp;str = &quot;str&quot;;<p>let b:&amp;str = &amp;&quot;str&quot;;<p>```<p>Which is valid since str is a DST. Although slices and dyn trait are DST they have more strict rules there.<p>4. Qualified paths<p>There are more subtle things like qualified paths such as this testcase which could be argued is valid <a href="https:&#x2F;&#x2F;github.com&#x2F;rust-lang&#x2F;rust&#x2F;blob&#x2F;master&#x2F;src&#x2F;test&#x2F;ui&#x2F;qualified&#x2F;qualified-path-params-2.rs" rel="nofollow">https:&#x2F;&#x2F;github.com&#x2F;rust-lang&#x2F;rust&#x2F;blob&#x2F;master&#x2F;src&#x2F;test&#x2F;ui&#x2F;qu...</a> but there was some discussion on zulip which clarifies it: <a href="https:&#x2F;&#x2F;rust-lang.zulipchat.com&#x2F;#narrow&#x2F;stream&#x2F;122651-general&#x2F;topic&#x2F;Ambiguous.20associated.20types&#x2F;near&#x2F;251210283" rel="nofollow">https:&#x2F;&#x2F;rust-lang.zulipchat.com&#x2F;#narrow&#x2F;stream&#x2F;122651-genera...</a><p>5. Never type<p>TLDR: Overall I think its important at some point to start isolating what is the language outside of what version of libcore your running.
评论 #32241588 未加载
评论 #32240592 未加载