Hacker News new | ask | show | jobs
by koffiezet 3029 days ago
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.
2 comments

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).