4 ms·
I use Rust for embedded right now. Part of project is in C, part is in C++, part is in Rust. NRF52 and i.MX6. Can you point me to the problem with Rust or toolc
by v_lisivka 8y ago
I use Rust for embedded right now. Part of project is in C, part is in C++, part is in Rust. NRF52 and i.MX6. Can you point me to the problem with Rust or toolchain, which I missed, so I will be aware? Thank you in advance.
- pjmlp 8y agoSome ideas: - LLVM backend is limited regarding the supported CPU architectures; - Rust compiler is not certified for high integrity domains, where human lives might be endangered; - Features like SIMD are still nightly - Lack of integration with closed source toolchains from OEMs for mixed debugging and other development workflows, e.g. Keil, Microchip These issues might be complete irrelevant, or showstoppers, depending on the company.
- steveklabnik 8y agoSIMD is stable in five weeks, incidentally.
- pjmlp 8y agoFrom what I understood it is just phase I from SIMD support, right?
- steveklabnik 8y agoYes, but also the most foundational part. There’s already high level libraries written on top.
- pjmlp 8y agoThanks, will have a look into it.
- steveklabnik 8y agoSpecifically what I'm referring to is https://doc.rust-lang.org/beta/std/arch/ https://doc.rust-lang.org/beta/std/arch/ (last two modules are stable, note this is beta docs for the next release) Next step is https://doc.rust-lang.org/beta/std/simd/index.html https://doc.rust-lang.org/beta/std/simd/index.html but you can use https://crates.io/crates/stdsimd https://crates.io/crates/stdsimd in the meantime to try it out, as they're the same. Stuff like https://crates.io/crates/faster https://crates.io/crates/faster is already built on top of this and is just waiting for the initial intrinsic stabilization, too.