News for hackers. Stuff that matters.
Re:Rust is for Professionals by kzhukov on Tuesday April 13, 2021 @12:15PM (#26794558)
> safety-critical applications

Nope, Rust is also not suitable for these tasks since it doesn't have a certified toolchain (e.g. ISO26262 for automotive or DO-178 for aerospace).

> embedded

Current LLVM-based compiler lacks support for some platforms (e.g. Xtensa for some ESP32 MCUs).

Re:Rust is for Professionals by wyldfire on Tuesday April 13, 2021 @12:17PM (#26794595)
'Embedded' doesn't require supporting everyone's favorite microcontroller. Even if ESP32 is really popular, there's plenty of others. OBTW experimental xtensa backend is landing in upstream llvm lately.
Re:Rust is for Professionals by kzhukov on Tuesday April 13, 2021 @03:20PM (#26797671)
That were just the examples when Rust is not really suitable as a drop-in replacement for C/C++. Of course, if your platform is well-supported by Rust compiler and you don't have to write safety critical applications, then using Rust is just a matter of choice.

I don't argue whether it's good or bad language. It's a quite interesting one with its own pros and cons. If it fits you, then it's great, but you should know its limitations.

Re:Rust is for Professionals by fzzzy on Tuesday April 13, 2021 @12:20PM (#26794663)
It took me two hours to compile the esp32 fork of rustc on a 2015 macbook pro. Not ideal, but it works just fine.
Re:Rust is for Professionals by StavrosK on Tuesday April 13, 2021 @12:37PM (#26795011)
That's very interesting! Do you have any pointers on how to do that?
Re:Rust is for Professionals by sanxiyn on Tuesday April 13, 2021 @01:47PM (#26796232)
Re:Rust is for Professionals by gte525u on Tuesday April 13, 2021 @12:22PM (#26794709)
Certified toolchains only factor into play in DAL A for DO178. Either that or manually inspecting the compiler output and tracing it to the source.