4 ms·
The borrow checker should be quite useful when using tasks and shared resources in an RTOS. Just closures alone is a benefit.
by jononor 9y ago
The borrow checker should be quite useful when using tasks and shared resources in an RTOS. Just closures alone is a benefit.
- koffiezet 9y agoYour 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).