5 ms·
Your compiler adding the execution of an unpredictable amount of CPU instructions at certain points, which can change with new compiler versions? That sounds li
by koffiezet 9y 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.
- lvh 9y agoWhat feature adds that? The borrow checker, lifetimes and ownership are all compile time concepts in Rust.
- c3833174 9y agoCompile time doesn't mean the compiler won't add more instructions where you might not expect them.
- steveklabnik 9y agoThat's true of any compiler of any language.
- lvh 9y agoAre you suggesting the borrow checker adds instructions? I feel the meaning of my comment was pretty clear to mean “strictly compile time”.
- jononor 9y agoWhy do you think this will be a problem? I mean any more than with any optimizing compiler (C etc).