News for hackers. Stuff that matters.
Re:Writing embedded firmware using Rust by bschwindHN on Sunday December 19, 2021 @08:41PM (#29620677)
From my understanding, Rust's HAL APIs are not trying to optimize for ergonomics but for type safety and ownership. It's more tedious to write, but it's also nice to have the standard formatted Rust docs available to see all registers and what you can do with them. It means things like hardware peripherals which only work on certain pins, have those pins defined in the _type system_.

It's more verbose for sure, but I prefer it for it's explicitness and ownership tracking. Definitely not perfect, but it's also very early times for Rust on embedded devices.

Re:Writing embedded firmware using Rust by im_down_w_otp on Sunday December 19, 2021 @10:48PM (#29621372)
Re:Writing embedded firmware using Rust by bschwindHN on Sunday December 19, 2021 @10:50PM (#29621379)
Even better! I imagine the ergonomics will improve over time without sacrificing type safety.