Re:Turning off Rust's borrow checker, completely
by carlmr on Tuesday January 23, 2024 @04:29AM
(#39101292)
I feel like people like OP, who don't understand UB and its consequences, would benefit the most from the strict compiler, but can be bothered the least to learn what it's saying.
[ Parent
| on HN ]
Re:Turning off Rust's borrow checker, completely
by withinboredom on Tuesday January 23, 2024 @04:46AM
(#39101397)
I understand what it’s saying. I just disagree that it has to be done for every compilation. Often, as a human, I can reason that it is safe (or reasonably safe for what bug I am attempting to fix). I’m not talking about released software, I’m talking about software I am developing in the moment that I am developing it.
Re:Turning off Rust's borrow checker, completely
by timschmidt on Tuesday January 23, 2024 @05:51AM
(#39101792)
> as a human, I can reason that it is safe
This assumption has been tested at societal scale and proven false, at great cost.
Re:Turning off Rust's borrow checker, completely
by withinboredom on Tuesday January 23, 2024 @06:15AM
(#39101928)
I didn’t say I could do it successfully or that it even matters. Only that I am able to and execute, at my own discretion. You know, have agency.
Re:Turning off Rust's borrow checker, completely
by timschmidt on Tuesday January 23, 2024 @11:41AM
(#39105759)
This is exactly the attitude that makes me very happy that the Rust compiler is so strict. The people who need the training wheels most are the same folks who think they don't.
Re:Turning off Rust's borrow checker, completely
by withinboredom on Tuesday January 23, 2024 @01:38PM
(#39107607)
I mean, I fix bugs. Rewriting half the program just to verify the bugs are fixed is overkill before opening a PR (you know, verifying the approach, validating assumptions, manual tests, the stuff you do long before actually fixing the bug, etc). But comments like these and others on this thread is exactly why I may not in the future. This is a rather toxic thread. People seem to treat this thing as a religious artifact without giving a single reason grounded in practical computer science and software engineering.
Re:Turning off Rust's borrow checker, completely
by timschmidt on Tuesday January 23, 2024 @03:24PM
(#39109216)
> But comments like these and others on this thread is exactly why I may not in the future.
Please take your C style memory bugs with you.
In case anyone reading the thread would like quality information about Rust and memory safety, a great place to start is: https://www.youtube.com/@NoBoilerplate