Re:Rust Is Hard, Or: The Misery of Mainstream Programming
by estebank on Thursday June 02, 2022 @09:44PM
(#31603221)
In industrial machines, there's such a thing as holding it wrong. In some cases, that means getting maimed (that old-school table saw doesn't care whether it chews on wood or flesh) or precluded through a clunkier mode of operation (you need to press these two buttons separated at roughly arm length to make sure that they can't be actioned while you have an arm in the way of the heavy arm-eating chunk of metal). The former is C and unsafe Rust, the later is safe Rust and GC languages.
You're trying to draw a comparison with a consumer product with a design flaw.
Re:Rust Is Hard, Or: The Misery of Mainstream Programming
by FpUser on Friday June 03, 2022 @05:22AM
(#31606036)
>"You're trying to draw a comparison with a consumer product with a design flaw."
Not at all. I just do not like to dance around bonfire with tam-tam and being told that this is the one and only way
Re:Rust Is Hard, Or: The Misery of Mainstream Programming
by kaba0 on Friday June 03, 2022 @06:38AM
(#31606578)
It's not the only way, but if you do the tradeoff of going with manual memory management, then you should accept what the tradeoff entails. Essential complexity is non-reducible -- you either manage it automatically through a GC or choose a model that while let you ignore it quite often, will make you think about it in the end.
This reminds me: "you are holding it wrong"