News for hackers. Stuff that matters.
Re:Should you Rust in embedded yet? by jononor on Thursday March 01, 2018 @05:38AM (#16490983)
The borrow checker should be quite useful when using tasks and shared resources in an RTOS. Just closures alone is a benefit.
Re:Should you Rust in embedded yet? by koffiezet on Thursday March 01, 2018 @07:05AM (#16491333)
Your compiler adding the execution of an unpredictable amount of CPU instructions at certain points, which can change with new compiler versions? That sounds like an nightmare for realtime applications. Yes, I have been in situations where I had to count the instructions and clock-cycles to meet deadlines.
Re:Should you Rust in embedded yet? by lvh on Thursday March 01, 2018 @08:30AM (#16491750)
What feature adds that? The borrow checker, lifetimes and ownership are all compile time concepts in Rust.
Re:Should you Rust in embedded yet? by c3833174 on Thursday March 01, 2018 @08:53AM (#16491962)
Compile time doesn't mean the compiler won't add more instructions where you might not expect them.
Re:Should you Rust in embedded yet? by steveklabnik on Thursday March 01, 2018 @10:03AM (#16492510)
That's true of any compiler of any language.
Re:Should you Rust in embedded yet? by lvh on Friday March 02, 2018 @02:18PM (#16504747)
Are you suggesting the borrow checker adds instructions? I feel the meaning of my comment was pretty clear to mean “strictly compile time”.
Re:Should you Rust in embedded yet? by jononor on Thursday March 01, 2018 @09:02AM (#16492038)
Why do you think this will be a problem? I mean any more than with any optimizing compiler (C etc).