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.
[ Parent
| on HN ]
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.
What feature adds that? The borrow checker, lifetimes and ownership are all compile time concepts in Rust.
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.
Are you suggesting the borrow checker adds instructions? I feel the meaning of my comment was pretty clear to mean “strictly compile time”.