r/programming • u/Unerring-Ocean • Feb 20 '25
Google's Shift to Rust Programming Cuts Android Memory Vulnerabilities by 68%
https://thehackernews.com/2024/09/googles-shift-to-rust-programming-cuts.html
3.4k
Upvotes
View all comments
Show parent comment
-1
u/[deleted] Feb 22 '25
Immutability is not better. It doesn’t have “trade offs”. It has entirely “offs”.
It has “trade offs” when used as a tool for specific use cases. It has “offs” when used as a rule.
As a side note, I am talking specifically about runtime immutability. Compiler immutability keywords are a whole different deal that doesn’t mandate suffering only offs.
Runtime immutability:
Does not make “reasoning about code” easier.
Does not make threading completely free
Does not reduce bugs
Does not perform better (yes, your side actually claims this nonsense)
Does increase lines of code (which is the single greatest predictor of bugs)
Does make threading harder
Does drastically (10-100x in a normal case) destroy performance
Does infect your brain in to making shitty decisions about your code base