Re:A Rust Shaped Hole
by troad on Thursday July 17, 2025 @07:22AM
(#44592035)
I think the focus on the borrow checker or lifetimes as the source of Rust's complexity is a bit of a distraction from the real problems. Neither is a concept that would be too difficult for a well-rounded programmer: C and C++ programmers should certainly understand lifetimes, and the slightest bit of FP experience makes the borrow checker pretty straight-forward too.
Instead, the complexity of Rust is most acute when one is trying to read some overly excited programmer's sigil soup of higher-order functions operating on some boxed dynamic traits, in a struct that casually #derives thirty-seven inscrutable things from a hundred libraries, none past v 0.1, which are themselves a mess of overly clever macros... The C++ comparison is apt, because the closest experience I ever had to the above is when trying to disentangle some template-apocalypse-era C++ code.
C++ is still objectively worse, and lacks the many very real improvements present in Rust.[0] But ultimately I do think the problem with Rust is that - above a certain level of complexity - its terseness veers sharply into incomprehensibility. I honestly think that's part of the reason so many OSS or hobby projects in Rust end up abandoned - it becomes a chore to even understand what existing code does, and it sucks all the joy out of writing new code.
[0] Though it boasts a much more mature ecosystem than Rust does, which is way more of a killer feature than people give it credit for.
Instead, the complexity of Rust is most acute when one is trying to read some overly excited programmer's sigil soup of higher-order functions operating on some boxed dynamic traits, in a struct that casually #derives thirty-seven inscrutable things from a hundred libraries, none past v 0.1, which are themselves a mess of overly clever macros... The C++ comparison is apt, because the closest experience I ever had to the above is when trying to disentangle some template-apocalypse-era C++ code.
C++ is still objectively worse, and lacks the many very real improvements present in Rust.[0] But ultimately I do think the problem with Rust is that - above a certain level of complexity - its terseness veers sharply into incomprehensibility. I honestly think that's part of the reason so many OSS or hobby projects in Rust end up abandoned - it becomes a chore to even understand what existing code does, and it sucks all the joy out of writing new code.
[0] Though it boasts a much more mature ecosystem than Rust does, which is way more of a killer feature than people give it credit for.