3 ms·
I've been finding learning Rust an extremely valuable experience and I really like the language. Also I don't have any experience with replacing assembly code w
by Myrmornis 7y ago
I've been finding learning Rust an extremely valuable experience and I really like the language. Also I don't have any experience with replacing assembly code with a higher-level language. But...
If you're looking for a replacement for hand-crafted assembly, don't the strict lifetime-checker and borrow-checker make Rust a non-obvious choice? E.g. they might prevent you from doing certain memory access patterns that you actually explicitly want your assembly to do? (I.e. wouldn't C or C++ be more the thing?) Or do you just make liberal use of unsafe blocks where necessary? Or is it actually fine and appropriate to write {lifetime,borrow}-checker compliant replacements for hand-crafted assembly?