Re:Rust for Embedded C Programmers
by melissalobos on Sunday January 23, 2022 @10:42AM
(#30046956)
I don't mind the syntax, the bigger issue for me is that a lot of necessary features have been locked into nightly forever, like inline asm. If the language can ever mature enough to have these features in stable I would use it in a heartbeat. Well, that and the usual issue with it having a severely limited back-end selection compared with gcc.
[ Parent
| on HN ]
Re:Rust for Embedded C Programmers
by ameliaquining on Sunday January 23, 2022 @01:18PM
(#30048694)
Good news! Inline assembly will be available in stable starting next month. In fact, it's available in beta (which is a lot less bleeding-edge than nightly, with a lot fewer bugs) right now.
The rustc_codegen_gcc project aims to solve the backend-availability problem.
Re:Rust for Embedded C Programmers
by steveklabnik on Sunday January 23, 2022 @02:08PM
(#30049289)
most of inline asm is being made available, but not all. My embedded project still needs stuff that's not stable yet. Still extremely excited that it's shipping.
My secondary peeve is that Rust is still evolving. I get that all languages do this at some velocity, C++ being one of them, but the fact this 'safe' language is adding 'unsafe' feedbags on the spec just gives me an uneasy feeling about the ecosystem.