Hacker News new | ask | show | jobs
by jononor 3029 days ago
The borrow checker should be quite useful when using tasks and shared resources in an RTOS. Just closures alone is a benefit.
1 comments

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.
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”.
Why do you think this will be a problem? I mean any more than with any optimizing compiler (C etc).