Re:Flattening ASTs (and Other Compiler Data Structures)
by dist1ll on Sunday July 02, 2023 @06:56AM
(#36560252)
Correct. Rust lifetimes become less powerful in certain niches of high-performance programming where you're avoiding the heap or don't have one in the first place. Games, databases, embedded, HPC-style batch workloads, and even compilers.
Of course you still have restrictions on aliasing, so you're not going to get data races. But you'll still get bugs that are essentially equivalent to ones you'd get with raw pointers.
Re:Flattening ASTs (and Other Compiler Data Structures)
by pornel on Sunday July 02, 2023 @08:31AM
(#36560857)
Note that you still have implicit/elided lifetimes for basically every function argument and every local variable. They’re everywhere, even if you’re not typing 'a.
Of course you still have restrictions on aliasing, so you're not going to get data races. But you'll still get bugs that are essentially equivalent to ones you'd get with raw pointers.